aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-05-01 04:53:25 +0800
committerhrs <hrs@FreeBSD.org>2013-05-01 04:53:25 +0800
commit191b6faf857a3f55d13184d1d2af00aa6ab76352 (patch)
tree1a432e6c8f6c0e0bada6ea4025d4d3f869c7c330 /japanese
parent0cf1f34930c23b063dc78d08e8141cc6ca8c7a3c (diff)
downloadfreebsd-ports-gnome-191b6faf857a3f55d13184d1d2af00aa6ab76352.tar.gz
freebsd-ports-gnome-191b6faf857a3f55d13184d1d2af00aa6ab76352.tar.zst
freebsd-ports-gnome-191b6faf857a3f55d13184d1d2af00aa6ab76352.zip
- Trim old-style header.
- Use OPTIONS_DEFINE.
Diffstat (limited to 'japanese')
-rw-r--r--japanese/font-sazanami/Makefile31
1 files changed, 14 insertions, 17 deletions
diff --git a/japanese/font-sazanami/Makefile b/japanese/font-sazanami/Makefile
index 770a0c1f7d58..14ff14b72b23 100644
--- a/japanese/font-sazanami/Makefile
+++ b/japanese/font-sazanami/Makefile
@@ -1,16 +1,10 @@
-# New ports collection makefile for: Sazanami TrueType fonts
-# Date created: 19 June 2004
-# Whom: hrs
-#
# $FreeBSD$
-#
-PORTNAME= font-sazanami
+PORTNAME= sazanami
PORTVERSION= 20040629
CATEGORIES= japanese x11-fonts
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
-MASTER_SITE_SUBDIR= efont/10087
-DISTNAME= ${PORTNAME:C/font-//}-${PORTVERSION}
+MASTER_SITES= SFJP/efont/10087
+PKGNAMEPREFIX= ja-font-
MAINTAINER= hrs@FreeBSD.org
COMMENT= Sazanami Japanese TrueType fonts
@@ -26,11 +20,14 @@ SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR}
PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \
LOCAL_FONTSDIR=${LOCAL_FONTSDIR}
PORTDOCS= README doc
-WRKSRC= ${WRKDIR}/sazanami-${PORTVERSION}
LOCAL_FONTSDIR= share/fonts
X_FONTSDIR= lib/X11/fonts
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.ttf ${DATADIR}
@@ -40,14 +37,14 @@ do-install:
${MKDIR} ${PREFIX}/${X_FONTSDIR}/TTF
${LN} -s -f \
${DATADIR}/*.ttf ${PREFIX}/${X_FONTSDIR}/TTF/
- ${INSTALL_DATA} ${FILESDIR}/20-unhint-sazanami.conf \
- ${FILESDIR}/62-fonts-sazanami.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-sazanami.conf \
- ${PREFIX}/etc/fonts/conf.d/20-unhint-sazanami.conf
- ${LN} -s -f ../conf.avail/62-fonts-sazanami.conf \
- ${PREFIX}/etc/fonts/conf.d/62-fonts-sazanami.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} && ${CP} -R ${PORTDOCS} ${DOCSDIR}
.endif