diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2013-04-30 23:49:46 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2013-04-30 23:49:46 +0000 |
commit | 191278d8acbf8991c0613766653039a4829ba95e (patch) | |
tree | 120e8a4e03aafbe65195feafcd923e21c24f2d91 /japanese/font-mona-ipa | |
parent | f516df6e057add87412b69ffecf56870bdf91e5c (diff) |
- Trim old-style header.
- Use OPTIONS_DEFINE.
- Style clean-ups.
Notes
Notes:
svn path=/head/; revision=316975
Diffstat (limited to 'japanese/font-mona-ipa')
-rw-r--r-- | japanese/font-mona-ipa/Makefile | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/japanese/font-mona-ipa/Makefile b/japanese/font-mona-ipa/Makefile index 9abb37180109..ad29c20ea99d 100644 --- a/japanese/font-mona-ipa/Makefile +++ b/japanese/font-mona-ipa/Makefile @@ -1,15 +1,11 @@ -# New ports collection makefile for: IPA+Mona TrueType fonts -# Date created: 15 February, 2009 -# Whom: hrs -# # $FreeBSD$ -# -PORTNAME= font-mona-ipa +PORTNAME= mona-ipa PORTVERSION= 1.0.8 PORTREVISION= 1 CATEGORIES= japanese x11-fonts MASTER_SITES= http://www.geocities.jp/ipa_mona/ +PKGNAMEPREFIX= ja-font- DISTNAME= opfc-ModuleHP-1.1.1_withIPAMonaFonts-${PORTVERSION} MAINTAINER= hrs@FreeBSD.org @@ -24,11 +20,16 @@ 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= COPYING.font.ja README_ipamona.txt LOCAL_FONTSDIR= share/fonts X_FONTSDIR= lib/X11/fonts +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + do-install: ${MKDIR} ${DATADIR} ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC} @@ -43,14 +44,14 @@ do-install: ${LN} -s -f \ ${DATADIR}/fonts/ipa*-mona.ttf \ ${PREFIX}/${X_FONTSDIR}/TTF/ - ${INSTALL_DATA} ${FILESDIR}/20-unhint-mona-ipa.conf \ - ${FILESDIR}/62-fonts-mona-ipa.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-mona-ipa.conf \ - ${PREFIX}/etc/fonts/conf.d/20-unhint-mona-ipa.conf - ${LN} -s -f ../conf.avail/62-fonts-mona-ipa.conf \ - ${PREFIX}/etc/fonts/conf.d/62-fonts-mona-ipa.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}/fonts && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif |