aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-05-01 11:19:09 +0800
committerhrs <hrs@FreeBSD.org>2013-05-01 11:19:09 +0800
commit889fb9129d31067be68c9c06a7bde5fec776558e (patch)
treebd9afdb55e9ce2d836b95b3d782597cde5344254 /japanese
parent018f471d9fa70c84ed6c2059c9421351768fc9c1 (diff)
downloadfreebsd-ports-gnome-889fb9129d31067be68c9c06a7bde5fec776558e.tar.gz
freebsd-ports-gnome-889fb9129d31067be68c9c06a7bde5fec776558e.tar.zst
freebsd-ports-gnome-889fb9129d31067be68c9c06a7bde5fec776558e.zip
- Trim old-style header.
- Use OPTIONS_DEFINE. - Style clean-ups.
Diffstat (limited to 'japanese')
-rw-r--r--japanese/font-takao/Makefile28
-rw-r--r--japanese/font-takao/pkg-descr2
2 files changed, 16 insertions, 14 deletions
diff --git a/japanese/font-takao/Makefile b/japanese/font-takao/Makefile
index 6dd008fe2bc0..ac21ffd070c7 100644
--- a/japanese/font-takao/Makefile
+++ b/japanese/font-takao/Makefile
@@ -1,14 +1,11 @@
-# New ports collection makefile for: font-takao
-# Date created: 19 February 2010
-# Whom: hrs
# $FreeBSD$
-#
-PORTNAME= font-takao
+PORTNAME= takao
PORTVERSION= 003.02.01
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://launchpadlibrarian.net/40218948/
-DISTNAME= takao-fonts-ttf-${PORTVERSION}
+PKGNAMEPREFIX= ja-font-
+DISTNAME= ${PORTNAME}-fonts-ttf-${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= An improved IPA Japanese fonts
@@ -22,6 +19,7 @@ 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 \
README.ja \
@@ -30,6 +28,10 @@ PORTDOCS= IPA_Font_License_Agreement_v1.0.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
@@ -44,14 +46,14 @@ do-install:
${LN} -s -f \
${DATADIR}/Takao*.otf \
${PREFIX}/${X_FONTSDIR}/OTF/
- ${INSTALL_DATA} ${FILESDIR}/20-unhint-takao.conf \
- ${FILESDIR}/62-fonts-takao.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-takao.conf \
- ${PREFIX}/etc/fonts/conf.d/20-unhint-takao.conf
- ${LN} -s -f ../conf.avail/62-fonts-takao.conf \
- ${PREFIX}/etc/fonts/conf.d/62-fonts-takao.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
diff --git a/japanese/font-takao/pkg-descr b/japanese/font-takao/pkg-descr
index 81d78b176f41..7f23cd4cd63a 100644
--- a/japanese/font-takao/pkg-descr
+++ b/japanese/font-takao/pkg-descr
@@ -2,4 +2,4 @@ Takao Fonts are a community developed derivatives of IPA Fonts. The
main purpose of this project is to secure the possibility to maintain
the fonts by the community.
-WWW: https://launchpad.net/takao-fonts
+WWW: https://launchpad.net/takao-fonts