aboutsummaryrefslogtreecommitdiff
path: root/math/jsmath-fonts/Makefile
blob: cbfcc2755f6caf6a1177aa0f30463ef550201257 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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>