1 # Created by: Nicola Vitale <nivit@email.it>
5 PORTVERSION= 20120331.1.74
7 MASTER_SITES= LOCAL/nivit/${PORTNAME}/${PORTVERSION}/ \
8 http://www.forkosh.com/
10 DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
12 MAINTAINER= nivit@FreeBSD.org
13 COMMENT= CGI script that lets you embed LaTeX math in your HTML pages
20 OPTIONS_DEFINE= ANTIALIASING DOCS STATIC
21 OPTIONS_DEFAULT= ANTIALIASING
22 DESC_ANTIALIASING= Use image format with anti-aliasing
23 DESC_STATIC= Possible use of mimetex on another machine
25 PORTDOCS= ${PORTNAME}.html
27 .include <bsd.port.options.mk>
29 # usefull if you run mimetex on another machine
30 .if ${PORT_OPTIONS:MSTATIC}
31 STATIC_MIMETEX= -static
34 # anti-aliasing no/yes
35 .if ${PORT_OPTIONS:MANTIALIASING}
41 # other options (see mimetex.c or online documentation)
42 # example: make install USER_OPTIONS='-DCACHEPATH=\"/tmp\" -DDISPLAYSIZE=10'
47 ${CC} ${CFLAGS} ${STATIC_MIMETEX} ${IMAGES_TYPE} ${USER_OPTIONS} mimetex.c gifsave.c -lm -o mimetex.cgi
50 ${MKDIR} ${STAGEDIR}${WWWDIR}/cgi-bin
51 ${INSTALL_PROGRAM} ${WRKSRC}/mimetex.cgi ${STAGEDIR}${WWWDIR}/cgi-bin/mimetex.cgi
52 .if ${PORT_OPTIONS:MDOCS}
53 ${MKDIR} ${STAGEDIR}${DOCSDIR}
54 ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
57 .include <bsd.port.mk>