diff options
author | thierry <thierry@FreeBSD.org> | 2007-10-21 22:00:49 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2007-10-21 22:00:49 +0800 |
commit | 871d00398d9560fabe613cf2200be091dff18130 (patch) | |
tree | 02d5d15381b477999bc04757576234c7f176ef0e /x11-fonts/texcm-ttf | |
parent | 71018931bee018765ac77906a8c8b27fafa57459 (diff) | |
download | freebsd-ports-gnome-871d00398d9560fabe613cf2200be091dff18130.tar.gz freebsd-ports-gnome-871d00398d9560fabe613cf2200be091dff18130.tar.zst freebsd-ports-gnome-871d00398d9560fabe613cf2200be091dff18130.zip |
Replace ttmkfdir by mkfontscale & mkfontdir to install correct files.
PR: ports/117251
Submitted by: Steven G. Kargl <kargl (at) troutmask.apl.washington.edu>
Diffstat (limited to 'x11-fonts/texcm-ttf')
-rw-r--r-- | x11-fonts/texcm-ttf/Makefile | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/x11-fonts/texcm-ttf/Makefile b/x11-fonts/texcm-ttf/Makefile index d7a20bf9f414..6ebe665db82c 100644 --- a/x11-fonts/texcm-ttf/Makefile +++ b/x11-fonts/texcm-ttf/Makefile @@ -7,7 +7,7 @@ PORTNAME= texcm-ttf PORTVERSION= 20010117 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11-fonts MASTER_SITES= http://www.mozilla.org/projects/mathml/fonts/bakoma/ DISTFILES= ${PORTNAME}${EXTRACT_SUFX} license.txt @@ -17,9 +17,10 @@ EXTRACT_ONLY= ${PORTNAME}${EXTRACT_SUFX} MAINTAINER= thierry@FreeBSD.org COMMENT= TeX's Computer Modern Fonts -BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir +BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \ + mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir -NO_CDROM= "cannot be sold or distributed with any commercial product" +NO_CDROM= cannot be sold or distributed with any commercial product USE_X_PREFIX= yes USE_ZIP= yes @@ -28,18 +29,22 @@ WRKSRC= ${WRKDIR}/${PORTNAME} SUB_FILES= pkg-message SUB_LIST= FONTSDIR="${FONTSDIR}" PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" +REINPLACE_ARGS= -i "" PKGMESSAGE= ${WRKDIR}/pkg-message FONTNAME= ${PORTNAME} 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-|-texcm-|' ${WRKSRC}/${f} +.endfor do-install: ${MKDIR} ${FONTSDIR} |