diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-05 00:13:48 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-05 00:13:48 +0000 |
commit | 74608cb0a8636078b4ebaca109ed9c12cbbb1143 (patch) | |
tree | 798677fb82ad47350b9d28129c8907db9f39b325 /x11-fonts/wqy | |
parent | f6689bb7b511203e27277126b216881391c15450 (diff) | |
download | ports-74608cb0a8636078b4ebaca109ed9c12cbbb1143.tar.gz ports-74608cb0a8636078b4ebaca109ed9c12cbbb1143.zip |
Notes
Diffstat (limited to 'x11-fonts/wqy')
-rw-r--r-- | x11-fonts/wqy/Makefile | 37 | ||||
-rw-r--r-- | x11-fonts/wqy/pkg-plist | 1 |
2 files changed, 15 insertions, 23 deletions
diff --git a/x11-fonts/wqy/Makefile b/x11-fonts/wqy/Makefile index 1e257177d858..dce55a6e2dfd 100644 --- a/x11-fonts/wqy/Makefile +++ b/x11-fonts/wqy/Makefile @@ -39,17 +39,14 @@ PLIST_SUB= FONTSDIR=${FONTSDIR} \ SUB_FILES= pkg-message SUB_LIST= FONTSDIR=${PREFIX}/${FONTSDIR} -NO_STAGE= yes -.include <bsd.port.pre.mk> +OPTIONS_DEFINE= DOCS -.if !defined(NOPORTDOCS) PORTDOCS= AUTHORS.bitmap ChangeLog.bitmap README.bitmap COPYING.bitmap \ LOGO.png \ AUTHORS.zenhei ChangeLog.zenhei README.zenhei \ AUTHORS.microheilite README.microheilite ChangeLog.microheilite \ AUTHORS.microhei README.microhei ChangeLog.microhei \ LICENSE_Apache2.txt LICENSE_GPLv3.txt -.endif do-build: ${PERL} ${WRKDIR}/wqy-unibit/bdfmerge.pl 0x0--0xFFFF ${WRKDIR}/wqy-unibit/wqy-unibit.bdf > ${WRKDIR}/wqy-unibit/wqy-unibit_cjk.bdf @@ -69,23 +66,22 @@ do-build: ${CP} ${WRKDIR}/wqy-microhei/README.txt ${WRKDIR}/wqy-microhei/README.microhei do-install: - ${MKDIR} ${PREFIX}/${FONTSDIR} ${PREFIX}/${CONFDDIR} ${PREFIX}/${CONFAVAILDIR} + ${MKDIR} ${STAGEDIR}${PREFIX}/${FONTSDIR} ${STAGEDIR}${PREFIX}/${CONFDDIR} ${STAGEDIR}${PREFIX}/${CONFAVAILDIR} # WQY Bitmap Song - ${INSTALL_DATA} ${WRKDIR}/wqy-bitmapsong/*.pcf ${PREFIX}/${FONTSDIR} + ${INSTALL_DATA} ${WRKDIR}/wqy-bitmapsong/*.pcf ${STAGEDIR}${PREFIX}/${FONTSDIR} # WQY Bitmap Song - ${INSTALL_DATA} ${WRKDIR}/wqy-unibit/wqy-unibit.pcf ${PREFIX}/${FONTSDIR} + ${INSTALL_DATA} ${WRKDIR}/wqy-unibit/wqy-unibit.pcf ${STAGEDIR}${PREFIX}/${FONTSDIR} # WQY TrueType Zenhei - ${INSTALL_DATA} ${WRKDIR}/wqy-zenhei/wqy-zenhei.ttc ${PREFIX}/${FONTSDIR} + ${INSTALL_DATA} ${WRKDIR}/wqy-zenhei/wqy-zenhei.ttc ${STAGEDIR}${PREFIX}/${FONTSDIR} # WQY TrueType MicroHei Lite - ${INSTALL_DATA} ${WRKDIR}/wqy-microhei-lite/wqy-microhei-lite.ttc ${PREFIX}/${FONTSDIR} + ${INSTALL_DATA} ${WRKDIR}/wqy-microhei-lite/wqy-microhei-lite.ttc ${STAGEDIR}${PREFIX}/${FONTSDIR} # WQY TrueType MicroHei - ${INSTALL_DATA} ${WRKDIR}/wqy-microhei/wqy-microhei.ttc ${PREFIX}/${FONTSDIR} + ${INSTALL_DATA} ${WRKDIR}/wqy-microhei/wqy-microhei.ttc ${STAGEDIR}${PREFIX}/${FONTSDIR} - ${INSTALL_DATA} ${FILESDIR}/85-wqy.conf ${PREFIX}/${CONFAVAILDIR} - ${LN} -sf ${PREFIX}/${CONFAVAILDIR}/85-wqy.conf ${PREFIX}/${CONFDDIR}/85-wqy.conf + ${INSTALL_DATA} ${FILESDIR}/85-wqy.conf ${STAGEDIR}${PREFIX}/${CONFAVAILDIR} + ${LN} -sf ${PREFIX}/${CONFAVAILDIR}/85-wqy.conf ${STAGEDIR}${PREFIX}/${CONFDDIR}/85-wqy.conf -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} \ ${WRKDIR}/wqy-bitmapsong/AUTHORS.bitmap \ ${WRKDIR}/wqy-bitmapsong/ChangeLog.bitmap \ @@ -103,15 +99,10 @@ do-install: ${WRKDIR}/wqy-microhei/README.microhei \ ${WRKDIR}/wqy-microhei/LICENSE_Apache2.txt \ ${WRKDIR}/wqy-microhei/LICENSE_GPLv3.txt \ - ${DOCSDIR} -.endif + ${STAGEDIR}${DOCSDIR} post-install: - @${RM} -f ${PREFIX}/${FONTSDIR}/fonts.dir - @${RM} -f ${PREFIX}/${FONTSDIR}/fonts.scale - @command mkfontscale -b ${PREFIX}/${FONTSDIR} - @command fc-cache -fv + @${RM} -f ${STAGEDIR}${PREFIX}/${FONTSDIR}/fonts.dir + @${RM} -f ${STAGEDIR}${PREFIX}/${FONTSDIR}/fonts.scale - ${CAT} ${PKGMESSAGE} - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/x11-fonts/wqy/pkg-plist b/x11-fonts/wqy/pkg-plist index 19ee03ee53e7..888caad1decf 100644 --- a/x11-fonts/wqy/pkg-plist +++ b/x11-fonts/wqy/pkg-plist @@ -10,4 +10,5 @@ %%FONTSDIR%%/wqy-zenhei.ttc %%FONTSDIR%%/wqy-microhei-lite.ttc %%FONTSDIR%%/wqy-microhei.ttc +@fcfontsdir %%FONTSDIR%% @dirrm %%FONTSDIR%% |