diff options
Diffstat (limited to 'japanese/font-ipa/Makefile')
-rw-r--r-- | japanese/font-ipa/Makefile | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/japanese/font-ipa/Makefile b/japanese/font-ipa/Makefile index f6891041971b..c2075d82e8be 100644 --- a/japanese/font-ipa/Makefile +++ b/japanese/font-ipa/Makefile @@ -1,13 +1,10 @@ -# New ports collection makefile for: font-ipa -# Date created: 26 April 2009 -# Whom: hrs # $FreeBSD$ -# -PORTNAME= font-ipa +PORTNAME= ipa PORTVERSION= 00303 CATEGORIES= japanese x11-fonts MASTER_SITES= http://info.openlab.ipa.go.jp/ipafont/fontdata/ +PKGNAMEPREFIX= ja-font- DISTNAME= IPAfont${PORTVERSION} MAINTAINER= hrs@FreeBSD.org @@ -25,12 +22,17 @@ SUB_FILES= pkg-install SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR} PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \ LOCAL_FONTSDIR=${LOCAL_FONTSDIR} +DATADIR= ${PREFIX}/share/font-${PORTNAME} PORTDOCS= IPA_Font_License_Agreement_v1.0.txt \ Readme_IPAfont${PORTVERSION}.txt LOCAL_FONTSDIR= share/fonts X_FONTSDIR= lib/X11/fonts +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + post-extract: cd ${WRKSRC} && for F in *.ttf; do ${MV} $${F} $${F%.ttf}.otf; done @@ -45,14 +47,14 @@ do-install: ${LN} -s -f \ ${DATADIR}/ipa*.otf \ ${PREFIX}/${X_FONTSDIR}/OTF/ - ${INSTALL_DATA} ${FILESDIR}/20-unhint-ipa.conf \ - ${FILESDIR}/62-fonts-ipa.conf \ + ${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}.conf \ + ${FILESDIR}/62-fonts-${PORTNAME}.conf \ ${PREFIX}/etc/fonts/conf.avail - ${LN} -s -f ../conf.avail/20-unhint-ipa.conf \ - ${PREFIX}/etc/fonts/conf.d/20-unhint-ipa.conf - ${LN} -s -f ../conf.avail/62-fonts-ipa.conf \ - ${PREFIX}/etc/fonts/conf.d/62-fonts-ipa.conf -.if !defined(NOPORTDOCS) + ${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}.conf \ + ${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 |