aboutsummaryrefslogtreecommitdiff
path: root/www/mimetex/Makefile
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-07-13 20:19:43 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-07-13 20:19:43 +0000
commit5c625e646d45762dc8c84c8289f2a074df8577ab (patch)
treed67031d37ee2eabb37ff8e13c54f540d4591bb3f /www/mimetex/Makefile
parenta2dd7c94784aeb1afb7e4045848896967caa4448 (diff)
downloadports-5c625e646d45762dc8c84c8289f2a074df8577ab.tar.gz
ports-5c625e646d45762dc8c84c8289f2a074df8577ab.zip
Notes
Diffstat (limited to 'www/mimetex/Makefile')
-rw-r--r--www/mimetex/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/www/mimetex/Makefile b/www/mimetex/Makefile
index 0df71baaaa91..b019a6b35606 100644
--- a/www/mimetex/Makefile
+++ b/www/mimetex/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= mimetex
-PORTVERSION= 1.60
-PORTREVISION= 1
+PORTVERSION= 20060710.1.60
CATEGORIES= www math
MASTER_SITES= http://www.forkosh.com/ \
http://nivi.interfree.it/distfiles/${DIST_SUBDIR}/
@@ -32,10 +31,19 @@ WWW_DIR= ${PREFIX}/www/data/mimetex/
.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)
+# example: make install USER_OPTIONS='-DCACHEPATH=\"/tmp\" -DDISPLAYSIZE=10'
+USER_OPTIONS?=
do-build:
cd ${WRKDIR};\
- ${CC} ${CFLAGS} ${STATIC_MIMETEX} -DAA mimetex.c gifsave.c -lm -o ${CGI_PRG}
+ ${CC} ${CFLAGS} ${STATIC_MIMETEX} ${IMAGES_TYPE} ${USER_OPTIONS} mimetex.c gifsave.c -lm -o ${CGI_PRG}
do-install:
${MKDIR} ${CGI_BIN}