aboutsummaryrefslogtreecommitdiff
path: root/chinese/mingunittf
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2005-02-19 13:51:50 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2005-02-19 13:51:50 +0000
commitaadd0f3a5f2ad007d555aacb1928190b7589aaaf (patch)
tree104a3c7a9e42ff9be3b7e0939521876cfb8f9126 /chinese/mingunittf
parentdb1ca4d8d20ce4e16ed1c65f240f10e76fc1ab9c (diff)
downloadports-aadd0f3a5f2ad007d555aacb1928190b7589aaaf.tar.gz
ports-aadd0f3a5f2ad007d555aacb1928190b7589aaaf.zip
Notes
Diffstat (limited to 'chinese/mingunittf')
-rw-r--r--chinese/mingunittf/Makefile24
-rw-r--r--chinese/mingunittf/pkg-plist7
2 files changed, 6 insertions, 25 deletions
diff --git a/chinese/mingunittf/Makefile b/chinese/mingunittf/Makefile
index bc3f563a9838..eaf912b57fa4 100644
--- a/chinese/mingunittf/Makefile
+++ b/chinese/mingunittf/Makefile
@@ -15,30 +15,18 @@ EXTRACT_SUFX= .gz
MAINTAINER= statue@freebsd.netlab.cse.yzu.edu.tw
COMMENT= Chinese Big5HKSCS TrueType fonts
-BUILD_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm \
- fc-cache:${PORTSDIR}/x11-fonts/fontconfig
-RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm \
- fc-cache:${PORTSDIR}/x11-fonts/fontconfig
-
EXTRACT_CMD= ${GZIP_CMD}
EXTRACT_BEFORE_ARGS= -dc
-EXTRACT_AFTER_ARGS= > ${WRKSRC}/minguni.ttf
+EXTRACT_AFTER_ARGS= > ${WRKSRC}/${TTF}
NO_WRKSUBDIR= yes
NO_BUILD= yes
-SHAREMODE= 644
-USE_XLIB= yes
-FONTDIR= ${PREFIX}/share/fonts/TrueType
-XFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType
-INSTALL_ENV= PKG_PREFIX=${PREFIX}
-.include <bsd.port.pre.mk>
+TTF= minguni.ttf
do-install:
- @${MKDIR} ${FONTDIR}
- @${INSTALL_DATA} ${WRKSRC}/minguni.ttf ${FONTDIR}
- @${ECHO_MSG} "===> Running ttfm.sh"
- -@${PREFIX}/bin/ttfm.sh --add xttfm minguni.ttf
- @${ECHO_MSG} "===> Running fc-cache"
- -@${X11BASE}/bin/fc-cache -f -v ${XFONTDIR}
+ @${MKDIR} ${FONTSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${TTF} ${FONTSDIR}
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/chinese/ttfm/Makefile.ttf"
.include <bsd.port.post.mk>
diff --git a/chinese/mingunittf/pkg-plist b/chinese/mingunittf/pkg-plist
deleted file mode 100644
index d8abce05d9e4..000000000000
--- a/chinese/mingunittf/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-@unexec %D/bin/ttfm.sh --remove xttfm %D/share/fonts/TrueType/minguni.ttf || true
-share/fonts/TrueType/minguni.ttf
-@exec %D/bin/ttfm.sh --add xttfm %D/share/fonts/TrueType/minguni.ttf || true
-@unexec %%X11BASE%%/bin/fc-cache -f -v %%X11BASE%%/lib/X11/fonts/TrueType || true
-@exec %%X11BASE%%/bin/fc-cache -f -v %%X11BASE%%/lib/X11/fonts/TrueType || true
-@unexec rmdir %D/share/fonts/TrueType 2>/dev/null || true
-@unexec rmdir %D/share/fonts 2>/dev/null || true