1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/www/mimetex/Makefile
Cheng-Lung Sung 2de6c8bd65 - - Update to 20060727.1.64
PR:		ports/101186
Submitted by:	maintainer (Nicola Vitale)
2006-08-01 16:10:04 +00:00

62 lines
1.5 KiB
Makefile

# New ports collection makefile for: mimetex
# Date created: 2006-02-03
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= mimetex
PORTVERSION= 20060727.1.64
CATEGORIES= www math
MASTER_SITES= http://www.forkosh.com/ \
http://nivi.interfree.it/distfiles/${DIST_SUBDIR}/
DISTNAME= ${PORTNAME}
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
MAINTAINER= nivit@email.it
COMMENT= A CGI script that lets you embed LaTeX math in your HTML pages
NO_WRKSUBDIR= yes
USE_APACHE= yes
USE_ZIP= yes
FETCH_CMD= /usr/bin/fetch -rR # see PR bin/76134
LN_OPTS= -sf
CGI_BIN= ${PREFIX}/www/cgi-bin/
CGI_PRG= ${PORTNAME}.cgi
WWW_DIR= ${PREFIX}/www/data/mimetex/
# usefull if you run mimetex on another machine
.if defined(WITH_STATIC)
STATIC_MIMETEX= -static
.endif
# anti-aliasing no/yes
.if defined(WITHOUT_ANTIALIASING)
IMAGES_TYPE= -DGIF
.else
IMAGES_TYPE= -DAA
.endif
# other options (see mimetex.c or online documentation)
# example: make install USER_OPTIONS='-DCACHEPATH=\"/tmp\" -DDISPLAYSIZE=10'
USER_OPTIONS?=
do-build:
cd ${WRKDIR};\
${CC} ${CFLAGS} ${STATIC_MIMETEX} ${IMAGES_TYPE} ${USER_OPTIONS} mimetex.c gifsave.c -lm -o ${CGI_PRG}
do-install:
${MKDIR} ${CGI_BIN}
${INSTALL_PROGRAM} ${WRKSRC}/${CGI_PRG} ${CGI_BIN}/${CGI_PRG}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}
${MKDIR} ${WWW_DIR}
${LN} ${LN_OPTS} ${DOCSDIR}/${PORTNAME}.html ${WWW_DIR}/index.html
.endif
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>