diff options
-rw-r--r-- | japanese/truetypefonts/Makefile | 25 | ||||
-rw-r--r-- | japanese/truetypefonts/distinfo | 2 | ||||
-rw-r--r-- | japanese/truetypefonts/pkg-plist | 8 |
3 files changed, 19 insertions, 16 deletions
diff --git a/japanese/truetypefonts/Makefile b/japanese/truetypefonts/Makefile index ecb7ada03c55..d0dc69eca9e7 100644 --- a/japanese/truetypefonts/Makefile +++ b/japanese/truetypefonts/Makefile @@ -6,10 +6,10 @@ # PORTNAME= truetypefonts -PORTVERSION= 2001.08.18 +PORTVERSION= 2001.08.18.2 CATEGORIES= japanese x11-fonts MASTER_SITES= ftp://ftp.debian.org/debian/pool/main/t/ttf-xtt/ -DISTNAME= ttf-xtt_0.${PORTVERSION:S/.//g}-1 +DISTNAME= ttf-xtt_0.${PORTVERSION:R:S/.//g}-${PORTVERSION:E} MAINTAINER= ports@FreeBSD.org @@ -21,22 +21,25 @@ USE_X_PREFIX= yes RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients .endif -WRKSRC= ${WRKDIR}/ttf-xtt-0.${PORTVERSION:S/.//g} +WRKSRC= ${WRKDIR}/ttf-xtt-0.${PORTVERSION:R:S/.//g} NO_BUILD= yes -FONTDIR= ${PREFIX}/lib/X11/fonts/TrueType + +FONTSDIR= lib/X11/fonts/TrueType +MAKE_ENV= FONTSDIR=${FONTSDIR} +PLIST_SUB= FONTSDIR=${FONTSDIR} do-install: -.if !exists(${FONTDIR}) +.if !exists(${PREFIX}/${FONTSDIR}) @${ECHO} "*********************************************************" - @${ECHO} "Please add ${FONTDIR} to your font path" + @${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path" @${ECHO} "in /etc/XF86Config." @${ECHO} "*********************************************************" - ${MKDIR} ${FONTDIR} + ${MKDIR} ${PREFIX}/${FONTSDIR} .endif - ${INSTALL_DATA} ${WRKSRC}/wadalab-gothic.ttf ${FONTDIR} - ${INSTALL_DATA} ${WRKSRC}/watanabe-mincho.ttf ${FONTDIR} - ${INSTALL_DATA} ${FILESDIR}/fonts.dir.truetype ${FONTDIR} - ${INSTALL_DATA} ${FILESDIR}/fonts.alias.truetype ${FONTDIR} + ${INSTALL_DATA} ${WRKSRC}/wadalab-gothic.ttf ${PREFIX}/${FONTSDIR} + ${INSTALL_DATA} ${WRKSRC}/watanabe-mincho.ttf ${PREFIX}/${FONTSDIR} + ${INSTALL_DATA} ${FILESDIR}/fonts.dir.truetype ${PREFIX}/${FONTSDIR} + ${INSTALL_DATA} ${FILESDIR}/fonts.alias.truetype ${PREFIX}/${FONTSDIR} ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .include <bsd.port.post.mk> diff --git a/japanese/truetypefonts/distinfo b/japanese/truetypefonts/distinfo index 36addd2c1c23..b1179ad1cb1a 100644 --- a/japanese/truetypefonts/distinfo +++ b/japanese/truetypefonts/distinfo @@ -1 +1 @@ -MD5 (ttf-xtt_0.20010818-1.tar.gz) = 3b490d173a5a8570f40d97b134f2f0fc +MD5 (ttf-xtt_0.20010818-2.tar.gz) = f5b6decdc650627f75db39ff1b1edba8 diff --git a/japanese/truetypefonts/pkg-plist b/japanese/truetypefonts/pkg-plist index 52ac621c66c7..39edd538dd4a 100644 --- a/japanese/truetypefonts/pkg-plist +++ b/japanese/truetypefonts/pkg-plist @@ -1,4 +1,4 @@ -lib/X11/fonts/TrueType/wadalab-gothic.ttf -lib/X11/fonts/TrueType/watanabe-mincho.ttf -lib/X11/fonts/TrueType/fonts.dir.truetype -lib/X11/fonts/TrueType/fonts.alias.truetype +%%FONTSDIR%%/fonts.alias.truetype +%%FONTSDIR%%/fonts.dir.truetype +%%FONTSDIR%%/wadalab-gothic.ttf +%%FONTSDIR%%/watanabe-mincho.ttf |