summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authorrxg <rxg@pkgsrc.org>2002-02-18 11:23:54 +0000
committerrxg <rxg@pkgsrc.org>2002-02-18 11:23:54 +0000
commit59f97621da03fdbc531310bb0c1d47cfe40b90c7 (patch)
tree01aa83878a3d16d120ee453e2ef93bacfd959f4f /fonts
parent7da5ea3d9bb9d563e6048cc260fe0b13e6f31145 (diff)
downloadpkgsrc-59f97621da03fdbc531310bb0c1d47cfe40b90c7.tar.gz
Add a option to fonts/arphicttf to let it support freetype module
in XFree 4.x, close PR pkg/15337 submitted by me.
Diffstat (limited to 'fonts')
-rw-r--r--fonts/arphicttf/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/fonts/arphicttf/Makefile b/fonts/arphicttf/Makefile
index 6f0d0d47ace..ba7b1efe7b8 100644
--- a/fonts/arphicttf/Makefile
+++ b/fonts/arphicttf/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/11/29 17:37:57 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2002/02/18 11:23:54 rxg Exp $
#
DISTNAME= arphicttf-2.11
@@ -11,7 +11,7 @@ DISTFILES= ${FONT_SETS} ${MISC_FILES}
MAINTAINER= rxg@ms25.url.com.tw
COMMENT= Chinese Big5/GB TrueType fonts made by Arphic Technology
-DEPENDS+= mkttfdir>=1.1nb1:../../fonts/mkttfdir
+DEPENDS+= mkttfdir>=1.2:../../fonts/mkttfdir
FONT_SETS= bkai00mp.ttf.gz \
bsmi00lp.ttf.gz \
@@ -31,6 +31,8 @@ NO_BUILD= yes
USE_X11BASE= yes
FONTDIR= ${PREFIX}/lib/X11/fonts/TrueType
+.include "../../mk/bsd.prefs.mk"
+
do-install:
${INSTALL_DATA_DIR} ${FONTDIR}
for f in ${FONT_SETS}; do \
@@ -39,6 +41,10 @@ do-install:
done
post-install:
+.if defined(TTF_TYPE) && (${TTF_TYPE} == "freetype")
+ ${SH} ${LOCALBASE}/bin/mkttfdir --freetype ${FONTDIR}
+.else
${SH} ${LOCALBASE}/bin/mkttfdir ${FONTDIR}
+.endif
.include "../../mk/bsd.pkg.mk"