diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2006-12-03 10:50:22 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2006-12-03 10:50:22 +0000 |
commit | a575c4db5107506d8018790b7a0c453e581e120b (patch) | |
tree | da9c95bdb8120d6d2d4728ad2249876c9946602a /chinese/cnprint | |
parent | c6ec52d2731be93e2cf22d6a253b036da03f0b78 (diff) | |
download | ports-a575c4db5107506d8018790b7a0c453e581e120b.tar.gz ports-a575c4db5107506d8018790b7a0c453e581e120b.zip |
Notes
Diffstat (limited to 'chinese/cnprint')
-rw-r--r-- | chinese/cnprint/Makefile | 30 | ||||
-rw-r--r-- | chinese/cnprint/files/patch-cnprint330b.c | 11 |
2 files changed, 15 insertions, 26 deletions
diff --git a/chinese/cnprint/Makefile b/chinese/cnprint/Makefile index 89e3c76d376a..f973589ac43f 100644 --- a/chinese/cnprint/Makefile +++ b/chinese/cnprint/Makefile @@ -16,10 +16,12 @@ DISTFILES= cnprint330b.c cnprint330b.readme ttfb330b.c cnprint330b.hlp \ mshei.ttf.gz mshei.htf cc48s.hbf cc48.sym.gz cc48s.1.gz \ cc48s.2.gz hbf.tar.gz ntu_kai48.hbf ntu_kai48.bin.gz -MAINTAINER= ports@FreeBSD.org -COMMENT= Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts +MAINTAINER= chinsan@FreeBSD.org +COMMENT= Print CJK text (or convert to PostScript) DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} +FILES= ${WRKSRC}/*.sym ${WRKSRC}/*.htf ${WRKSRC}/*.hbf \ + ${WRKSRC}/*.bin ${WRKSRC}/*.ttf do-extract: ${MKDIR} ${WRKSRC} @@ -31,23 +33,21 @@ do-extract: ${RM} -fr hbf ; \ ${GUNZIP_CMD} *.gz || ${TRUE} +post-patch: + @${REINPLACE_CMD} -e 's,/usr/local/src,${PREFIX}/share,' \ + ${WRKSRC}/cnprint330b.c + @${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 + do-build: cd ${WRKSRC} ; \ - ${CC} cnprint330b.c ttfb330b.c -o cnprint -DPREFIX=\"${PREFIX}\" ; \ - ${SED} \ - -e 's/\(DEFAULT_JIS_FONT\):.*$$/\1: kanji48.hbf/' \ - -e 's/\(DEFAULT_BIG5FONT\):.*$$/\1: ntu_kai48.hbf/' \ - -e 's/\(DEFAULT_ENCODING\):.*$$/\1: BIG5/' \ - >cnprint.cmd <cnprint33.cmd + ${CC} cnprint330b.c ttfb330b.c -o cnprint -DPREFIX=\"${PREFIX}\" do-install: - ${MKDIR} ${PREFIX}/share/cnprint - ${INSTALL_DATA} ${WRKSRC}/cnprint.cmd ${PREFIX}/share/cnprint - ${INSTALL_DATA} ${WRKSRC}/*.sym ${PREFIX}/share/cnprint - ${INSTALL_DATA} ${WRKSRC}/*.htf ${PREFIX}/share/cnprint - ${INSTALL_DATA} ${WRKSRC}/*.hbf ${PREFIX}/share/cnprint - ${INSTALL_DATA} ${WRKSRC}/*.bin ${PREFIX}/share/cnprint - ${INSTALL_DATA} ${WRKSRC}/*.ttf ${PREFIX}/share/cnprint + ${MKDIR} ${DATADIR} ${INSTALL_PROGRAM} ${WRKSRC}/cnprint ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}33.cmd ${DATADIR}/${PORTNAME}.cmd + ${INSTALL_DATA} ${FILES} ${DATADIR} .include <bsd.port.mk> diff --git a/chinese/cnprint/files/patch-cnprint330b.c b/chinese/cnprint/files/patch-cnprint330b.c deleted file mode 100644 index 2054eb736032..000000000000 --- a/chinese/cnprint/files/patch-cnprint330b.c +++ /dev/null @@ -1,11 +0,0 @@ ---- cnprint330b.c.orig Tue Jul 2 01:22:08 2002 -+++ cnprint330b.c -@@ -6216,7 +6216,7 @@ - if (s==NULL) { - defpath[0]='\0'; - #ifdef unix -- strcpy(defpath, "/usr/local/src/cnprint"); -+ strcpy(defpath, PREFIX "/share/cnprint"); - #endif - s=defpath; - } |