aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/font-migu/Makefile
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2011-07-18 16:57:02 +0800
committerhrs <hrs@FreeBSD.org>2011-07-18 16:57:02 +0800
commit1dc2607a1d2471219cbcb3dda726d6729f4901b9 (patch)
tree50ebb5f6fe4426b6b334b3c33f86bb87b1432b7b /japanese/font-migu/Makefile
parent0143685ad038689a748063a74b76ed338875aee8 (diff)
downloadfreebsd-ports-gnome-1dc2607a1d2471219cbcb3dda726d6729f4901b9.tar.gz
freebsd-ports-gnome-1dc2607a1d2471219cbcb3dda726d6729f4901b9.tar.zst
freebsd-ports-gnome-1dc2607a1d2471219cbcb3dda726d6729f4901b9.zip
Add japanese/font-migu, another Japanese font set based on MigMix.
Diffstat (limited to 'japanese/font-migu/Makefile')
-rw-r--r--japanese/font-migu/Makefile76
1 files changed, 76 insertions, 0 deletions
diff --git a/japanese/font-migu/Makefile b/japanese/font-migu/Makefile
new file mode 100644
index 000000000000..4aceba73e7ba
--- /dev/null
+++ b/japanese/font-migu/Makefile
@@ -0,0 +1,76 @@
+# New ports collection makefile for: font-migu
+# Date created: 22 June 2011
+# Whom: hrs
+#
+# $FreeBSD$
+#
+
+PORTNAME= font-migu
+PORTVERSION= 1.0.20110610
+CATEGORIES= japanese x11-fonts
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
+MASTER_SITE_SUBDIR= mix-mplus-ipa/52283
+DISTFILES= Migu-1P-20110610${EXTRACT_SUFX} \
+ Migu-1C-20110610${EXTRACT_SUFX} \
+ Migu-1M-20110610${EXTRACT_SUFX} \
+ Migu-2M-20110610${EXTRACT_SUFX} \
+ Migu-1VS-20110610${EXTRACT_SUFX} \
+ Migu-2DS-20110610${EXTRACT_SUFX}
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= Another Japanese font set based on MigMix
+
+RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
+
+USE_ZIP= yes
+NO_BUILD= yes
+PKGINSTALL= ${WRKDIR}/pkg-install
+PKGDEINSTALL= ${WRKDIR}/pkg-install
+SUB_FILES= pkg-install
+SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR}
+PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \
+ LOCAL_FONTSDIR=${LOCAL_FONTSDIR}
+PORTDOCS= IPA_Font_License_Agreement_v1.0.txt Readme_ipag00303.txt \
+ README_E README_J LICENSE_E LICENSE_J Migu-README.txt
+
+LOCAL_FONTSDIR= share/fonts
+X_FONTSDIR= lib/X11/fonts
+
+do-install:
+ cd ${WRKDIR}/Migu-1P-20110610/ && \
+ ${INSTALL_DATA} ipag00303/*.txt \
+ mplus-TESTFLIGHT-040/* \
+ Migu-README.txt \
+ ${WRKDIR}
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} \
+ ${WRKDIR}/Migu-1P-20110610/*.ttf \
+ ${WRKDIR}/Migu-1C-20110610/*.ttf \
+ ${WRKDIR}/Migu-1M-20110610/*.ttf \
+ ${WRKDIR}/Migu-2M-20110610/*.ttf \
+ ${WRKDIR}/Migu-1VS-20110610/*.ttf \
+ ${WRKDIR}/Migu-2DS-20110610/*.ttf \
+ ${DATADIR}
+ ${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}/TTF
+ ${LN} -s -f ${DATADIR}/Migu*.ttf \
+ ${PREFIX}/${LOCAL_FONTSDIR}/TTF/
+ ${MKDIR} ${PREFIX}/${X_FONTSDIR}/TTF
+ ${LN} -s -f ${DATADIR}/Migu*.ttf \
+ ${PREFIX}/${X_FONTSDIR}/TTF/
+ ${INSTALL_DATA} ${FILESDIR}/20-unhint-migu.conf \
+ ${FILESDIR}/62-fonts-migu.conf \
+ ${PREFIX}/etc/fonts/conf.avail
+ ${LN} -s -f ../conf.avail/20-unhint-migu.conf \
+ ${PREFIX}/etc/fonts/conf.d/20-unhint-migu.conf
+ ${LN} -s -f ../conf.avail/62-fonts-migu.conf \
+ ${PREFIX}/etc/fonts/conf.d/62-fonts-migu.conf
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKDIR} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+
+post-install:
+ ${LOCALBASE}/bin/fc-cache -s -f -v ${PREFIX}/${X_FONTSDIR}/TTF
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>