2012-09-17 22:47:33 +02:00
|
|
|
# Created by: Nicola Vitale <nivit@email.it>
|
2006-05-05 08:30:32 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mimetex
|
2012-09-17 22:47:33 +02:00
|
|
|
PORTVERSION= 20120331.1.74
|
|
|
|
PORTREVISION= 0
|
2006-05-05 08:30:32 +02:00
|
|
|
CATEGORIES= www math
|
2012-09-17 22:47:33 +02:00
|
|
|
MASTER_SITES= LOCAL/nivit/${PORTNAME}/${PORTVERSION}/ \
|
2006-11-21 21:09:23 +01:00
|
|
|
http://www.forkosh.com/
|
2006-05-05 08:30:32 +02:00
|
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
|
|
|
|
2006-12-10 02:21:51 +01:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2006-05-05 08:30:32 +02:00
|
|
|
COMMENT= A CGI script that lets you embed LaTeX math in your HTML pages
|
|
|
|
|
2012-09-17 22:47:33 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2006-05-05 08:30:32 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
USE_ZIP= yes
|
|
|
|
|
2012-09-17 22:47:33 +02:00
|
|
|
OPTIONS_DEFINE= ANTIALIASING DOCS STATIC
|
|
|
|
OPTIONS_DEFAULT= ANTIALIASING
|
|
|
|
DESC_ANTIALIASING= Use image format with anti-aliasing
|
|
|
|
DESC_STATIC= Possible use of mimetex on another machine
|
2011-02-22 15:33:47 +01:00
|
|
|
|
|
|
|
PORTDOCS= ${PORTNAME}.html
|
|
|
|
|
2013-09-21 01:36:50 +02:00
|
|
|
NO_STAGE= yes
|
2012-09-17 22:47:33 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-05-30 22:10:00 +02:00
|
|
|
# usefull if you run mimetex on another machine
|
2012-09-17 22:47:33 +02:00
|
|
|
.if ${PORT_OPTIONS:MSTATIC}
|
2006-05-30 22:10:00 +02:00
|
|
|
STATIC_MIMETEX= -static
|
|
|
|
.endif
|
2006-07-13 22:19:43 +02:00
|
|
|
# anti-aliasing no/yes
|
2012-09-17 22:47:33 +02:00
|
|
|
.if ${PORT_OPTIONS:MANTIALIASING}
|
2006-07-13 22:19:43 +02:00
|
|
|
IMAGES_TYPE= -DAA
|
2012-09-17 22:47:33 +02:00
|
|
|
.else
|
|
|
|
IMAGES_TYPE= -DGIF
|
2006-07-13 22:19:43 +02:00
|
|
|
.endif
|
2006-08-01 18:10:04 +02:00
|
|
|
# other options (see mimetex.c or online documentation)
|
2006-07-13 22:19:43 +02:00
|
|
|
# example: make install USER_OPTIONS='-DCACHEPATH=\"/tmp\" -DDISPLAYSIZE=10'
|
|
|
|
USER_OPTIONS?=
|
2006-05-30 22:10:00 +02:00
|
|
|
|
2006-05-05 08:30:32 +02:00
|
|
|
do-build:
|
|
|
|
cd ${WRKDIR};\
|
2012-09-17 22:47:33 +02:00
|
|
|
${CC} ${CFLAGS} ${STATIC_MIMETEX} ${IMAGES_TYPE} ${USER_OPTIONS} mimetex.c gifsave.c -lm -o mimetex.cgi
|
2006-05-05 08:30:32 +02:00
|
|
|
do-install:
|
2012-09-17 22:47:33 +02:00
|
|
|
${MKDIR} ${WWWDIR}/cgi-bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mimetex.cgi ${WWWDIR}/cgi-bin/mimetex.cgi
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2006-05-05 08:30:32 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2011-02-22 15:33:47 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
|
2008-01-06 18:10:23 +01:00
|
|
|
.endif
|
|
|
|
|
2012-09-17 22:47:33 +02:00
|
|
|
.include <bsd.port.mk>
|