2004-08-14 05:57:02 +00:00
|
|
|
# New ports collection makefile for: IPA TrueType fonts
|
|
|
|
# Date created: 18 July 2004
|
|
|
|
# Whom: NAKATA, Maho <maho@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ipa-ttfonts
|
2007-01-03 03:06:36 +00:00
|
|
|
PORTVERSION= 1.0.20060520
|
|
|
|
PORTREVISION= 0
|
2004-08-20 18:49:34 +00:00
|
|
|
PORTEPOCH= 1
|
2004-08-14 05:57:02 +00:00
|
|
|
CATEGORIES= japanese x11-fonts
|
2007-01-03 03:06:36 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
|
|
|
|
MASTER_SITE_SUBDIR= mix-mplus-ipa/20216
|
|
|
|
DISTNAME= mixfont-mplus-ipa-TrueType-20060520
|
2004-08-14 05:57:02 +00:00
|
|
|
|
2004-08-19 11:29:42 +00:00
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
2007-01-03 03:06:36 +00:00
|
|
|
COMMENT= IPA Japanese TrueType fonts with M-plus outline font
|
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
|
|
|
|
2007-01-03 03:06:36 +00:00
|
|
|
USE_BZIP2= yes
|
2004-08-20 17:12:21 +00:00
|
|
|
NO_BUILD= yes
|
2007-01-03 03:06:36 +00:00
|
|
|
WRKSRC= ${WRKDIR}/mixfont-mplus-ipa-TrueType-20060520
|
2004-08-20 17:12:21 +00:00
|
|
|
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-18 03:28:38 +00:00
|
|
|
LOCAL_FONTSDIR= share/fonts
|
|
|
|
X_FONTSDIR= lib/X11/fonts
|
2007-01-03 03:06:36 +00:00
|
|
|
DATADIR= ${LOCALBASE}/share/${PORTNAME}
|
2004-08-20 17:12:21 +00:00
|
|
|
|
2005-11-13 19:03:15 +00:00
|
|
|
USE_X_PREFIX= yes
|
2004-08-20 17:12:21 +00:00
|
|
|
|
2007-01-03 03:06:36 +00:00
|
|
|
PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \
|
|
|
|
FONTSDIR_EXTRA=${X_FONTSDIR}/fonts.dir.ipa \
|
|
|
|
LOCAL_FONTSDIR=${LOCAL_FONTSDIR} \
|
|
|
|
DATADIR=share/${PORTNAME}
|
|
|
|
|
|
|
|
PORTDOCS= Bitstream-COPYRIGHT.txt Mplus-LICENSE_E.txt \
|
|
|
|
Mplus-LICENSE_J.txt README.txt
|
2004-08-14 05:57:02 +00:00
|
|
|
|
|
|
|
do-install:
|
2007-01-03 03:06:36 +00:00
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}
|
|
|
|
${CP} -R ${WRKSRC}/opfc-ModuleHP-1.1.1_withIPAFonts_and_Mplus/* \
|
|
|
|
${DATADIR}
|
2007-01-18 03:28:38 +00:00
|
|
|
${MKDIR} ${LOCALBASE}/${LOCAL_FONTSDIR}/TrueType/
|
2007-01-03 03:06:36 +00:00
|
|
|
${LN} -s -f \
|
|
|
|
${DATADIR}/fonts/ipa*.ttf \
|
2007-01-18 03:28:38 +00:00
|
|
|
${LOCALBASE}/${LOCAL_FONTSDIR}/TrueType/
|
2007-01-03 03:06:36 +00:00
|
|
|
${LN} -s -f \
|
|
|
|
${DATADIR}/fonts/M+*.ttf \
|
2007-01-18 03:28:38 +00:00
|
|
|
${LOCALBASE}/${LOCAL_FONTSDIR}/TrueType/
|
|
|
|
${MKDIR} ${PREFIX}/${X_FONTSDIR}/TrueType
|
2004-08-14 05:57:02 +00:00
|
|
|
${LN} -s -f \
|
2007-01-03 03:06:36 +00:00
|
|
|
${DATADIR}/fonts/ipa*.ttf \
|
2007-01-18 03:28:38 +00:00
|
|
|
${PREFIX}/${X_FONTSDIR}/TrueType/
|
2004-08-14 05:57:02 +00:00
|
|
|
${LN} -s -f \
|
2007-01-03 03:06:36 +00:00
|
|
|
${DATADIR}/fonts/M+*.ttf \
|
2007-01-18 03:28:38 +00:00
|
|
|
${PREFIX}/${X_FONTSDIR}/TrueType/
|
2005-11-13 19:03:15 +00:00
|
|
|
${MKDIR} ${PREFIX}/etc/fonts/conf.d
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/2.ipa-ttfonts.conf \
|
|
|
|
${PREFIX}/etc/fonts/conf.d
|
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:
|
2007-01-18 03:28:38 +00:00
|
|
|
${X11BASE}/bin/fc-cache -f -v ${PREFIX}/${X_FONTSDIR}/TrueType
|
2004-08-14 05:57:02 +00:00
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|