summaryrefslogtreecommitdiff
path: root/www/mimetex/Makefile
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2007-05-27 02:58:40 +0000
committerobache <obache@pkgsrc.org>2007-05-27 02:58:40 +0000
commitecb25ffd3bb1f1c1ce40639006d77bad2d660010 (patch)
treed77c2f9d7da542122f5a195ad6edbeddc0a32a56 /www/mimetex/Makefile
parent5c4627887ab6e89509e5a75e20d96af4a3dbfbee (diff)
downloadpkgsrc-ecb25ffd3bb1f1c1ce40639006d77bad2d660010.tar.gz
Import mimetex version 1.64.
MimeTeX, licensed under the gpl, lets you easily embed LaTeX math in your html pages. It parses a LaTeX math expression and immediately emits the corresponding gif image, rather than the usual TeX dvi. And mimeTeX is an entirely separate little program that doesn't use TeX or its fonts in any way. It's just one cgi that you put in your site's cgi-bin/ directory, with no other dependencies. So mimeTeX is very easy to install. And it's equally easy to use. Just place an html <img> tag in your document wherever you want to see the corresponding LaTeX expression.
Diffstat (limited to 'www/mimetex/Makefile')
-rw-r--r--www/mimetex/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/www/mimetex/Makefile b/www/mimetex/Makefile
new file mode 100644
index 00000000000..6d2177db9ce
--- /dev/null
+++ b/www/mimetex/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/27 02:58:40 obache Exp $
+#
+
+DISTNAME= mimetex
+PKGNAME= ${DISTNAME}-1.64
+CATEGORIES= www math graphics
+MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=support/mimetex/}
+DIST_SUBDIR= ${PKGNAME_NOREV}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= http://www.forkosh.com/mimetex.html
+COMMENT= CGI to convert LaTeX math expression to GIF image
+
+USE_LANGUAGES= c
+
+WRKSRC= ${WRKDIR}
+
+do-build:
+ cd ${WRKSRC:Q} && \
+ env ${MAKE_ENV} ${CC} -DAA mimetex.c gifsave.c -lm \
+ -o mimetex.cgi
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC:Q}/mimetex.cgi ${PREFIX}/libexec/cgi-bin
+
+.include "../../mk/bsd.pkg.mk"