diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2007-10-21 14:00:51 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2007-10-21 14:00:51 +0000 |
commit | 57ab21b559a352ca0f16381b0c47036a4f7a4fae (patch) | |
tree | f19819683dc8daeafd23f57850f0b3fb2e17b1ca /x11-fonts/mathfonts | |
parent | 6eaa1c594bb8e0f9119f7b3dd17001eccf45057b (diff) | |
download | ports-57ab21b559a352ca0f16381b0c47036a4f7a4fae.tar.gz ports-57ab21b559a352ca0f16381b0c47036a4f7a4fae.zip |
Notes
Diffstat (limited to 'x11-fonts/mathfonts')
-rw-r--r-- | x11-fonts/mathfonts/Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/x11-fonts/mathfonts/Makefile b/x11-fonts/mathfonts/Makefile index 0a4dd015d319..8586008943f4 100644 --- a/x11-fonts/mathfonts/Makefile +++ b/x11-fonts/mathfonts/Makefile @@ -8,7 +8,7 @@ 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= 3 +PORTREVISION= 4 CATEGORIES= x11-fonts MASTER_SITES= http://support.wolfram.com/mathematica/systems/windows/general/files/ DISTNAME= MathFonts_TrueType_${PORTVERSION:S/.//} @@ -18,7 +18,8 @@ DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} MAINTAINER= thierry@FreeBSD.org COMMENT= Mathematica fonts for MathML-enabled Mozilla -BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir +BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \ + mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir RUN_DEPENDS= ${FONTSBASE}/texcm-ttf/cmr10.ttf:${PORTSDIR}/x11-fonts/texcm-ttf RESTRICTED= no distribution of the fonts allowed @@ -37,13 +38,17 @@ PKGMESSAGE= ${WRKDIR}/pkg-message FONTNAME= ${PORTNAME} FONTSBASE= ${X11BASE}/lib/X11/fonts FONTSDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME} -TTMKFDIR_CMD= ${X11BASE}/bin/ttmkfdir + +MKFONTSCL_CMD= ${X11BASE}/bin/mkfontscale +MKFONTDIR_CMD= ${X11BASE}/bin/mkfontdir 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 + cd ${WRKSRC} && ${MKFONTSCL_CMD} + cd ${WRKSRC} && ${MKFONTDIR_CMD} +.for f in fonts.dir fonts.scale + ${REINPLACE_CMD} -e 's|-misc-math|-mathfonts-Math|; \ + s|-misc-????-|-altsys-ahMn-|' ${WRKSRC}/${f} +.endfor do-install: ${MKDIR} ${FONTSDIR} |