1996-12-06 06:27:34 -05:00
|
|
|
# New ports collection makefile for: Japanese Aladdin ghostscript + vector font library
|
|
|
|
# Version required: 4.0.3
|
|
|
|
# Date created: 23 Nov 1996
|
|
|
|
# Whom: Mita Yoshio <mita@jp.FreeBSD.org>
|
|
|
|
#
|
1997-09-14 17:36:25 -04:00
|
|
|
# $Id: Makefile,v 1.10 1997/07/14 06:25:59 asami Exp $
|
1996-12-06 06:27:34 -05:00
|
|
|
#
|
|
|
|
|
1996-12-30 16:12:52 -05:00
|
|
|
DISTNAME= ghostscript-4.03
|
1997-09-14 17:36:25 -04:00
|
|
|
PKGNAME= ja-vfghostscript-4.03
|
1996-12-30 16:12:52 -05:00
|
|
|
CATEGORIES= japanese print
|
|
|
|
MASTER_SITES= ftp://ftp.cs.wisc.edu/ghost/aladdin/ \
|
1996-12-06 06:27:34 -05:00
|
|
|
ftp://i1nws2.fukui-u.ac.jp/pub/TeX/dvipr/ \
|
1997-01-01 10:40:14 -05:00
|
|
|
ftp://ftp.mei.co.jp/free/gnu/util/ghostscript/drivers/ \
|
1997-04-29 23:18:09 -04:00
|
|
|
${MASTER_SITE_LOCAL} \
|
1997-03-03 01:37:58 -05:00
|
|
|
http://www.jp.FreeBSD.org/~mita/LOCAL_PORTS/
|
1996-12-30 16:12:52 -05:00
|
|
|
DISTFILES= ${GS_SOURCES} ${GS_DRIVERS} ${GS_FONTS_STD} ${GS_FONTS_OTHER}
|
1996-12-06 06:27:34 -05:00
|
|
|
|
|
|
|
MAINTAINER= mita@jp.FreeBSD.org
|
|
|
|
|
|
|
|
LIB_DEPENDS= VFlib\\.2\\.:${PORTSDIR}/japanese/vflib
|
|
|
|
|
1997-07-12 06:53:51 -04:00
|
|
|
EXTRACT_ONLY= ghostscript-4.03.tar.gz jpegsrc.v6a.tar.gz libpng-0.89c.tar.gz
|
1996-12-06 06:27:34 -05:00
|
|
|
WRKSRC= ${WRKDIR}/gs4.03
|
|
|
|
MAKEFILE= unix-gcc.mak
|
1996-12-30 16:12:52 -05:00
|
|
|
MAKE_FLAGS= prefix=${PREFIX} zlibc_=-lz CFLAGS="${CFLAGS}" -f
|
1997-04-30 12:03:04 -04:00
|
|
|
MAN1= gs.1 pdf2ps.1 ps2ascii.1 ps2epsi.1 ps2pdf.1
|
1996-12-30 16:12:52 -05:00
|
|
|
|
1996-12-06 06:27:34 -05:00
|
|
|
CFLAGS+= -DA4
|
1997-07-12 06:53:51 -04:00
|
|
|
DOC_DIR= ${PREFIX}/share/ghostscript/4.03vflib/doc
|
1996-12-06 06:27:34 -05:00
|
|
|
PRINTER= ${WRKSRC}/jp-printers
|
1996-12-30 16:12:52 -05:00
|
|
|
GS_SOURCES= ghostscript-4.03.tar.gz
|
|
|
|
GS_SOURCES+= ghostscript-4.03gnu.tar.gz
|
1997-07-12 06:53:51 -04:00
|
|
|
GS_SOURCES+= jpegsrc.v6a.tar.gz
|
|
|
|
GS_SOURCES+= libpng-0.89c.tar.gz
|
1996-12-30 16:12:52 -05:00
|
|
|
GS_DRIVERS= gs4.03-vflib.tar.gz
|
1997-04-30 12:03:04 -04:00
|
|
|
GS_DRIVERS+= gdevlips4-1.2.0.tar.gz
|
1996-12-30 16:12:52 -05:00
|
|
|
GS_DRIVERS+= gdevmjc-0.7.tar.gz
|
1997-03-03 01:37:58 -05:00
|
|
|
GS_DRIVERS+= gdevrpdl.tar.gz
|
1997-04-30 12:03:04 -04:00
|
|
|
GS_DRIVERS+= gdev10v.tar.gz
|
1997-01-02 20:38:33 -05:00
|
|
|
# Note: the following two are real files that have symlinks with
|
|
|
|
# later version numbers pointing to them. To avoid unnecessarily
|
|
|
|
# downloading distfiles, do not change these when upgrading the port
|
|
|
|
# unless the files really change.
|
1996-12-30 16:12:52 -05:00
|
|
|
GS_FONTS_STD= ghostscript-fonts-std-4.0.tar.gz
|
|
|
|
GS_FONTS_OTHER= ghostscript-fonts-other-3.0.tar.gz
|
1996-12-06 06:27:34 -05:00
|
|
|
|
|
|
|
pre-patch:
|
1997-07-12 06:53:51 -04:00
|
|
|
@(cd ${WRKSRC} ; tar xzf ${DISTDIR}/gs4.03-vflib.tar.gz )
|
1996-12-06 06:27:34 -05:00
|
|
|
@(cd ${WRKDIR} ; \
|
|
|
|
${PATCH} -p < ${WRKSRC}/gs4.03-vflib/gs4.03-vflib.diff >/dev/null 2>&1; \
|
|
|
|
)
|
|
|
|
|
|
|
|
post-patch:
|
1997-07-12 06:53:51 -04:00
|
|
|
@( ${MKDIR} ${PRINTER} ; \
|
1996-12-06 06:27:34 -05:00
|
|
|
cd ${PRINTER} ; \
|
|
|
|
${PATCH} -p0 < ${FILESDIR}/gdevep82.patch >/dev/null 2>&1 ; \
|
1997-04-30 12:03:04 -04:00
|
|
|
tar xzf ${DISTDIR}/gdevlips4-1.2.0.tar.gz ; \
|
1996-12-06 06:27:34 -05:00
|
|
|
tar xzf ${DISTDIR}/gdevmjc-0.7.tar.gz ; \
|
1997-03-03 01:37:58 -05:00
|
|
|
tar xzf ${DISTDIR}/gdevrpdl.tar.gz ; \
|
1997-04-30 12:03:04 -04:00
|
|
|
tar xzf ${DISTDIR}/gdev10v.tar.gz ; \
|
|
|
|
${CP} gdev10v/gdev10v.c gdev10v/gdev10v.mak ${WRKSRC}; \
|
1996-12-06 06:27:34 -05:00
|
|
|
${CP} gdevmjc-0.7/gdevmjc.c gdevmjc-0.7/mjc.dev ${WRKSRC}; \
|
1997-04-30 12:03:04 -04:00
|
|
|
${CP} gdevlips4-1.2.0/gdevlips4.c gdevlips4-1.2.0/gdevlips4.mak ${WRKSRC}; \
|
1996-12-06 06:27:34 -05:00
|
|
|
${CP} gdevep82/gdevep82.c gdevep82/gdevep82.mak ${WRKSRC}; \
|
1997-03-03 01:37:58 -05:00
|
|
|
${CP} gdevrpdl/gdevrpdl.c gdevrpdl/gdevrpdl.mak ${WRKSRC}; \
|
1996-12-06 06:27:34 -05:00
|
|
|
)
|
1997-04-30 12:03:04 -04:00
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdev10v.mak.patch
|
1996-12-06 06:27:34 -05:00
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/mjc.dev.patch
|
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevmjc.c.patch
|
1997-04-30 12:03:04 -04:00
|
|
|
@${CAT} ${WRKSRC}/gdev10v.mak >> ${WRKSRC}/unix-gcc.mak
|
1996-12-06 06:27:34 -05:00
|
|
|
@${CAT} ${WRKSRC}/gdevep82.mak >> ${WRKSRC}/unix-gcc.mak
|
|
|
|
@${CAT} ${WRKSRC}/gdevlips4.mak >> ${WRKSRC}/unix-gcc.mak
|
1997-03-03 01:37:58 -05:00
|
|
|
@${CAT} ${WRKSRC}/gdevrpdl.mak >> ${WRKSRC}/unix-gcc.mak
|
1996-12-06 06:27:34 -05:00
|
|
|
@${CAT} ${WRKSRC}/mjc.dev >> ${WRKSRC}/unix-gcc.mak
|
|
|
|
|
|
|
|
pre-install:
|
1997-07-14 02:25:59 -04:00
|
|
|
@${MKDIR} ${PREFIX}/share/ghostscript
|
1996-12-06 06:27:34 -05:00
|
|
|
@tar -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_STD}
|
|
|
|
@tar -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_OTHER}
|
|
|
|
|
|
|
|
post-install:
|
1996-12-30 16:12:52 -05:00
|
|
|
@strip ${PREFIX}/bin/gs
|
1996-12-06 06:27:34 -05:00
|
|
|
@( \
|
1997-04-30 12:03:04 -04:00
|
|
|
${CP} ${PRINTER}/gdev10v/gdev10v.jis ${DOC_DIR} ; \
|
1996-12-06 06:27:34 -05:00
|
|
|
${CP} ${PRINTER}/gdevep82/gdevep82.jis ${DOC_DIR} ; \
|
1997-04-30 12:03:04 -04:00
|
|
|
${CP} ${PRINTER}/gdevlips4-1.2.0/Readme ${DOC_DIR}/gdevlips4.euc ; \
|
1996-12-06 06:27:34 -05:00
|
|
|
${CP} ${PRINTER}/gdevmjc-0.7/README.jis ${DOC_DIR}/gdevmjc.jis ; \
|
|
|
|
${CP} ${PRINTER}/gdevmjc-0.7/MJ700V2C.FAQ ${DOC_DIR} ; \
|
|
|
|
)
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|