freebsd-ports/chinese/ghostscript6/Makefile
Ying-Chieh Liao 63245f131d o update cjkvttcidmap from 0.8 to 0.94
add Bridge Version by using mapping tables of ftp.unicode.org
    add Bridge Version by using CMaps for PDF core fonts(ToUnicode CMap) of
        partners.adobe.com
    add Bridge Version by using CMaps for PDF core fonts(ToUnicode CMap) and
        mapping tables of ftp.unicode.org
o update pkg-install
    from 6.50 to 6.52

PR:		32813
Submitted by:	Statue <statue@softwareliberty.org>
2001-12-14 07:17:52 +00:00

52 lines
1.9 KiB
Makefile

# New ports collection makefile for: zh-Big5/GB-ized ghostscript6
# Date created: Nov 27 2000
# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ghostscript
PORTVERSION= 6.52
CATEGORIES= chinese print
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/CID/CMap/ \
ftp://freebsd.sinica.edu.tw/pub/keith/GS6TTF/ \
ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/ \
http://www.aihara.co.jp/~taiji/tops/
DISTFILES= ac13.tar.Z ag14.tar.Z ai0.tar.Z aj14.tar.Z \
aj20.tar.Z ak12.tar.Z rksj-cmaps.tar.Z \
cjkvttcidmap-0.94.tar.gz gs6.50_ttf.ps-cjkv-20001215.patch.gz
EXTRACT_ONLY=
MAINTAINER= keith@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/${PORTVERSION}/lib/gs_ttf.ps:${PORTSDIR}/print/ghostscript-gnu \
ttfm.sh:${PORTSDIR}/chinese/ttfm
NO_BUILD= yes
PLIST_SUB= GS_VERSION=${PORTVERSION}
do-install:
@${MKDIR} ${PREFIX}/share/ghostscript/CJK/CIDFont
@${MKDIR} ${PREFIX}/share/ghostscript/CJK/CMap
@${MKDIR} ${PREFIX}/share/ghostscript/CJK/Font
@${MKDIR} ${PREFIX}/share/ghostscript/CJK/TrueType
.for f in ac13 ag14 ak12 ai0 aj14 aj20
@(cd ${PREFIX}/share/ghostscript/CJK/CMap; \
${TAR} -xzf ${DISTDIR}/$f.tar.Z; \
${LN} -sf $f/CMap/* . )
.endfor
@(cd ${PREFIX}/share/ghostscript/CJK/CMap; \
${TAR} -xzf ${DISTDIR}/rksj-cmaps.tar.Z; \
${LN} -sf rksj-cmaps/* . )
@(cd ${PREFIX}/share/ghostscript/CJK/TrueType; \
${TAR} -xzf ${DISTDIR}/cjkvttcidmap-0.94.tar.gz )
@(cd ${PREFIX}/share/ghostscript/${PORTVERSION}/lib; \
${GZCAT} ${DISTDIR}/gs6.50_ttf.ps-cjkv-20001215.patch.gz |${PATCH} )
@${CP} ${PREFIX}/share/ghostscript/${PORTVERSION}/lib/gs_res.ps \
${PREFIX}/share/ghostscript/${PORTVERSION}/lib/gs_res.ps.orig
@${SED} -e "s:(/Resource/):(${PREFIX}/share/ghostscript/CJK/):g" \
-e "s:(/Resource/Font/):(${PREFIX}/share/ghostscript/CJK/Font/):g" \
${PREFIX}/share/ghostscript/${PORTVERSION}/lib/gs_res.ps.orig > \
${PREFIX}/share/ghostscript/${PORTVERSION}/lib/gs_res.ps
.include <bsd.port.mk>