2004-08-14 07:57:02 +02: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-06-23 16:12:16 +02:00
|
|
|
PORTVERSION= 1.0.20060520.p1
|
2008-05-31 09:22:09 +02:00
|
|
|
PORTREVISION= 2
|
2007-06-23 16:12:16 +02:00
|
|
|
PORTEPOCH= 2
|
2004-08-14 07:57:02 +02:00
|
|
|
CATEGORIES= japanese x11-fonts
|
2007-06-23 16:12:16 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= hrs
|
|
|
|
DISTNAME= mixfont-mplus-ipa-TrueType-20060520p1
|
2004-08-14 07:57:02 +02:00
|
|
|
|
2004-08-19 13:29:42 +02:00
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
2007-01-03 04:06:36 +01:00
|
|
|
COMMENT= IPA Japanese TrueType fonts with M-plus outline font
|
2004-08-14 07:57:02 +02:00
|
|
|
|
2007-01-03 04:06:36 +01:00
|
|
|
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
2004-08-14 07:57:02 +02:00
|
|
|
|
2007-01-03 04:06:36 +01:00
|
|
|
USE_BZIP2= yes
|
2004-08-20 19:12:21 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
2005-11-13 20:03:15 +01:00
|
|
|
SUB_FILES= pkg-install
|
|
|
|
SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR}
|
2007-01-03 04:06:36 +01:00
|
|
|
PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \
|
2008-05-25 09:04:00 +02:00
|
|
|
LOCAL_FONTSDIR=${LOCAL_FONTSDIR}
|
2007-01-03 04:06:36 +01:00
|
|
|
PORTDOCS= Bitstream-COPYRIGHT.txt Mplus-LICENSE_E.txt \
|
|
|
|
Mplus-LICENSE_J.txt README.txt
|
2004-08-14 07:57:02 +02:00
|
|
|
|
2007-06-23 16:12:16 +02:00
|
|
|
LOCAL_FONTSDIR= share/fonts
|
|
|
|
X_FONTSDIR= lib/X11/fonts
|
|
|
|
|
2004-08-14 07:57:02 +02:00
|
|
|
do-install:
|
2007-01-03 04:06:36 +01:00
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}
|
|
|
|
${CP} -R ${WRKSRC}/opfc-ModuleHP-1.1.1_withIPAFonts_and_Mplus/* \
|
|
|
|
${DATADIR}
|
2007-06-23 16:12:16 +02:00
|
|
|
${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}/TrueType/
|
2007-01-03 04:06:36 +01:00
|
|
|
${LN} -s -f \
|
2007-06-23 16:12:16 +02:00
|
|
|
${DATADIR}/fonts/ipa*.ttf ${DATADIR}/fonts/M+*.ttf \
|
2007-01-18 04:28:38 +01:00
|
|
|
${LOCALBASE}/${LOCAL_FONTSDIR}/TrueType/
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
${MKDIR} ${LOCALBASE}/${X_FONTSDIR}/TrueType
|
2007-01-03 04:06:36 +01:00
|
|
|
${LN} -s -f \
|
2007-06-23 16:12:16 +02:00
|
|
|
${DATADIR}/fonts/ipa*.ttf ${DATADIR}/fonts/M+*.ttf \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
${LOCALBASE}/${X_FONTSDIR}/TrueType/
|
2007-03-25 19:07:40 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/20-unhint-ipattfonts.conf \
|
|
|
|
${FILESDIR}/62-fonts-ipattfonts.conf \
|
2008-05-11 20:17:06 +02:00
|
|
|
${PREFIX}/etc/fonts/conf.avail
|
|
|
|
${LN} -s -f ../conf.avail/20-unhint-ipattfonts.conf \
|
|
|
|
${PREFIX}/etc/fonts/conf.d/20-unhint-ipattfonts.conf
|
|
|
|
${LN} -s -f ../conf.avail/62-fonts-ipattfonts.conf \
|
|
|
|
${PREFIX}/etc/fonts/conf.d/62-fonts-ipattfonts.conf
|
2007-01-03 04:06:36 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2004-08-14 07:57:02 +02:00
|
|
|
|
2004-08-20 19:12:21 +02:00
|
|
|
post-install:
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
${LOCALBASE}/bin/fc-cache -f -v ${LOCALBASE}/${X_FONTSDIR}/TrueType
|
2004-08-14 07:57:02 +02:00
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|