aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/cnprint/Makefile
blob: b3188a2074a23dc190b502d907c4e59967fb6cab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# New ports collection makefile for:    cnprint
# Date created:     29 Jan 2003
# Whom:         Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
#
# $FreeBSD$
#

PORTNAME=       cnprint
PORTVERSION=        3.30b
CATEGORIES=     chinese print
MASTER_SITES=       ftp://freebsd.sinica.edu.tw/pub/statue/cnprint/ \
            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/ \
            http://www.ibiblio.org/pub/packages/ccic/software/fonts/big5/hbf/
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 \
            ntu_kai48.hbf ntu_kai48.bin.gz

MAINTAINER=     ports@FreeBSD.org
COMMENT=        Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts

DIST_SUBDIR=        ${PORTNAME}-${PORTVERSION}

do-extract:
    ${MKDIR} ${WRKSRC}
.for i in ${DISTFILES}
    ${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}
.endfor
    cd ${WRKSRC} ; \
    ${TAR} pzvxf 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/' \
        -e 's/\(DEFAULT_BIG5FONT\):.*$$/\1: ntu_kai48.hbf/' \
        -e 's/\(DEFAULT_ENCODING\):.*$$/\1: BIG5/' \
        >cnprint.cmd <cnprint33.cmd

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
    ${INSTALL_PROGRAM} ${WRKSRC}/cnprint ${PREFIX}/bin

.include <bsd.port.mk>
pan title='2011-09-22 15:34:49 +0800'>2011-09-222-3/+3 * Change maintainer address to my FreeBSD addresscs2011-09-152-2/+2 * - Fix MASTER_SITES and WWW: linewen2011-08-262-33/+19 * - Add missing BUILD_DEPENDSswills2011-08-181-1/+2 * Remove USE_GNOME=gnometarget from ports. It has been a empty keyword sincekwm2011-08-122-2/+0 * - Update to 1.5.1wen2011-08-113-12/+41 * - Update to 0.40culot2011-08-102-3/+6 * Remove WWW entries from unmaintained ports that return 404 or where the domainehaupt2011-08-031-2/+0 * Deprecate port with no more public distfilesbapt2011-08-021-0/+3 * Bye bye abandonwares (part 2)bapt2011-08-0130-726/+0 * - Update to 0.39sunpoet2011-08-013-3/+34 * Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,linimon2011-07-212-2/+2 * - Update to 0.38sunpoet2011-07-163-50/+64 * - Update to 1.20sunpoet2011-07-132-73/+71 * - kick MD5miwi2011-07-021-1/+0 * - Use USERS and GROUPScrees2011-06-282-47/+3 * - Fix *_DEPENDS after the repocopy of databases/py-sqlalchemynivit2011-06-251-1/+2 * Switch dependency on povray to povray-meta port.makc2011-06-211-2/+2 * Another bunch of deprecation: no more public distfiles and/or abandonwarebapt2011-06-171-0/+3 * Another bunch of deprecation: no more public distfiles and/or abandonwarebapt2011-06-163-0/+9 * - Update to 0.5wen2011-06-102-3/+3 * Update to 1.1.04jlaffaye2011-06-105-126/+35 * deprecate and set expiration date:bapt2011-06-091-0/+3 * - Update to 0.4.3wen2011-06-022-3/+3 * - update to 2.24bapt2011-06-023-3/+10 * - Update to 1.57wen2011-05-243-111/+18 * Update to 1.6. Web site has been moved.maho2011-05-114-10/+11 * Update math/gsl to 1.15, and adjust PORTREVISIONbf2011-05-101-1/+2 * - Update to 0.4wen2011-05-092-3/+3 * update to 1.4.1maho2011-05-093-8/+41 * - Update to 2.11swills2011-05-092-3/+3 * Bump PORTREVISION after open-mofit updatemakc2011-05-024-2/+4 * Fix build with open-motif-2.3.3makc2011-05-023-7/+72 * - Updated WWW: to a working linkglarkin2011-04-231-14/+17 * Bio::GFF3 are low-level, fast functions for parsing GFF version 3 files.wen2011-04-22