Subject: pkg/15337: Add a option to fonts/arphicttf
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rxg@ms25.url.com.tw>
List: netbsd-bugs
Date: 01/23/2002 11:02:10
>Number: 15337
>Category: pkg
>Synopsis: Add a option to fonts/arphicttf
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jan 22 19:03:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Rui-Xiang Guo
>Release: NetBSD 1.5ZA
>Organization:
>Environment:
System: NetBSD rxgpc.sparqnet.net 1.5ZA NetBSD 1.5ZA (HIVE) #0: Sat Jan 12 21:07:31 CST 2002 rxg@rxgpc.sparqnet.net:/usr/src/sys/arch/i386/compile/HIVE i386
Architecture: i386
Machine: i386
>Description:
Add a option to fonts/arphicttf. Decide to use these fonts with
"xtt" module or "freetype" module in 4.x.
>How-To-Repeat:
1. fix the Makefile with:
--- /usr/pkgsrc/fonts/arphicttf/Makefile Sun Dec 2 00:04:07 2001
+++ Makefile
@@ -11,7 +11,7 @@
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 @@
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 @@
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"
2. Maybe add the "TTF_TYPE" entry in mk/bsd.pkg.defaults.mk. :)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: