diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2009-05-18 19:02:47 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2009-05-18 19:02:47 +0800 |
commit | a4d10b14a6a238aaf84c78c6d2791a4a678bd3b0 (patch) | |
tree | 636a328576a3f354930c7806e666fd5941cf530f | |
parent | 06275dfdc0f4515456bf26bb8984750f72a4cbce (diff) | |
download | freebsd-ports-gnome-a4d10b14a6a238aaf84c78c6d2791a4a678bd3b0.tar.gz freebsd-ports-gnome-a4d10b14a6a238aaf84c78c6d2791a4a678bd3b0.tar.zst freebsd-ports-gnome-a4d10b14a6a238aaf84c78c6d2791a4a678bd3b0.zip |
- Add an option to make default paper size A4
PR: ports/134638
Submitted by: Chun-Chung Yang <chunchung AT cs.nctu.edu.tw>
-rw-r--r-- | chinese/cnprint/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/chinese/cnprint/Makefile b/chinese/cnprint/Makefile index 11c7887c576c..095f11e0515c 100644 --- a/chinese/cnprint/Makefile +++ b/chinese/cnprint/Makefile @@ -7,6 +7,7 @@ PORTNAME= cnprint PORTVERSION= 3.30b +PORTREVISION= 1 CATEGORIES= chinese print MASTER_SITES= http://ftp.wustl.edu/pub/FreeBSD/distfiles/${PORTNAME}-${PORTVERSION}/ \ http://ftp.yz.yamagata-u.ac.jp/pub/FreeBSD/distfiles/${PORTNAME}-${PORTVERSION}/ \ @@ -23,6 +24,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 + +.include <bsd.port.pre.mk> + do-extract: ${MKDIR} ${WRKSRC} .for i in ${DISTFILES} @@ -39,6 +44,10 @@ 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) + @${REINPLACE_CMD} -e 's/\(DEFAULT_PAPERSIZE\):.*$$/\1: 8.27 11.69/' \ + ${WRKSRC}/cnprint33.cmd +.endif do-build: cd ${WRKSRC} ; \ @@ -50,4 +59,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}33.cmd ${DATADIR}/${PORTNAME}.cmd ${INSTALL_DATA} ${FILES} ${DATADIR} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |