1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

- Add an option to make default paper size A4

PR:		ports/134638
Submitted by:	Chun-Chung Yang <chunchung AT cs.nctu.edu.tw>
This commit is contained in:
Li-Wen Hsu 2009-05-18 11:02:47 +00:00
parent db29a7b53b
commit 6a058c282d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234132

View File

@ -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>