2000-11-27 07:50:43 -05:00
|
|
|
# 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
|
2001-01-31 03:03:07 -05:00
|
|
|
PORTVERSION= 6.50
|
2001-04-19 23:57:05 -04:00
|
|
|
PORTREVISION= 1
|
2000-11-27 07:50:43 -05:00
|
|
|
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/
|
2001-04-19 23:57:05 -04:00
|
|
|
DISTFILES= ac13.tar.Z ag14.tar.Z ai0.tar.Z aj14.tar.Z \
|
2000-11-27 07:50:43 -05:00
|
|
|
aj20.tar.Z ak12.tar.Z rksj-cmaps.tar.Z \
|
2001-01-31 03:03:07 -05:00
|
|
|
cjkvttcidmap-0.8.tar.gz gs6.50_ttf.ps-cjkv-20001215.patch.gz
|
2000-11-27 07:50:43 -05:00
|
|
|
EXTRACT_ONLY=
|
|
|
|
|
|
|
|
MAINTAINER= keith@FreeBSD.org
|
|
|
|
|
2001-01-31 03:03:07 -05:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/6.50/lib/gs_ttf.ps:${PORTSDIR}/print/ghostscript6 \
|
2000-11-27 07:50:43 -05:00
|
|
|
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
|
2001-04-19 23:57:05 -04:00
|
|
|
.for f in ac13 ag14 ak12 ai0 aj14 aj20
|
2000-11-27 07:50:43 -05:00
|
|
|
@(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.8.tar.gz )
|
2001-01-31 03:03:07 -05:00
|
|
|
@(cd ${PREFIX}/share/ghostscript/6.50/lib; \
|
|
|
|
${GZCAT} ${DISTDIR}/gs6.50_ttf.ps-cjkv-20001215.patch.gz |${PATCH} )
|
|
|
|
@${CP} ${PREFIX}/share/ghostscript/6.50/lib/gs_res.ps \
|
|
|
|
${PREFIX}/share/ghostscript/6.50/lib/gs_res.ps.orig
|
2000-11-27 07:50:43 -05:00
|
|
|
@${SED} -e "s:(/Resource/):(${PREFIX}/share/ghostscript/CJK/):g" \
|
|
|
|
-e "s:(/Resource/Font/):(${PREFIX}/share/ghostscript/CJK/Font/):g" \
|
2001-01-31 03:03:07 -05:00
|
|
|
${PREFIX}/share/ghostscript/6.50/lib/gs_res.ps.orig > \
|
|
|
|
${PREFIX}/share/ghostscript/6.50/lib/gs_res.ps
|
2000-11-27 07:50:43 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|