2009-05-31 09:15:47 +00:00
|
|
|
# New ports collection makefile for: font-ipa
|
|
|
|
# Date created: 26 April 2009
|
|
|
|
# Whom: hrs
|
2004-08-14 05:57:02 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2009-05-31 09:15:47 +00:00
|
|
|
PORTNAME= font-ipa
|
|
|
|
PORTVERSION= 00301
|
2010-02-19 15:29:56 +00:00
|
|
|
PORTREVISION= 2
|
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/
|
|
|
|
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
|
|
|
|
2007-01-03 03:06:36 +00:00
|
|
|
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
2004-08-14 05:57:02 +00:00
|
|
|
|
2009-06-05 01:05:27 +00:00
|
|
|
CONFLICTS= ja-ipa-ttfonts-[0-9]*
|
|
|
|
|
2009-05-31 09:15:47 +00:00
|
|
|
USE_ZIP= 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
|
|
|
|
SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR}
|
2007-01-03 03:06:36 +00:00
|
|
|
PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \
|
2008-05-25 07:04:00 +00:00
|
|
|
LOCAL_FONTSDIR=${LOCAL_FONTSDIR}
|
2009-05-31 09:15:47 +00:00
|
|
|
PORTDOCS= IPA_Font_License_Agreement_v1.0.txt \
|
|
|
|
Readme${PORTVERSION}.txt
|
2004-08-14 05:57:02 +00:00
|
|
|
|
2007-06-23 14:12:16 +00:00
|
|
|
LOCAL_FONTSDIR= share/fonts
|
|
|
|
X_FONTSDIR= lib/X11/fonts
|
|
|
|
|
2004-08-14 05:57:02 +00:00
|
|
|
do-install:
|
2007-01-03 03:06:36 +00:00
|
|
|
${MKDIR} ${DATADIR}
|
2009-05-31 09:15:47 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.otf ${DATADIR}
|
|
|
|
${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}/OTF
|
2007-01-03 03:06:36 +00:00
|
|
|
${LN} -s -f \
|
2009-05-31 09:15:47 +00:00
|
|
|
${DATADIR}/ipa*.otf \
|
|
|
|
${LOCALBASE}/${LOCAL_FONTSDIR}/OTF/
|
|
|
|
${MKDIR} ${LOCALBASE}/${X_FONTSDIR}/OTF
|
2007-01-03 03:06:36 +00:00
|
|
|
${LN} -s -f \
|
2009-05-31 09:15:47 +00:00
|
|
|
${DATADIR}/ipa*.otf \
|
|
|
|
${LOCALBASE}/${X_FONTSDIR}/OTF/
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/20-unhint-ipa.conf \
|
|
|
|
${FILESDIR}/62-fonts-ipa.conf \
|
2008-05-11 18:17:06 +00:00
|
|
|
${PREFIX}/etc/fonts/conf.avail
|
2009-05-31 09:15:47 +00:00
|
|
|
${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
|
2007-01-03 03:06:36 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2004-08-14 05:57:02 +00:00
|
|
|
|
2004-08-20 17:12:21 +00:00
|
|
|
post-install:
|
2009-05-31 09:15:47 +00:00
|
|
|
${LOCALBASE}/bin/fc-cache -f -v ${LOCALBASE}/${X_FONTSDIR}/OTF
|
2004-08-14 05:57:02 +00:00
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|