head	1.15;
access;
symbols
	RELEASE_8_3_0:1.13
	RELEASE_9_0_0:1.13
	RELEASE_7_4_0:1.13
	RELEASE_8_2_0:1.13
	RELEASE_6_EOL:1.13
	RELEASE_8_1_0:1.13
	RELEASE_7_3_0:1.13
	RELEASE_8_0_0:1.13
	RELEASE_7_2_0:1.10
	RELEASE_7_1_0:1.10
	RELEASE_6_4_0:1.10
	RELEASE_5_EOL:1.10
	RELEASE_7_0_0:1.10
	RELEASE_6_3_0:1.10
	PRE_XORG_7:1.10
	RELEASE_4_EOL:1.10
	RELEASE_6_2_0:1.8
	RELEASE_6_1_0:1.7
	RELEASE_5_5_0:1.7
	RELEASE_6_0_0:1.6
	RELEASE_5_4_0:1.5
	RELEASE_4_11_0:1.4
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.1;
locks; strict;
comment	@# @;


1.15
date	2012.11.22.06.56.08;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.11.17.05.54.56;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2009.05.18.11.28.52;	author lwhsu;	state Exp;
branches;
next	1.12;

1.12
date	2009.05.18.11.02.47;	author lwhsu;	state Exp;
branches;
next	1.11;

1.11
date	2009.05.16.15.07.22;	author chinsan;	state Exp;
branches;
next	1.10;

1.10
date	2006.12.03.10.50.22;	author rafan;	state Exp;
branches;
next	1.9;

1.9
date	2006.12.03.10.46.52;	author rafan;	state Exp;
branches;
next	1.8;

1.8
date	2006.07.24.13.03.09;	author jmelo;	state Exp;
branches;
next	1.7;

1.7
date	2005.11.28.04.53.30;	author linimon;	state Exp;
branches;
next	1.6;

1.6
date	2005.07.25.21.58.05;	author linimon;	state Exp;
branches;
next	1.5;

1.5
date	2005.01.08.15.50.01;	author sem;	state Exp;
branches;
next	1.4;

1.4
date	2004.06.04.12.32.05;	author kris;	state Exp;
branches;
next	1.3;

1.3
date	2003.11.21.03.09.40;	author linimon;	state Exp;
branches;
next	1.2;

1.2
date	2003.07.15.10.24.53;	author leeym;	state Exp;
branches;
next	1.1;

1.1
date	2003.04.27.00.33.08;	author vanilla;	state Exp;
branches;
next	;


desc
@@


1.15
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 307639
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r307639 | lwhsu | 2012-11-22 06:52:09 +0000 (Thu, 22 Nov 2012) | 8 lines
## SVN ##
## SVN ## - Switch to OPTIONSNG
## SVN ## - Trim Makefile header
## SVN ##
## SVN ## PR:		ports/173579
## SVN ## Submitted by:	edward@@rdtan.net
## SVN ##
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Shen Chuan-Hsing <statue@@freebsd.sinica.edu.tw>
# $FreeBSD: head/chinese/cnprint/Makefile 307639 2012-11-22 06:52:09Z lwhsu $

PORTNAME=	cnprint
PORTVERSION=	3.30b
PORTREVISION=	1
CATEGORIES=	chinese print
MASTER_SITES=	http://distfiles.cs.nctu.edu.tw/${PORTNAME}-${PORTVERSION}/ \
		http://ftp.yz.yamagata-u.ac.jp/pub/FreeBSD/distfiles/${PORTNAME}-${PORTVERSION}/
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=	lwhsu@@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

OPTIONS_DEFINE=	A4SIZE
OPTIONS_DEFAULT=	A4SIZE

A4SIZE_DESC=	Set A4 (not Letter) as a default paper size

.include <bsd.port.pre.mk>

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}

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
.if ${PORT_OPTIONS:MA4SIZE}
	@@${REINPLACE_CMD} -e 's/\(DEFAULT_PAPERSIZE\):.*$$/\1: 8.27 11.69/' \
		${WRKSRC}/cnprint33.cmd
.endif

do-build:
	cd ${WRKSRC} ; \
	${CC} cnprint330b.c ttfb330b.c -o cnprint -DPREFIX=\"${PREFIX}\"

do-install:
	${MKDIR} ${DATADIR}
	${INSTALL_PROGRAM} ${WRKSRC}/cnprint ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}33.cmd  ${DATADIR}/${PORTNAME}.cmd
	${INSTALL_DATA} ${FILES} ${DATADIR}

.include <bsd.port.post.mk>
@


1.14
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	cnprint
# Date created:		29 Jan 2003
# Whom:			Shen Chuan-Hsing <statue@@freebsd.sinica.edu.tw>
#
# $FreeBSD: head/chinese/cnprint/Makefile 300895 2012-07-14 12:56:14Z beat $
#
d22 4
a25 1
OPTIONS=	A4SIZE  "Set A4 (not Letter) as a default paper size" on
d45 1
a45 1
.if defined(WITH_A4SIZE)
@


