995edaf768
This port adds Chinese support to enscript, which means it can convert a BIG5/CNS plain text to a PS document, with all the fancy features provided by enscript. Unlike bg5ps, it can't manage GB yet, but it's easy to add. Another useful feature is with the ps2pdf and zh-ghostscript6, it is now possible to generate font-embedded Chinese pdf document from plain text on the fly, which also means platform-independent. Due to some problems in the CMap files provided by Adobe, Eten-B5-H and B5-H CMaps are unable to map correct ascii glyphs in TTFs. BIG5 users are suggested to use B5pc-H for the time being. Maybe it's time to re-organize ports/chinese/* font relationships.
30 lines
892 B
Makefile
30 lines
892 B
Makefile
# New ports collection makefile for: zh Big5/GB-izedenscript (a4)
|
|
# Date created: 27 Nov, 2000
|
|
# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PAPERSIZE= a4
|
|
MASTERDIR= ${.CURDIR}/../../print/enscript-letter
|
|
|
|
MAINTAINER= keith@FreeBSD.org
|
|
|
|
RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm \
|
|
${LOCALBASE}/share/ghostscript/CJK/CMap/ac13/cid2code.txt:${PORTSDIR}/chinese/ghostscript6
|
|
|
|
EXTRA_PATCHES= ${.CURDIR}/files/patch-*
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
PKGMESSAGE= ${.CURDIR}/pkg-message
|
|
|
|
post-patch:
|
|
@${ECHO} "share/enscript/README.BIG5" > ${WRKDIR}/pkg-plist
|
|
@${CAT} ${MASTERDIR}/pkg-plist >> ${WRKDIR}/pkg-plist
|
|
|
|
do-install:
|
|
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
|
|
@${INSTALL_DATA} ${.CURDIR}/files/README.BIG5 ${PREFIX}/share/enscript
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include "${MASTERDIR}/Makefile"
|