diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2012-11-22 14:52:09 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2012-11-22 14:52:09 +0800 |
commit | c6ae82eebeaf74c34a30183bc367cb781bc4ed20 (patch) | |
tree | 602b9afb2d81533a36a74b6e4fc3ad11c36ffc65 /chinese | |
parent | 83c8b0024b675b195b8652677e7f2e3dc3b6482e (diff) | |
download | freebsd-ports-gnome-c6ae82eebeaf74c34a30183bc367cb781bc4ed20.tar.gz freebsd-ports-gnome-c6ae82eebeaf74c34a30183bc367cb781bc4ed20.tar.zst freebsd-ports-gnome-c6ae82eebeaf74c34a30183bc367cb781bc4ed20.zip |
- Switch to OPTIONSNG
- Trim Makefile header
PR: ports/173579
Submitted by: edward@rdtan.net
Feature safe: yes
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/cnprint/Makefile | 13 |
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 |