1.13
log
@- Update MASTER_SITES
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.12
log
@- Add an option to make default paper size A4

PR:		ports/134638
Submitted by:	Chun-Chung Yang <chunchung AT cs.nctu.edu.tw>
@
text
@d12 2
a13 3
MASTER_SITES=	http://ftp.wustl.edu/pub/FreeBSD/distfiles/${PORTNAME}-${PORTVERSION}/ \
		http://ftp.yz.yamagata-u.ac.jp/pub/FreeBSD/distfiles/${PORTNAME}-${PORTVERSION}/ \
		http://ftp.osuosl.org/pub/FreeBSD/distfiles/${PORTNAME}-${PORTVERSION}/
@


1.11
log
@- Pass maintainership to lwhsu@@
@
text
@d10 1
d27 4
d47 4
d62 1
a62 1
.include <bsd.port.mk>
@


1.10
log
@- Remove bad site
- Some cosmetic changes
- Pass maintainership to submitter

PR:		ports/106202
Submitted by:	chinsan
@
text
@d19 1
a19 1
MAINTAINER=	chinsan@@FreeBSD.org
@


1.9
log
@- portlint(1)

PR:		ports/106202 (partly)
Submitted by:	chinsan
@
text
@d19 2
a20 2
MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts
d23 2
d36 7
d45 1
a45 6
	${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
d48 1
a48 7
	${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
d50 2
@


1.8
log
@- Remove bad sites:
	* ftp://freebsd.sinica.edu.tw/pub/statue/cnprint/
	* ftp://ftp.csc.cuhk.edu.hk/pub/chinese/ifcss/software/fonts/misc/
	* http://www.ibiblio.org/pub/packages/ccic/software/fonts/big5/hbf/

- Add new mastersites.
@
text
@d8 10
a17 19
PORTNAME=		cnprint
PORTVERSION=		3.30b
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}/ \
			http://ftp.osuosl.org/pub/FreeBSD/distfiles/${PORTNAME}-${PORTVERSION}/
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
d19 2
a20 2
MAINTAINER=		ports@@FreeBSD.org
COMMENT=		Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts
d22 1
a22 1
DIST_SUBDIR=		${PORTNAME}-${PORTVERSION}
@


1.7
log
@Remove dead mastersite per distfile survey.  More work is needed here.
@
text
@d11 3
a13 3
MASTER_SITES=		ftp://freebsd.sinica.edu.tw/pub/statue/cnprint/ \
			ftp://ftp.csc.cuhk.edu.hk/pub/chinese/ifcss/software/fonts/misc/ \
			http://www.ibiblio.org/pub/packages/ccic/software/fonts/big5/hbf/
@


1.6
log
@Reset bouncing maintainer address.  These ports are now available for
adoption.

Note that I have left the maintainer's own ftp site as a MASTERSITE
because it still appears to be active (for now, anyways).

Hat:	portmgr
@
text
@a11 3
			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/ \
@


1.5
log
@- Pass maintainership to submitter

PR:		ports/75730
Submitted by:	statue(at)freebsd.netlab.cse.yzu.edu.tw
@
text
@d31 1
a31 1
MAINTAINER=		statue@@freebsd.netlab.cse.yzu.edu.tw
@


1.4
log
@Remove gtar-specific NOP from tar command invocation.

Submitted by:	kientzle
@
text
@d31 1
a31 1
MAINTAINER=		ports@@FreeBSD.org
@


1.3
log
@statue@@freebsd.sinica.edu.tw has asked for all the maintained
ports to be reset to ports@@FreeBSD.org.  We're sorry to see you
go and want to thank you for your help in the past.

PR:		ports/59515
Submitted by:	statue@@freebsd.sinica.edu.tw
@
text
@d42 1
a42 1
	${TAR} plzvxf hbf.tar.gz ; ${MV} hbf/* . ; \
@


1.2
log
@add ntu_kai48.hbf for BIG5 printing.

PR:		54496
Submitted by:	Statue <statue@@freebsd.sinica.edu.tw>
@
text
@d31 1
a31 1
MAINTAINER=		statue@@freebsd.sinica.edu.tw
@


1.1
log
@Add cnprint 3.30b,
convert Chinese-Big5/GB encoded files to
Postscript, using TTF fonts.

PR:		50815
Submitted by:	Shen Chuan-Hsing <statue@@freebsd.sinica.edu.tw>
@
text
@d15 2
a16 1
			ftp://ftp.csc.cuhk.edu.hk/pub/chinese/ifcss/software/fonts/misc/
d28 2
a29 1
			hbf.tar.gz
d51 2
@

