diff options
author | dryice <dryice@FreeBSD.org> | 2007-03-26 13:56:52 +0800 |
---|---|---|
committer | dryice <dryice@FreeBSD.org> | 2007-03-26 13:56:52 +0800 |
commit | cc9a30f58bbbca2c2269cb19d0c1ac76167ae764 (patch) | |
tree | a1aa191311af2c81c650c8de65007d82ce27b80c /x11-fonts | |
parent | 5e6189b11958d301953fda4abb1521153830644b (diff) | |
download | freebsd-ports-gnome-cc9a30f58bbbca2c2269cb19d0c1ac76167ae764.tar.gz freebsd-ports-gnome-cc9a30f58bbbca2c2269cb19d0c1ac76167ae764.tar.zst freebsd-ports-gnome-cc9a30f58bbbca2c2269cb19d0c1ac76167ae764.zip |
- fix plist
- better fontconfig support
- optional alias
- bump PORTREVISION
Approved by: itetcu (mentor, implicit)
Diffstat (limited to 'x11-fonts')
-rw-r--r-- | x11-fonts/wqy/Makefile | 20 | ||||
-rw-r--r-- | x11-fonts/wqy/pkg-plist | 4 |
2 files changed, 22 insertions, 2 deletions
diff --git a/x11-fonts/wqy/Makefile b/x11-fonts/wqy/Makefile index 6bcf80fe9e23..b04258edc09a 100644 --- a/x11-fonts/wqy/Makefile +++ b/x11-fonts/wqy/Makefile @@ -7,6 +7,7 @@ PORTNAME= wqy PORTVERSION= 0.8.0 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= x11-fonts MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ @@ -21,8 +22,12 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-bitmapfont NO_BUILD= yes USE_X_PREFIX= yes FONTSDIR= lib/X11/fonts/wqy +CONFDDIR= etc/fonts/conf.d +CONFAVAILDIR= etc/fonts/conf.avail -PLIST_SUB= FONTSDIR=${FONTSDIR} +PLIST_SUB= FONTSDIR=${FONTSDIR} \ + CONFDDIR=${CONFDDIR} \ + CONFAVAILDIR=${CONFAVAILDIR} BUILD_DEPENDS+= mkfontdir:${X_CLIENTS_PORT} BUILD_DEPENDS+= fc-cache:${PORTSDIR}/x11-fonts/fontconfig @@ -31,15 +36,28 @@ BUILD_DEPENDS+= fc-cache:${PORTSDIR}/x11-fonts/fontconfig PORTDOCS= AUTHORS ChangeLog COPYING INSTALL INSTALL.zh.gb2312 LOGO.png README .endif +OPTIONS= ALIAS "Install fonts.alias" off + +.if defined(WITH_ALIAS) +PLIST_SUB+= WITHALIAS="" +.else +PLIST_SUB+= WITHALIAS="@comment " +.endif + do-install: @${MKDIR} ${PREFIX}/${FONTSDIR} ${INSTALL_DATA} ${WRKSRC}/*.pcf ${PREFIX}/${FONTSDIR} + ${INSTALL_DATA} ${WRKSRC}/85-wqy-bitmapsong.conf ${PREFIX}/${CONFAVAILDIR} + ${LN} -s ${PREFIX}/${CONFAVAILDIR}/85-wqy-bitmapsong.conf ${PREFIX}/${CONFDDIR}/85-wqy-bitmapsong.conf post-install: @${RM} ${PREFIX}/${FONTSDIR}/fonts* >/dev/null 2>&1 || true @command mkfontdir ${PREFIX}/${FONTSDIR} || true @${CP} ${PREFIX}/${FONTSDIR}/fonts.dir ${PREFIX}/${FONTSDIR}/fonts.scale || true @command fc-cache -v ${PREFIX}/${FONTSDIR} || true +.if defined(WITH_ALIAS) + ${INSTALL_DATA} ${WRKSRC}/fonts.alias ${PREFIX}/${CONFAVAILDIR} +.endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} diff --git a/x11-fonts/wqy/pkg-plist b/x11-fonts/wqy/pkg-plist index 1492ea50ec2e..fc47e0b50055 100644 --- a/x11-fonts/wqy/pkg-plist +++ b/x11-fonts/wqy/pkg-plist @@ -1,4 +1,6 @@ -%%FONTSDIR%%/fonts.cache-1 +%%CONFAVAILDIR%%/85-wqy-bitmapsong.conf +%%CONFDDIR%%/85-wqy-bitmapsong.conf +%%WITHALIAS%%%%FONTSDIR%%/fonts.alias %%FONTSDIR%%/fonts.dir %%FONTSDIR%%/fonts.scale %%FONTSDIR%%/wenquanyi_10pt.pcf |