aboutsummaryrefslogtreecommitdiff
path: root/japanese/font-sazanami/Makefile
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-04-30 20:53:25 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-04-30 20:53:25 +0000
commitc25e9122da28ffaa7fb1731bd6b0146b48918440 (patch)
tree1a432e6c8f6c0e0bada6ea4025d4d3f869c7c330 /japanese/font-sazanami/Makefile
parent961249edd2955876b5c1897407e8be45cb42cda4 (diff)
downloadports-c25e9122da28ffaa7fb1731bd6b0146b48918440.tar.gz
ports-c25e9122da28ffaa7fb1731bd6b0146b48918440.zip
Notes
Diffstat (limited to 'japanese/font-sazanami/Makefile')
-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