2004-08-14 05:57:02 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2013-04-30 23:47:02 +00:00
|
|
|
PORTNAME= ipa
|
2011-05-17 08:05:50 +00:00
|
|
|
PORTVERSION= 00303
|
2015-09-25 22:02:16 +00:00
|
|
|
PORTREVISION= 6
|
2004-08-14 05:57:02 +00:00
|
|
|
CATEGORIES= japanese x11-fonts
|
2009-05-31 09:15:47 +00:00
|
|
|
MASTER_SITES= http://info.openlab.ipa.go.jp/ipafont/fontdata/
|
2013-04-30 23:47:02 +00:00
|
|
|
PKGNAMEPREFIX= ja-font-
|
2009-05-31 09:15:47 +00:00
|
|
|
DISTNAME= IPAfont${PORTVERSION}
|
2004-08-14 05:57:02 +00:00
|
|
|
|
2004-08-19 11:29:42 +00:00
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
2009-05-31 13:50:24 +00:00
|
|
|
COMMENT= IPA Japanese fonts
|
2004-08-14 05:57:02 +00:00
|
|
|
|
2009-06-05 01:05:27 +00:00
|
|
|
CONFLICTS= ja-ipa-ttfonts-[0-9]*
|
|
|
|
|
2015-09-13 23:36:45 +00:00
|
|
|
USES= fonts:fc zip
|
|
|
|
FONTNAME= OTF
|
2015-09-25 22:02:16 +00:00
|
|
|
NO_ARCH= yes
|
2004-08-20 17:12:21 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
2005-11-13 19:03:15 +00:00
|
|
|
SUB_FILES= pkg-install
|
2013-04-30 23:47:02 +00:00
|
|
|
DATADIR= ${PREFIX}/share/font-${PORTNAME}
|
2009-05-31 09:15:47 +00:00
|
|
|
PORTDOCS= IPA_Font_License_Agreement_v1.0.txt \
|
2010-03-02 04:50:41 +00:00
|
|
|
Readme_IPAfont${PORTVERSION}.txt
|
2004-08-14 05:57:02 +00:00
|
|
|
|
2013-04-30 23:47:02 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2010-03-02 04:50:41 +00:00
|
|
|
post-extract:
|
|
|
|
cd ${WRKSRC} && for F in *.ttf; do ${MV} $${F} $${F%.ttf}.otf; done
|
|
|
|
|
2004-08-14 05:57:02 +00:00
|
|
|
do-install:
|
2013-10-16 04:56:32 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.otf ${STAGEDIR}${DATADIR}
|
2015-03-21 23:05:19 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${FONTSDIR}
|
|
|
|
cd ${STAGEDIR}${FONTSDIR}/ && ${LN} -s -f \
|
|
|
|
../../../${DATADIR_REL}/ipa*.otf .
|
2013-10-16 04:56:32 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/conf.d
|
2013-04-30 23:47:02 +00:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}.conf \
|
2013-10-16 04:56:32 +00:00
|
|
|
${FILESDIR}/62-fonts-${PORTNAME}.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/conf.avail
|
2013-04-30 23:47:02 +00:00
|
|
|
${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}.conf \
|
2013-10-16 04:56:32 +00:00
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}.conf
|
2013-04-30 23:47:02 +00:00
|
|
|
${LN} -s -f ../conf.avail/62-fonts-${PORTNAME}.conf \
|
2013-10-16 04:56:32 +00:00
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}.conf
|
2015-09-12 23:16:28 +00:00
|
|
|
|
|
|
|
post-install-DOCS-on:
|
2013-10-16 04:56:32 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2004-08-14 05:57:02 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|