pkgsrc/print/cnprint/Makefile
hubertf ef7f77176b Add cnprint-3.30b: Print & convert CJK style text to PostScript
CNPRINT is a utility to print Chinese/Japanese/Korean (CJK) text
(or convert to PostScript) under DOS, VMS and UNIX systems. It
works just as a print command on your system. Currently GB, Hz,
zW, BIG5, CNS, JIS, EUC, Shift-JIS, KSC, UTF8, UTF7 and UTF16
formats are supported.

CNPRINT also has many other features, among them:

    * print all CJK codes using a single Unicode CJK font
    * print GB using Big5 fonts or print Big5 using GB fonts
    * multiple columns, vertical printing, change font or character
      size within document
    * phrase-based GB<->BIG5 conversions
    * built-in HZ<->GB conversion
    * repair/re-format functions for CJK text
    * envelope and address label printing
    * decode MIME quoted printable (=20=3C=5E like text)
    * true type fonts (TTF) support

With its full Unicode support, it should be able to print other
language (e.g. Thai, Vietnames, Arabic as well). For more information,
please read the help file.


Package created after reading Hal Snyder's excellent article on DaemonNews:
http://ezine.daemonnews.org/200202/japanese-netbsd.html
2002-07-02 00:24:35 +00:00

57 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2002/07/02 00:24:35 hubertf Exp $
DISTNAME= #
PKGNAME= cnprint-3.30b
CATEGORIES= print
MASTER_SITES= http://nba184.med.uth.tmc.edu:3006/~cai/software/cnp/ \
http://nba184.med.uth.tmc.edu:3006/~cai/software/cnp/metrics/ \
http://nba184.med.uth.tmc.edu:3006/~cai/software/cnp/fonts/ \
ftp://ftp.csc.cuhk.edu.hk/pub/chinese/ifcss/software/fonts/misc/
EXTRACT_SUFX= #empty
DISTFILES+= cnprint330b.c \
cnprint330b.readme \
ttfb330b.c \
cnprint330b.hlp \
cnprint33.cmd \
helvet.dat \
mssong.ttf.gz mssong.htf \
mshei.ttf.gz mshei.htf \
cc48s.hbf cc48.sym.gz \
cc48s.1.gz \
cc48s.2.gz \
hbf.tar.gz
MAINTAINER= hubertf@netbsd.org
HOMEPAGE= http://www.neurophys.wisc.edu/~cai/software/index.html
COMMENT= Print & convert CJK style text to PostScript
DIST_SUBDIR= ${PKGNAME}
do-extract:
${MKDIR} ${WRKSRC}
.for i in ${DISTFILES}
${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}
.endfor
cd ${WRKSRC} ; \
${GTAR} plzvxf hbf.tar.gz ; ${MV} hbf/* . ; \
${RM} -fr hbf ; \
${GUNZIP_CMD} *.gz || ${TRUE}
do-build:
cd ${WRKSRC} ; \
${CC} cnprint330b.c ttfb330b.c -o cnprint -DPREFIX=\"${PREFIX}\" ; \
${SED} \
-e 's/\(DEFAULT_JIS_FONT\):.*$$/\1: kanji48.hbf/' \
>cnprint.cmd <cnprint33.cmd
do-install:
${INSTALL_DATA_DIR} ${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
${INSTALL_PROGRAM} ${WRKSRC}/cnprint ${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"