906080c6ce
sevral of these is noticed by KUNISHIMA Takeo <kunishi@c.oka-pu.ac.jp>, Inagaki Kentaro <inagaki@tg.rim.or.jp> and Toshihiko Kodama <kodama@ayame.mfd.cs.fujitsu.co.jp>
155 lines
6.3 KiB
Makefile
155 lines
6.3 KiB
Makefile
# New ports collection makefile for: Japanese Aladdin ghostscript + vector font library(FreeType)
|
|
# Version required: 5.50
|
|
# Date created: 26 Aug 1997
|
|
# Whom: Mita Yoshio <mita@jp.FreeBSD.org>
|
|
#
|
|
# $Id: Makefile,v 1.32 1999/06/14 01:02:14 taoka Exp $
|
|
#
|
|
|
|
DISTNAME= ghostscript-5.50
|
|
PKGNAME= ja-vfghostscript-5.50
|
|
CATEGORIES= japanese print
|
|
MASTER_SITES= ftp://ftp.cs.wisc.edu/ghost/aladdin/gs550/ \
|
|
ftp://ftp.cs.wisc.edu/ghost/aladdin/fonts/ \
|
|
ftp://ftp.uu.net/graphics/png/src/ \
|
|
ftp://ftp.uu.net/graphics/jpeg/ \
|
|
http://www.bukka.p.chiba-u.ac.jp/~ohmori/gs/ \
|
|
ftp://ftp.mei.co.jp/free/gnu/util/ghostscript/drivers/ \
|
|
${MASTER_SITE_LOCAL} \
|
|
${MASTER_SITE_PORTS_JP} \
|
|
http://www.ldl.jaist.ac.jp/~akr/nonresearch/free-software/ghostscript/ \
|
|
http://www.jaist.ac.jp/~daisuke/Linux/gs/gs5/Original-sources/OLD/ \
|
|
http://www.rd.nacsis.ac.jp/~katayama/homepage/ghostscript/jpdf/ \
|
|
http://itohws03.ee.noda.sut.ac.jp/~matsuda/VFlib-FT/ \
|
|
ftp://ftp.humblesoft.com/pub/ \
|
|
http://www.necs.co.jp/~umi/ \
|
|
http://plaza26.mbn.or.jp/~higamasa/gdevmd2k/ \
|
|
http://www.aial.hiroshima-u.ac.jp/~sakai/Linux/gs5.50/
|
|
DISTFILES= ${GS_SOURCES} ${GS_DRIVERS} ${GS_FONTS_STD} ${GS_FONTS_OTHER}
|
|
|
|
MAINTAINER= mita@jp.FreeBSD.org
|
|
|
|
LIB_DEPENDS= VFlib2.24:${PORTSDIR}/japanese/vflib
|
|
|
|
EXTRACT_ONLY= ghostscript-5.50.tar.gz jpegsrc.v6b.tar.gz libpng-1.0.2.tar.gz
|
|
WRKSRC= ${WRKDIR}/gs5.50
|
|
MAKEFILE= unix-gcc.mak
|
|
#MAKE_FLAGS= prefix=${PREFIX} CFLAGS="${CFLAGS}" -f
|
|
ALL_TARGET=
|
|
MAN1= gs.1 pdf2ps.1 ps2ascii.1 ps2epsi.1 ps2pdf.1 pdf2dsc.1 ps2ps.1
|
|
|
|
USE_GMAKE= yes
|
|
CFLAGS+= -DA4
|
|
GSINST_DIR= ${PREFIX}/share/ghostscript/5.50vflib
|
|
DOC_DIR= ${GSINST_DIR}/doc
|
|
PRINTER= ${WRKSRC}/jp-printers
|
|
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.3.2.tar.gz
|
|
GS_DRIVERS+= gdevmjc-0.8.tar.gz
|
|
GS_DRIVERS+= gdev10v.tar.gz
|
|
GS_DRIVERS+= dmprt-2.01.tar.gz
|
|
GS_DRIVERS+= gdevalps-0.2.tar.gz
|
|
GS_DRIVERS+= gdevmd2k-0.2a.tar.gz
|
|
GS_DRIVERS+= gdevrpdl-1.2.tar.gz
|
|
# 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.
|
|
GS_FONTS_STD= ghostscript-fonts-std-5.50.tar.gz
|
|
GS_FONTS_OTHER= ghostscript-fonts-other-5.50.tar.gz
|
|
|
|
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
|
|
|
|
pre-patch:
|
|
@(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 \
|
|
>/dev/null 2>&1)
|
|
|
|
post-patch:
|
|
@( ${MKDIR} ${PRINTER} ; \
|
|
cd ${PRINTER} ; \
|
|
tar xzf ${DISTDIR}/gdevlips-2.3.2.tar.gz ; \
|
|
tar xzf ${DISTDIR}/gdevmjc-0.8.tar.gz ; \
|
|
tar xzf ${DISTDIR}/gdev10v.tar.gz ; \
|
|
${MKDIR} ${PRINTER}/gdevdmpr ; \
|
|
tar -C gdevdmpr -xzf ${DISTDIR}/dmprt-2.01.tar.gz ; \
|
|
tar xzf ${DISTDIR}/gdevalps-0.2.tar.gz ; \
|
|
tar xzf ${DISTDIR}/gdevmd2k-0.2a.tar.gz ; \
|
|
tar xzf ${DISTDIR}/gdevrpdl-1.2.tar.gz ; \
|
|
${CP} gdev10v/gdev10v.c gdev10v/gdev10v.mak ${WRKSRC}; \
|
|
${CP} gdevmjc-0.8/*.[ch] gdevmjc-0.8/gdevmjc.mak ${WRKSRC}; \
|
|
${CP} gdevlips-2.3.2/*.[ch] gdevlips-2.3.2/gdevlips.mak ${WRKSRC}; \
|
|
${CP} gdevdmpr/gdevdmpr.c gdevdmpr/gdevdmpr.mak ${WRKSRC}; \
|
|
${CP} gdevdmpr/dviprlib.c gdevdmpr/dviprlib.h ${WRKSRC}; \
|
|
${CP} gdevalps-0.2/gdevalps.c gdevalps-0.2/gdevalps.mak-5.50 ${WRKSRC}; \
|
|
${CP} gdevmd2k-0.2a/gdevmd2k.c gdevmd2k-0.2a/gdevmd2k.mak-5.50 ${WRKSRC}; \
|
|
${CP} gdevrpdl-1.2/gdevrpdl.c gdevrpdl-1.2/gdevrpdl.mak ${WRKSRC}; \
|
|
)
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdev10v.mak.patch
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/mjc.dev.patch
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevdmpr.mak.patch
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevmjc.c.patch
|
|
# @${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevmjc.mak.patch
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevdmpr.patch
|
|
@${CAT} ${WRKSRC}/gdev10v.mak >> ${WRKSRC}/contrib.mak
|
|
@${CAT} ${WRKSRC}/gdevdmpr.mak >> ${WRKSRC}/contrib.mak
|
|
@${CAT} ${WRKSRC}/gdevlips.mak >> ${WRKSRC}/contrib.mak
|
|
@${CAT} ${WRKSRC}/gdevrpdl.mak >> ${WRKSRC}/contrib.mak
|
|
@${CAT} ${WRKSRC}/gdevmjc.mak >> ${WRKSRC}/contrib.mak
|
|
@${CAT} ${WRKSRC}/gdevalps.mak-5.50 >> ${WRKSRC}/contrib.mak
|
|
@${CAT} ${WRKSRC}/gdevmd2k.mak-5.50 >> ${WRKSRC}/contrib.mak
|
|
|
|
pre-install:
|
|
@${MKDIR} ${PREFIX}/share/ghostscript
|
|
@tar -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_STD}
|
|
@tar -C ${PREFIX}/share/ghostscript/fonts -xzf ${DISTDIR}/${GS_FONTS_OTHER}
|
|
|
|
post-install:
|
|
@strip ${PREFIX}/bin/gs
|
|
@( \
|
|
${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} ; \
|
|
${CP} ${PRINTER}/gdev10v/gdev10v.jis ${DOC_DIR} ; \
|
|
${CP} ${PRINTER}/gdevlips-2.3.2/Gdevlips.htm ${DOC_DIR} ; \
|
|
${CP} ${PRINTER}/gdevlips-2.3.2/gs_statd.dif ${DOC_DIR} ; \
|
|
${MKDIR} ${DOC_DIR}/gdevmjc-0.8 ; \
|
|
${CP} ${PRINTER}/gdevmjc-0.8/README.mjc ${DOC_DIR}/gdevmjc-0.8/ ; \
|
|
${CP} ${PRINTER}/gdevmjc-0.8/README.noz ${DOC_DIR}/gdevmjc-0.8/ ; \
|
|
${CP} ${PRINTER}/gdevmjc-0.8/README.mje ${DOC_DIR}/gdevmjc-0.8/ ; \
|
|
${CP} ${PRINTER}/gdevmjc-0.8/cpem.doc ${DOC_DIR}/gdevmjc-0.8/ ; \
|
|
${CP} ${PRINTER}/gdevmjc-0.8/MJ700V2C.FAQ ${DOC_DIR}/gdevmjc-0.8/ ; \
|
|
${CP} ${PRINTER}/gdevalps-0.2/README.gdevalps ${DOC_DIR}/README.gdevalps ; \
|
|
${CP} ${PRINTER}/gdevmd2k-0.2a/README.jis ${DOC_DIR}/gdevmd2k.jis ; \
|
|
${CP} ${PRINTER}/gdevrpdl-1.2/gdevrpdl.doc ${DOC_DIR} ; \
|
|
${CP} ${PRINTER}/gdevdmpr/gdevdmpr.sj ${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} ; \
|
|
${CP} ${PRINTER}/gdevmjc-0.8/gdevmjc.ps ${GSINST_DIR} ; \
|
|
)
|
|
.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
|
|
|
|
.include <bsd.port.mk>
|