freebsd-ports/math/jsmath-fonts/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
995 B
Makefile

# New ports collection makefile for: jsMath-fonts
# Date created: 2006-02-23
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= jsMath-fonts
PORTVERSION= 1.3
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 raster fonts pack for jsmath
USE_ZIP= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/jsMath
WWWDIR?= ${PREFIX}/www/jsMath
WWWDIR_REL?= ${WWWDIR:S,^${PREFIX}/,,}
.for _i in bx ex mi r sy ti
PLIST_SUB+= D${_i}a=${WWWDIR_REL}/fonts/cm${_i}10/alpha
PLIST_SUB+= D${_i}p=${WWWDIR_REL}/fonts/cm${_i}10/plain
.endfor
PLIST_SUB+= Dcma=${WWWDIR_REL}/fonts/cm-fonts/alpha
PLIST_SUB+= Dcmp=${WWWDIR_REL}/fonts/cm-fonts/plain
PLIST_SUB+= WWWDIR=${WWWDIR_REL}
do-install:
@${INSTALL} -d ${WWWDIR}/fonts
@${CP} -Rp ${WRKSRC}/fonts/ ${WWWDIR}/fonts/
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WWWDIR}/fonts/
@${CHMOD} -R go-w ${WWWDIR}/fonts/
.include <bsd.port.mk>