freebsd-ports/x11-fonts/mathfonts/Makefile
Thierry Thomas 35faa6ff2d Don't depend on acroread-5, because it is forbidden.
Note: acroread-5 was used to provide the font Symbol, which is not
installed by acroread-7, then users will get messages from mozilla
complaining that there's no Symbol font; anyway, the MathML pages
should be displayed correctly, because the missing characters can be
found in the other fonts.

Suggested by:	Yann Golanski <yg2 (at) york.ac.uk>
2005-11-01 23:03:40 +00:00

58 lines
1.5 KiB
Makefile

# New ports collection makefile for: mathfonts
# Date created: 6 March 2005
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#
PORTNAME= mathfonts
PORTVERSION= 4.1 # Don't upgrade this port if not supported by MathML-enabled Mozilla
# # Please check http://www.mozilla.org/projects/mathml/fonts/
PORTREVISION= 2
CATEGORIES= x11-fonts
MASTER_SITES= http://support.wolfram.com/mathematica/systems/windows/general/
DISTNAME= MathFonts_TrueType
EXTRACT_SUFX= .exe
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Mathematica fonts for MathML-enabled Mozilla
BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir
RUN_DEPENDS= ${FONTSBASE}/texcm-ttf/cmr10.ttf:${PORTSDIR}/x11-fonts/texcm-ttf
RESTRICTED= "no distribution of the fonts allowed"
NO_CDROM= ${RESTRICTED}
USE_X_PREFIX= yes
USE_ZIP= yes
NO_WRKSUBDIR= yes
SUB_FILES= pkg-message
SUB_LIST= FONTSDIR="${FONTSDIR}"
PLIST_SUB+= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
PKGMESSAGE= ${WRKDIR}/pkg-message
FONTNAME= ${PORTNAME}
FONTSBASE= ${X11BASE}/lib/X11/fonts
FONTSDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
TTMKFDIR_CMD= ${X11BASE}/bin/ttmkfdir
do-build:
${TTMKFDIR_CMD} -c -f ${FONTNAME} -d ${WRKSRC} | ${CAT} -n | \
${SED} -e 's|^ 1|100000|' | ${SORT} -r | \
${CUT} -c 8- > ${WRKSRC}/fonts.scale
${CP} ${WRKSRC}/fonts.scale ${WRKSRC}/fonts.dir
do-install:
${MKDIR} ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/*.ttf ${WRKSRC}/fonts.scale ${WRKSRC}/fonts.dir \
${FONTSDIR}
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>