aboutsummaryrefslogtreecommitdiff
path: root/chinese/cnprint
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2012-11-22 06:52:09 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2012-11-22 06:52:09 +0000
commit5a1cb5a9adc659bc74c8e770397d2b5c15f813d2 (patch)
tree602b9afb2d81533a36a74b6e4fc3ad11c36ffc65 /chinese/cnprint
parenteba0950b8ed2abe6196f0c95d302f55ebb6bf031 (diff)
downloadports-5a1cb5a9adc659bc74c8e770397d2b5c15f813d2.tar.gz
ports-5a1cb5a9adc659bc74c8e770397d2b5c15f813d2.zip
- Switch to OPTIONSNG
- Trim Makefile header PR: ports/173579 Submitted by: edward@rdtan.net Feature safe: yes
Notes
Notes: svn path=/head/; revision=307639
Diffstat (limited to 'chinese/cnprint')
-rw-r--r--chinese/cnprint/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/chinese/cnprint/Makefile b/chinese/cnprint/Makefile
index 099fd53fbcbf..a577f113edc8 100644
--- a/chinese/cnprint/Makefile
+++ b/chinese/cnprint/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: cnprint
-# Date created: 29 Jan 2003
-# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
-#
+# Created by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
# $FreeBSD$
-#
PORTNAME= cnprint
PORTVERSION= 3.30b
@@ -23,7 +19,10 @@ DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
FILES= ${WRKSRC}/*.sym ${WRKSRC}/*.htf ${WRKSRC}/*.hbf \
${WRKSRC}/*.bin ${WRKSRC}/*.ttf
-OPTIONS= A4SIZE "Set A4 (not Letter) as a default paper size" on
+OPTIONS_DEFINE= A4SIZE
+OPTIONS_DEFAULT= A4SIZE
+
+A4SIZE_DESC= Set A4 (not Letter) as a default paper size
.include <bsd.port.pre.mk>
@@ -43,7 +42,7 @@ post-patch:
@${REINPLACE_CMD} -e 's/\(DEFAULT_JIS_FONT\):.*$$/\1: kanji48.hbf/; \
s/\(DEFAULT_BIG5FONT\):.*$$/\1: ntu_kai48.hbf/; \
s/\(DEFAULT_ENCODING\):.*$$/\1: BIG5/' ${WRKSRC}/cnprint33.cmd
-.if defined(WITH_A4SIZE)
+.if ${PORT_OPTIONS:MA4SIZE}
@${REINPLACE_CMD} -e 's/\(DEFAULT_PAPERSIZE\):.*$$/\1: 8.27 11.69/' \
${WRKSRC}/cnprint33.cmd
.endif