freebsd-ports/math/jsmath/Makefile
Andrew Pantyukhin fac3011516 Add ports math/jsmath and math/jsmath-fonts:
The jsMath package provides a method of including mathematics in HTML pages
that works across multiple browsers under Windows, Macintosh OS X, Linux and
other flavors of unix. jsMath uses native fonts, so they resize when you
change the size of the text in your browser, they print at the full resolution
of your printer, and you don't have to wait for dozens of images to be
downloaded in order to see the mathematics in a web page. There are also
advantages for web-page authors, as there is no need to preprocess your
web pages to generate any images, and the mathematics is entered in TeX form,
so it is easy to create and maintain your web pages.

Although it works best with the TeX fonts installed, jsMath will fall back
on a collection of image-based fonts (which can still be scaled or printed
at high resolution) or unicode fonts when the TeX fonts are not available.

Author: Davide P. Cervone <dvpc@union.edu>
WWW:    http://www.math.union.edu/~dpvc/jsMath/

PR:		ports/93864 (based on)
Submitted by:	Nicola Vitale <nivit@email.it>
Approved by:	krion (mentor)
2006-06-01 17:39:10 +00:00

38 lines
909 B
Makefile

# New ports collection makefile for: jsMath
# Date created: 2006-02-23
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= jsMath
PORTVERSION= 3.3a
CATEGORIES= math www
MASTER_SITES= http://www.math.union.edu/~dpvc/jsMath/download/ \
http://nivi.interfree.it/distfiles/${PORTNAME}/
MAINTAINER= nivit@email.it
COMMENT= A Javascript tool for including mathematics in web pages
USE_ZIP= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
WWWDIR?= ${PREFIX}/www/${PORTNAME}
PLIST_SUB+= WWWDIR=${WWWDIR:S,^${PREFIX}/,,}
OPTIONS= IMAGE_FONTS "Enable image fonts" On
.include <bsd.port.pre.mk>
.if defined(WITH_IMAGE_FONTS)
RUN_DEPENDS+= ${WWWDIR}/fonts/cm-fonts/alpha/def.js:${PORTSDIR}/math/jsmath-fonts
.endif
do-install:
@${INSTALL} -d ${WWWDIR}
@${CP} -Rp ${WRKSRC}/ ${WWWDIR}/
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WWWDIR}/
@${CHMOD} -R go-w ${WWWDIR}/
.include <bsd.port.post.mk>