aboutsummaryrefslogtreecommitdiff
path: root/www/mimetex/Makefile
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2006-05-05 06:30:32 +0000
committerAaron Dalton <aaron@FreeBSD.org>2006-05-05 06:30:32 +0000
commit5c05bf1526cc7aa97c9180ebf7f30db036ca380d (patch)
tree43723d9e12f5e66cc4c3ccfb2fe572dcb56bbb8d /www/mimetex/Makefile
parent23771c7b3d379b99ba6191447ab8c66f85930f33 (diff)
downloadports-5c05bf1526cc7aa97c9180ebf7f30db036ca380d.tar.gz
ports-5c05bf1526cc7aa97c9180ebf7f30db036ca380d.zip
Add mimetex 1.60, a CGI script that lets you embed LaTeX math in your
HTML pages. PR: ports/92783 Submitted by: Nicola Vitale <nivit@email.it> Approved by: tobez
Notes
Notes: svn path=/head/; revision=161381
Diffstat (limited to 'www/mimetex/Makefile')
-rw-r--r--www/mimetex/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/www/mimetex/Makefile b/www/mimetex/Makefile
new file mode 100644
index 000000000000..41a097974b2c
--- /dev/null
+++ b/www/mimetex/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: mimetex
+# Date created: 2006-02-03
+# Whom: Nicola Vitale <nivit@email.it>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mimetex
+PORTVERSION= 1.60
+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/
+
+do-build:
+ cd ${WRKDIR};\
+ ${CC} ${CFLAGS} -DAA 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>