1998-03-16 07:33:51 +00:00
|
|
|
# New ports collection makefile for: Japanese Aladdin ghostscript + vector font library(FreeType)
|
1998-12-23 18:51:37 +00:00
|
|
|
# Version required: 5.50
|
1997-09-20 20:37:30 +00:00
|
|
|
# Date created: 26 Aug 1997
|
1996-12-06 11:27:34 +00:00
|
|
|
# Whom: Mita Yoshio <mita@jp.FreeBSD.org>
|
|
|
|
#
|
1999-03-15 12:37:44 +00:00
|
|
|
# $Id: Makefile,v 1.29 1999/02/13 00:34:47 asami Exp $
|
1996-12-06 11:27:34 +00:00
|
|
|
#
|
|
|
|
|
1998-12-23 18:51:37 +00:00
|
|
|
DISTNAME= ghostscript-5.50
|
|
|
|
PKGNAME= ja-vfghostscript-5.50
|
1996-12-30 21:12:52 +00:00
|
|
|
CATEGORIES= japanese print
|
1998-12-23 18:51:37 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cs.wisc.edu/ghost/aladdin/gs550/ \
|
1997-09-20 20:37:30 +00:00
|
|
|
ftp://ftp.cs.wisc.edu/ghost/aladdin/fonts/ \
|
|
|
|
ftp://ftp.uu.net/graphics/png/src/ \
|
|
|
|
ftp://ftp.uu.net/graphics/jpeg/ \
|
1996-12-06 11:27:34 +00:00
|
|
|
ftp://i1nws2.fukui-u.ac.jp/pub/TeX/dvipr/ \
|
1998-12-23 18:51:37 +00:00
|
|
|
http://www.bukka.p.chiba-u.ac.jp/~ohmori/gs/ \
|
1997-01-01 15:40:14 +00:00
|
|
|
ftp://ftp.mei.co.jp/free/gnu/util/ghostscript/drivers/ \
|
1997-04-30 03:18:09 +00:00
|
|
|
${MASTER_SITE_LOCAL} \
|
1997-09-20 20:37:30 +00:00
|
|
|
http://www.jp.FreeBSD.org/~mita/LOCAL_PORTS/ \
|
1998-05-24 03:45:26 +00:00
|
|
|
http://www.ldl.jaist.ac.jp/~akr/nonresearch/free-software/ghostscript/ \
|
1997-09-20 20:37:30 +00:00
|
|
|
http://www.jaist.ac.jp/~daisuke/Linux/gs/gs5/Original-sources/OLD/ \
|
1998-03-16 07:33:51 +00:00
|
|
|
http://www.rd.nacsis.ac.jp/~katayama/homepage/ghostscript/jpdf/ \
|
|
|
|
http://itohws03.ee.noda.sut.ac.jp/~matsuda/VFlib-FT/ \
|
1998-12-23 18:51:37 +00:00
|
|
|
http://www.ceres.dti.ne.jp/~owatanab/gdevnpdl/ \
|
1999-03-15 12:37:44 +00:00
|
|
|
ftp://ftp.humblesoft.com/pub/ \
|
|
|
|
http://www.necs.co.jp/~umi/
|
1996-12-30 21:12:52 +00:00
|
|
|
DISTFILES= ${GS_SOURCES} ${GS_DRIVERS} ${GS_FONTS_STD} ${GS_FONTS_OTHER}
|
1996-12-06 11:27:34 +00:00
|
|
|
|
|
|
|
MAINTAINER= mita@jp.FreeBSD.org
|
|
|
|
|
1998-12-23 01:30:41 +00:00
|
|
|
LIB_DEPENDS= VFlib2.24:${PORTSDIR}/japanese/vflib
|
1996-12-06 11:27:34 +00:00
|
|
|
|
1998-12-23 18:51:37 +00:00
|
|
|
EXTRACT_ONLY= ghostscript-5.50.tar.gz jpegsrc.v6b.tar.gz libpng-1.0.2.tar.gz
|
|
|
|
WRKSRC= ${WRKDIR}/gs5.50
|
1996-12-06 11:27:34 +00:00
|
|
|
MAKEFILE= unix-gcc.mak
|
1999-03-15 12:37:44 +00:00
|
|
|
#MAKE_FLAGS= prefix=${PREFIX} CFLAGS="${CFLAGS}" -f
|
|
|
|
ALL_TARGET=
|
1998-12-23 18:51:37 +00:00
|
|
|
MAN1= gs.1 pdf2ps.1 ps2ascii.1 ps2epsi.1 ps2pdf.1 pdf2dsc.1 ps2ps.1
|
1996-12-30 21:12:52 +00:00
|
|
|
|
1998-12-23 18:51:37 +00:00
|
|
|
USE_GMAKE= yes
|
1996-12-06 11:27:34 +00:00
|
|
|
CFLAGS+= -DA4
|
1998-12-23 18:51:37 +00:00
|
|
|
GSINST_DIR= ${PREFIX}/share/ghostscript/5.50vflib
|
1997-09-20 20:37:30 +00:00
|
|
|
DOC_DIR= ${GSINST_DIR}/doc
|
1996-12-06 11:27:34 +00:00
|
|
|
PRINTER= ${WRKSRC}/jp-printers
|
1998-12-23 18:51:37 +00:00
|
|
|
GS_SOURCES= ghostscript-5.50.tar.gz
|
|
|
|
GS_SOURCES+= jpegsrc.v6b.tar.gz
|
|
|
|
GS_SOURCES+= libpng-1.0.2.tar.gz
|
|
|
|
GS_DRIVERS= gs5.50-vflib-1.0.tar.gz
|
|
|
|
GS_DRIVERS+= gdevlips-2.0.0.tar.gz
|
1996-12-30 21:12:52 +00:00
|
|
|
GS_DRIVERS+= gdevmjc-0.7.tar.gz
|
1997-03-03 06:37:58 +00:00
|
|
|
GS_DRIVERS+= gdevrpdl.tar.gz
|
1997-04-30 16:03:04 +00:00
|
|
|
GS_DRIVERS+= gdev10v.tar.gz
|
1997-09-20 20:37:30 +00:00
|
|
|
GS_DRIVERS+= dmprt-2.01.tar.gz
|
1998-12-23 18:51:37 +00:00
|
|
|
GS_DRIVERS+= gdevnpdl-1.5.tar.gz
|
1999-03-15 12:37:44 +00:00
|
|
|
GS_DRIVERS+= epag-3.08.tar.gz
|
|
|
|
GS_DRIVERS+= gdevalps-0.1.tar.gz
|
1997-01-03 01:38:33 +00: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.
|
1999-02-13 00:34:48 +00:00
|
|
|
GS_FONTS_STD= ghostscript-fonts-std-5.50.tar.gz
|
1998-12-23 18:51:37 +00:00
|
|
|
GS_FONTS_OTHER= ghostscript-fonts-other-5.50.tar.gz
|
1996-12-06 11:27:34 +00:00
|
|
|
|
1998-03-16 07:33:51 +00:00
|
|
|
pre-fetch:
|
|
|
|
.if !defined(PDFENCRYPT)
|
|
|
|
@${ECHO_MSG} "NOTE: You can have encrypted PDF support by adding "
|
|
|
|
@${ECHO_MSG} "\"PDFENCRYPT=yes\" to argument of make."
|
|
|
|
.endif
|
|
|
|
|
1996-12-06 11:27:34 +00:00
|
|
|
pre-patch:
|
1998-12-23 18:51:37 +00:00
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
tar xzf ${DISTDIR}/gs5.50-vflib-1.0.tar.gz ;\
|
|
|
|
${MV} ../jpeg-6b jpeg ; \
|
|
|
|
${MV} ../libpng-1.0.2 libpng ; \
|
|
|
|
${PATCH} -s -p1 < ${WRKSRC}/gs5.50-vflib-1.0/gs5.50-vflib-1.0.diff \
|
1998-03-16 07:33:51 +00:00
|
|
|
>/dev/null 2>&1)
|
1996-12-06 11:27:34 +00:00
|
|
|
|
|
|
|
post-patch:
|
1997-07-12 10:53:51 +00:00
|
|
|
@( ${MKDIR} ${PRINTER} ; \
|
1996-12-06 11:27:34 +00:00
|
|
|
cd ${PRINTER} ; \
|
1998-12-23 18:51:37 +00:00
|
|
|
tar xzf ${DISTDIR}/gdevlips-2.0.0.tar.gz ; \
|
1996-12-06 11:27:34 +00:00
|
|
|
tar xzf ${DISTDIR}/gdevmjc-0.7.tar.gz ; \
|
1997-03-03 06:37:58 +00:00
|
|
|
tar xzf ${DISTDIR}/gdevrpdl.tar.gz ; \
|
1997-04-30 16:03:04 +00:00
|
|
|
tar xzf ${DISTDIR}/gdev10v.tar.gz ; \
|
1997-09-20 20:37:30 +00:00
|
|
|
${MKDIR} ${PRINTER}/gdevdmpr ; \
|
|
|
|
tar -C gdevdmpr -xzf ${DISTDIR}/dmprt-2.01.tar.gz ; \
|
1998-12-23 18:51:37 +00:00
|
|
|
tar xzf ${DISTDIR}/gdevnpdl-1.5.tar.gz ; \
|
1999-03-15 12:37:44 +00:00
|
|
|
tar xzf ${DISTDIR}/epag-3.08.tar.gz ; \
|
|
|
|
tar xzf ${DISTDIR}/gdevalps-0.1.tar.gz ; \
|
1997-04-30 16:03:04 +00:00
|
|
|
${CP} gdev10v/gdev10v.c gdev10v/gdev10v.mak ${WRKSRC}; \
|
1996-12-06 11:27:34 +00:00
|
|
|
${CP} gdevmjc-0.7/gdevmjc.c gdevmjc-0.7/mjc.dev ${WRKSRC}; \
|
1998-12-23 18:51:37 +00:00
|
|
|
${CP} gdevlips-2.0.0/gdevlips.c gdevlips-2.0.0/gdevlips.mak ${WRKSRC}; \
|
|
|
|
${CP} gdevlips-2.0.0/gdevl4r.c gdevlips-2.0.0/gdevlips.h ${WRKSRC}; \
|
1997-09-20 20:37:30 +00:00
|
|
|
${CP} gdevdmpr/gdevdmpr.c gdevdmpr/gdevdmpr.mak ${WRKSRC}; \
|
|
|
|
${CP} gdevdmpr/dviprlib.c gdevdmpr/dviprlib.h ${WRKSRC}; \
|
1999-03-15 12:37:44 +00:00
|
|
|
${CP} epag-3.08/gdevepag.c epag-3.08/gdevepag.mak ${WRKSRC}; \
|
1997-03-03 06:37:58 +00:00
|
|
|
${CP} gdevrpdl/gdevrpdl.c gdevrpdl/gdevrpdl.mak ${WRKSRC}; \
|
1997-09-20 20:37:30 +00:00
|
|
|
${CP} gdevnpdl/gdevnpdl.c gdevnpdl/gdevnpdl.mak ${WRKSRC}; \
|
1999-03-15 12:37:44 +00:00
|
|
|
${CP} gdevalps/gdevalps.c gdevalps/gdevalps.mk ${WRKSRC}; \
|
1996-12-06 11:27:34 +00:00
|
|
|
)
|
1997-04-30 16:03:04 +00:00
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdev10v.mak.patch
|
1996-12-06 11:27:34 +00:00
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/mjc.dev.patch
|
1998-12-23 18:51:37 +00:00
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevdmpr.mak.patch
|
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevepag.mak.patch
|
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevnpdl.mak.patch
|
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevrpdl.mak.patch
|
1999-03-15 12:37:44 +00:00
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevalps.mak.patch
|
1996-12-06 11:27:34 +00:00
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevmjc.c.patch
|
1997-09-20 20:37:30 +00:00
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevdmpr.patch
|
1998-12-23 18:51:37 +00:00
|
|
|
@${CAT} ${WRKSRC}/gdev10v.mak >> ${WRKSRC}/contrib.mak
|
|
|
|
@${CAT} ${WRKSRC}/gdevdmpr.mak >> ${WRKSRC}/contrib.mak
|
|
|
|
@${CAT} ${WRKSRC}/gdevepag.mak >> ${WRKSRC}/contrib.mak
|
|
|
|
@${CAT} ${WRKSRC}/gdevlips.mak >> ${WRKSRC}/contrib.mak
|
|
|
|
@${CAT} ${WRKSRC}/gdevrpdl.mak >> ${WRKSRC}/contrib.mak
|
|
|
|
@${CAT} ${WRKSRC}/gdevnpdl.mak >> ${WRKSRC}/contrib.mak
|
|
|
|
@${CAT} ${WRKSRC}/mjc.dev >> ${WRKSRC}/contrib.mak
|
1999-03-15 12:37:44 +00:00
|
|
|
@${CAT} ${WRKSRC}/gdevalps.mk >> ${WRKSRC}/contrib.mak
|
1996-12-06 11:27:34 +00:00
|
|
|
|
1998-05-10 23:50:43 +00:00
|
|
|
post-build:
|
1999-03-15 12:37:44 +00:00
|
|
|
@(cd ${PRINTER}/epag-3.08 ; ${MAKE})
|
1998-05-10 23:50:43 +00:00
|
|
|
|
1996-12-06 11:27:34 +00:00
|
|
|
pre-install:
|
1998-01-23 00:44:47 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/ghostscript
|
1996-12-06 11:27:34 +00:00
|
|
|
@tar -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_STD}
|
1997-09-20 20:37:30 +00:00
|
|
|
@tar -C ${PREFIX}/share/ghostscript/fonts -xzf ${DISTDIR}/${GS_FONTS_OTHER}
|
1996-12-06 11:27:34 +00:00
|
|
|
|
|
|
|
post-install:
|
1999-03-15 12:37:44 +00:00
|
|
|
${INSTALL_PROGRAM} ${PRINTER}/epag-3.08/ert ${PREFIX}/bin
|
1996-12-30 21:12:52 +00:00
|
|
|
@strip ${PREFIX}/bin/gs
|
1996-12-06 11:27:34 +00:00
|
|
|
@( \
|
1998-12-23 18:51:37 +00:00
|
|
|
${CP} ${WRKSRC}/gs5.50-vflib-1.0/README ${DOC_DIR}/README.gs5.10-vflib ; \
|
|
|
|
${CP} ${WRKSRC}/gs5.50-vflib-1.0/OLD-DOC/gs261d13-doc/* ${DOC_DIR} ; \
|
|
|
|
${CP} ${WRKSRC}/gs5.50-vflib-1.0/OLD-DOC/gs261j11-doc/* ${DOC_DIR} ; \
|
1997-04-30 16:03:04 +00:00
|
|
|
${CP} ${PRINTER}/gdev10v/gdev10v.jis ${DOC_DIR} ; \
|
1998-12-23 18:51:37 +00:00
|
|
|
${CP} ${PRINTER}/gdevlips-2.0.0/Lips.htm ${DOC_DIR} ; \
|
|
|
|
${CP} ${PRINTER}/gdevlips-2.0.0/gs_statd.dif ${DOC_DIR} ; \
|
|
|
|
${CP} ${PRINTER}/gdevlips-2.0.0/gslipsif.sh ${DOC_DIR} ; \
|
1996-12-06 11:27:34 +00:00
|
|
|
${CP} ${PRINTER}/gdevmjc-0.7/README.jis ${DOC_DIR}/gdevmjc.jis ; \
|
|
|
|
${CP} ${PRINTER}/gdevmjc-0.7/MJ700V2C.FAQ ${DOC_DIR} ; \
|
1997-09-20 20:37:30 +00:00
|
|
|
${CP} ${PRINTER}/gdevdmpr/gdevdmpr.sj ${DOC_DIR} ; \
|
|
|
|
${CP} ${PRINTER}/gdevnpdl/gdevnpdl.jis ${DOC_DIR} ; \
|
|
|
|
${CP} ${PRINTER}/gdevdmpr/dmp_init.ps ${GSINST_DIR} ; \
|
|
|
|
${CP} ${PRINTER}/gdevdmpr/dmp_site.ps ${GSINST_DIR} ; \
|
|
|
|
${CP} ${PRINTER}/gdevdmpr/escp_24.src ${GSINST_DIR} ; \
|
|
|
|
${CP} ${PRINTER}/gdevdmpr/testpage.ps ${GSINST_DIR} ; \
|
1999-03-15 12:37:44 +00:00
|
|
|
${MKDIR} ${DOC_DIR}/epag-3.08 ; \
|
|
|
|
${CP} ${PRINTER}/epag-3.08/FILES ${DOC_DIR}/epag-3.08 ; \
|
|
|
|
${CP} ${PRINTER}/epag-3.08/*.txt ${DOC_DIR}/epag-3.08 ; \
|
|
|
|
${CP} ${PRINTER}/epag-3.08/adjust.ps ${DOC_DIR}/epag-3.08 ; \
|
|
|
|
${CP} ${PRINTER}/epag-3.08/gsepagif.sh ${DOC_DIR}/epag-3.08 ; \
|
|
|
|
${CP} ${PRINTER}/epag-3.08/psprint ${DOC_DIR}/epag-3.08 ; \
|
1996-12-06 11:27:34 +00:00
|
|
|
)
|
1998-03-16 07:33:51 +00:00
|
|
|
.if defined(PDFENCRYPT)
|
|
|
|
@${CP} -f ${DISTDIR}/pdf_sec.ps ${GSINST_DIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# encrypted PDF support. can't be packaged due to export control issues.
|
|
|
|
.if defined(PDFENCRYPT)
|
|
|
|
MASTER_SITES+= http://www.ozemail.com.au/~geoffk/pdfencrypt/
|
|
|
|
DISTFILES+= pdf_sec.ps
|
|
|
|
RESTRICTED= "Crypto; export controlled, RC4 in PostScript code included"
|
|
|
|
.endif
|
1996-12-06 11:27:34 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|