aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/font-mplus-ipa
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-10-16 12:56:32 +0800
committerhrs <hrs@FreeBSD.org>2013-10-16 12:56:32 +0800
commit73527ab4b063e470f9264ad93d14c00402ed2981 (patch)
treeb86b884adffab535711c1d1607d506b110aa1fa2 /japanese/font-mplus-ipa
parentfcb71ec0c24df1e103ae975549fc45a2f46a5e60 (diff)
downloadfreebsd-ports-gnome-73527ab4b063e470f9264ad93d14c00402ed2981.tar.gz
freebsd-ports-gnome-73527ab4b063e470f9264ad93d14c00402ed2981.tar.zst
freebsd-ports-gnome-73527ab4b063e470f9264ad93d14c00402ed2981.zip
- Add STAGEDIR support.
- Update to 20130617 (japanese/font-migmix) - Update to 456 (japanese/font-ume)
Diffstat (limited to 'japanese/font-mplus-ipa')
-rw-r--r--japanese/font-mplus-ipa/Makefile43
1 files changed, 22 insertions, 21 deletions
diff --git a/japanese/font-mplus-ipa/Makefile b/japanese/font-mplus-ipa/Makefile
index 13a9c9926110..c7323fa74fb5 100644
--- a/japanese/font-mplus-ipa/Makefile
+++ b/japanese/font-mplus-ipa/Makefile
@@ -33,34 +33,35 @@ X_FONTSDIR= lib/X11/fonts
OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
.include <bsd.port.options.mk>
do-install:
- ${MKDIR} ${DATADIR}
- ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}
- ${CP} -R ${WRKSRC}/opfc-ModuleHP-1.1.1_withIPAFonts_and_Mplus/* \
- ${DATADIR}
- ${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}/TTF
- ${LN} -s -f ${DATADIR}/fonts/M+*.ttf \
- ${PREFIX}/${LOCAL_FONTSDIR}/TTF/
- ${MKDIR} ${PREFIX}/${X_FONTSDIR}/TTF
- ${LN} -s -f ${DATADIR}/fonts/M+*.ttf \
- ${PREFIX}/${X_FONTSDIR}/TTF/
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ cd ${WRKSRC}/opfc-ModuleHP-1.1.1_withIPAFonts_and_Mplus && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}/${DATADIR}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${LOCAL_FONTSDIR}/TTF
+ cd ${STAGEDIR}${PREFIX}/${LOCAL_FONTSDIR}/TTF && ${LN} -s -f \
+ ../${LOCAL_FONTSDIR:C,[^/]+,..,g}/${DATADIR_REL}/fonts/M+*.ttf .
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${X_FONTSDIR}/TTF
+ cd ${STAGEDIR}${PREFIX}/${X_FONTSDIR}/TTF && ${LN} -s -f \
+ ../${X_FONTSDIR:C,[^/]+,..,g}/${DATADIR_REL}/fonts/M+*.ttf .
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \
+ ${STAGEDIR}${PREFIX}/etc/fonts/conf.d
${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}.conf \
- ${FILESDIR}/62-fonts-${PORTNAME}.conf \
- ${PREFIX}/etc/fonts/conf.avail
+ ${FILESDIR}/62-fonts-${PORTNAME}.conf \
+ ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail
${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}.conf \
- ${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}.conf
+ ${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}.conf
${LN} -s -f ../conf.avail/62-fonts-${PORTNAME}.conf \
- ${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}.conf
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
+ ${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}.conf
-post-install:
- ${LOCALBASE}/bin/fc-cache -s -f -v ${PREFIX}/${X_FONTSDIR}/TTF
+post-su-install:
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.if ${PORT_OPTIONS:MDOCS}
+post-install:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+.endif
+
.include <bsd.port.mk>