1997-06-11 08:20:47 +02:00
|
|
|
# New ports collection makefile for: ghostscript
|
|
|
|
# Date created: Tue Jun 10 21:58:54 CEST 1997
|
|
|
|
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
|
|
|
|
#
|
1999-08-31 03:53:22 +02:00
|
|
|
# $FreeBSD$
|
1997-06-11 08:20:47 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 19:50:59 +02:00
|
|
|
PORTNAME= ghostscript
|
2003-01-03 20:37:31 +01:00
|
|
|
PORTVERSION= ${GS_VERSION}
|
2004-02-29 09:18:45 +01:00
|
|
|
PORTREVISION= ${GS_REVISION}
|
|
|
|
PORTEPOCH= ${GS_EPOCH}
|
1997-06-11 08:20:47 +02:00
|
|
|
CATEGORIES= print
|
2007-06-03 07:02:53 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs/} \
|
2008-03-04 02:35:19 +01:00
|
|
|
http://www.linuxprinting.org/ijs/download/:ijs_srcs \
|
2002-04-03 04:59:13 +02:00
|
|
|
http://www.humblesoft.com/pub/:epag \
|
2004-10-16 09:28:34 +02:00
|
|
|
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs${GS_VERSION:S/.//}/:gs_srcs
|
2007-06-03 07:02:53 +02:00
|
|
|
MASTER_SITE_SUBDIR= ghostscript/:gs_srcs
|
2004-10-16 09:28:34 +02:00
|
|
|
PKGNAMESUFFIX= -gpl
|
2002-08-06 21:40:49 +02:00
|
|
|
DISTFILES= ${GS_SRCS}:gs_srcs \
|
2008-03-04 02:35:19 +01:00
|
|
|
${IJS_SRCS}:ijs_srcs \
|
2007-08-16 17:20:30 +02:00
|
|
|
${EPAG_SRCS}:epag
|
2001-09-27 20:03:32 +02:00
|
|
|
DIST_SUBDIR= ghostscript
|
2008-03-04 02:35:19 +01:00
|
|
|
EXTRACT_ONLY= ${GS_SRCS} ${IJS_SRCS}
|
1998-12-03 09:24:21 +01:00
|
|
|
|
2001-07-06 12:35:32 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-10-16 09:28:34 +02:00
|
|
|
COMMENT= GPL Postscript interpreter
|
1997-06-11 08:20:47 +02:00
|
|
|
|
2003-01-03 20:37:31 +01:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
png.5:${PORTSDIR}/graphics/png
|
2004-06-17 10:18:55 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
|
1997-06-11 08:20:47 +02:00
|
|
|
|
2007-09-24 10:43:49 +02:00
|
|
|
CONFLICTS= ghostscript-gnu*
|
2002-04-03 04:59:13 +02:00
|
|
|
USE_BZIP2= yes
|
2001-09-11 21:24:31 +02:00
|
|
|
USE_GMAKE= yes
|
2008-03-02 06:51:23 +01:00
|
|
|
WANT_GNOME= yes
|
2002-04-03 04:59:13 +02:00
|
|
|
MAKE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS_STANDARD="${CFLAGS}" \
|
2007-08-16 17:20:30 +02:00
|
|
|
XCFLAGS="${XCFLAGS}" XLDFLAGS="${XLDFLAGS}" \
|
2008-03-24 04:52:36 +01:00
|
|
|
EXTRALIBS="${EXTRALIBS}" \
|
|
|
|
SOC_LOADER="dxmainc.c"
|
2004-07-25 16:40:42 +02:00
|
|
|
PLIST_SUB= GS_VERSION="${GS_VERSION}" \
|
2007-06-03 07:02:53 +02:00
|
|
|
CIDFONTDIR="${CIDFONTDIR}"
|
2003-01-03 20:37:31 +01:00
|
|
|
|
2008-03-01 12:07:52 +01:00
|
|
|
OPTIONS= A4SIZE "Set A4 (not Letter) as a default paper size" off \
|
|
|
|
FONTCONFIG "fontconfig support" off \
|
|
|
|
FT_BRIDGE "FreeType bridge" off \
|
|
|
|
ICONV "libiconv support (required by opvp/oprp drivers)" on \
|
|
|
|
JPNFONTS "Japanese font support" on \
|
2008-03-15 14:32:20 +01:00
|
|
|
SVGALIB "svgalib support" off
|
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
OPTIONS+= X11 "X11 support" off
|
|
|
|
.else
|
|
|
|
OPTIONS+= X11 "X11 support" on
|
|
|
|
.endif
|
2001-09-11 21:24:31 +02:00
|
|
|
|
2007-06-03 07:02:53 +02:00
|
|
|
MAN1= dvipdf.1 font2c.1 gs.1 gslp.1 gsnd.1 gs-pcl3.1 pcl3opts.1 \
|
|
|
|
pdf2dsc.1 pdf2ps.1 pdfopt.1 pf2afm.1 pfbtopfa.1 printafm.1 \
|
|
|
|
ps2ascii.1 ps2epsi.1 ps2pdf.1 ps2pdfwr.1 ps2ps.1 wftopfa.1
|
2001-09-11 21:24:31 +02:00
|
|
|
MLINKS= gslp.1 gsbj.1 \
|
|
|
|
gslp.1 gsdj.1 \
|
|
|
|
gslp.1 gsdj500.1 \
|
|
|
|
gslp.1 gslj.1 \
|
|
|
|
ps2pdf.1 ps2pdf12.1 \
|
|
|
|
ps2pdf.1 ps2pdf13.1 \
|
|
|
|
ps2ps.1 eps2eps.1
|
|
|
|
|
2007-08-16 17:20:30 +02:00
|
|
|
XCFLAGS= ${PTHREAD_CFLAGS}
|
2007-06-03 07:02:53 +02:00
|
|
|
XLDFLAGS= ${PTHREAD_LIBS}
|
2001-12-27 17:45:47 +01:00
|
|
|
|
2008-03-01 12:07:52 +01:00
|
|
|
.include "Makefile.inc"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
SCRIPTS_ENV= GS_DRIVERS_LIST="${GS_DRIVERS_LIST}" \
|
|
|
|
WITHOUT_X11="${WITHOUT_X11}" \
|
|
|
|
WITH_SVGALIB="${WITH_SVGALIB}" \
|
|
|
|
WITH_ICONV="${WITH_ICONV}"
|
|
|
|
|
2007-06-03 07:02:53 +02:00
|
|
|
.if !defined(WITH_LETTERSIZE)
|
|
|
|
.if defined(A4) || defined(WITH_A4SIZE)
|
2001-12-27 17:45:47 +01:00
|
|
|
XCFLAGS+= -DA4
|
2007-06-03 07:02:53 +02:00
|
|
|
MSG_PAPERSIZE= "NOTE: Default paper size will be A4."
|
|
|
|
.endif
|
2001-09-11 21:24:31 +02:00
|
|
|
.endif
|
2001-02-25 20:02:46 +01:00
|
|
|
|
2003-01-03 20:37:31 +01:00
|
|
|
.if defined(WITHOUT_X11)
|
2001-09-27 20:03:32 +02:00
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-nox11
|
2003-01-03 20:37:31 +01:00
|
|
|
.else
|
2007-08-03 23:46:53 +02:00
|
|
|
USE_XORG= xt xext
|
2001-02-25 20:02:46 +01:00
|
|
|
.endif
|
|
|
|
|
2003-06-08 04:38:06 +02:00
|
|
|
.if defined(WITH_SVGALIB)
|
|
|
|
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
|
|
|
|
.endif
|
|
|
|
|
2007-06-03 07:02:53 +02:00
|
|
|
.if defined(WITH_ICONV)
|
|
|
|
USE_ICONV= yes
|
2007-08-16 17:20:30 +02:00
|
|
|
EXTRALIBS+= -liconv
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FONTCONFIG)
|
|
|
|
LIB_DEPENDS+= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
|
|
|
|
XCFLAGS+= -DHAVE_FONTCONFIG=1
|
|
|
|
EXTRALIBS+= -lfontconfig
|
2007-06-03 07:02:53 +02:00
|
|
|
.endif
|
|
|
|
|
2004-01-08 17:11:13 +01:00
|
|
|
.if defined(WITH_FT_BRIDGE)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libfreetype.a:${PORTSDIR}/print/freetype2
|
|
|
|
MAKE_ENV+= FT_BRIDGE=1 FT_ROOT="${WRKSRC}/freetype" FT_LIB_EXT=".a"
|
|
|
|
.endif
|
|
|
|
|
2008-02-29 06:55:11 +01:00
|
|
|
ALL_TARGET= so
|
2002-04-03 04:59:13 +02:00
|
|
|
INSTALL_TARGET= soinstall
|
2006-08-15 02:56:24 +02:00
|
|
|
USE_LDCONFIG= yes
|
2008-03-24 04:52:36 +01:00
|
|
|
PLIST_SUB+= SHLIB_VER="${GS_VERSION:R}"
|
2002-04-03 04:59:13 +02:00
|
|
|
|
|
|
|
GS_SRCS= ${DISTNAME}${EXTRACT_SUFX}
|
2008-03-04 02:35:19 +01:00
|
|
|
IJS_SRCS= ijs-0.35${EXTRACT_SUFX}
|
2004-07-25 16:40:42 +02:00
|
|
|
CIDFONTDIR= ${PREFIX}/share/ghostscript/${GS_VERSION}/Resource
|
new ghostscript 6.01 port after repository copy
additional changes by me:
- configure + configure.batch updates:
reviewed all informations in makefiles and driver docu
to make list of available drivers and supported printers complete
- added DeskJet 880C/882C/895C Driver from Matthew J. Gelhau
Driver is still in developement. There is a newer 1.4 beta version
available, but this version is recommended by the author.
http://www.proaxis.com/~mgelhaus/linux/software/hp880c/hp880c.html
Supported are the following models:
HP DeskJet 812C 815C 832C 880C 882C 895C 932C 970C
- added contributed uniprint driver profiles:
- configure + configure.batch updates:
reviewed all informations in makefiles and driver docu
to make list of available drivers and supported printers complete
- added DeskJet 880C/882C/895C Driver from Matthew J. Gelhau
Driver is still in developement. There is a newer 1.4 beta version
available, but this version is recommended by the author.
http://www.proaxis.com/~mgelhaus/linux/software/hp880c/hp880c.html
Supported are the following models:
HP DeskJet 812C 815C 832C 880C 882C 895C 932C 970C
- added contributed uniprint driver profiles:
printer: Epson Stylus Color 740
mode1: stc740ih.upp: Epson Stylus Color 740, 1440x720DpI, Inkjet Paper
mode2: stc740p.upp : Epson Stylus Color 740, 720x720DpI, Plain Paper
mode3: stc740pl.upp: Epson Stylus Color 740, 360x360DpI, Plain Paper
contributor: Francois D. Menard <fmenard@g6-114b.residence.usherb.ca>
#
printer: Epson LQ-1170
mode1: lqx70ch.upp : Epson LQ-1170 ESC/P2 Dot Matrix, 360x360DpI, Plain Pap.
mode2: lqx70cl.upp : Epson LQ-1170 ESC/P2 Dot Matrix, 180x180DpI, Plain Pap.
mode3: lqx70cm.upp : Epson LQ-1170 ESC/P2 Dot Matrix, 360x180DpI, Plain Pap.
contributor: Harold Bower <HalBower@worldnet.att.net>
- updated PLIST
- use GS_VERSION for DISTNAME
- fix installation path for pdf_sec.ps if defined PDFENCRYPT
- silence make install ("@")
- change COMMENT to reflect version
- update DESCR, to document driver enhancements compared to stanfard gs
release
- apsfilter will be updated later
Submitted by: "Alec Wolman" <wolman@cs.washington.edu>
2000-03-25 13:27:38 +01:00
|
|
|
|
|
|
|
# Additional Drivers:
|
|
|
|
|
2002-04-03 04:59:13 +02:00
|
|
|
# EPAG - additional driver for Epson ESC/Page printers
|
2002-08-06 21:40:49 +02:00
|
|
|
# http://www.humblesoft.com/gdevepag.html
|
2002-04-03 04:59:13 +02:00
|
|
|
EPAG= epag
|
|
|
|
EPAG_VERS= 3.09
|
|
|
|
EPAG_NAME= ${EPAG}-${EPAG_VERS}
|
|
|
|
EPAG_SRCS= ${EPAG_NAME}.tar.gz
|
|
|
|
|
2008-03-01 12:07:52 +01:00
|
|
|
# Add support for Japanese fonts
|
|
|
|
.if defined(WITH_JPNFONTS)
|
|
|
|
MASTER_SITES+= http://www.interq.or.jp/mars/cherry/mac/:jpn
|
|
|
|
DISTFILES+= ${JPN_SRCS}:jpn
|
|
|
|
JPN_SRCS= Font.tar.bz2
|
|
|
|
PLIST_SUB+= JPN=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= JPN="@comment "
|
|
|
|
.endif
|
2001-02-28 07:51:00 +01:00
|
|
|
|
2008-03-01 12:07:52 +01:00
|
|
|
.SILENT:
|
2008-03-04 02:35:19 +01:00
|
|
|
|
2001-09-11 22:18:29 +02:00
|
|
|
pre-everything::
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ${MSG_PAPERSIZE}
|
Major cleanup for ghostscript5 port.
- merged patch-af into patch-aa, both patches hacked unix-gcc.mak
- merged the scripts/{configure,configure.batch} changes into
patch-aa, so that unix-gcc.mak is hacked only by patch-aa
- when doing interactive configuration, every device driver is
now turned on, so you have to deselect devices
- when using BATCH compilation, you now get every supported device,
this one is especially for Satoshi, when making gs packages !
- Added a note into unix-gcc.mak, that DEVICE_DEVS now completely
are removed in the makefile, instead of this, the two configure
scripts now completely control, which devices have to be compiled in.
So, the configure target "patches" the unix-gcc.mak Makefile and
puts a DEVICE_DEVS line at line 1. When doing batch compilation
every device is included in this line, or the wanted devices ...
- The compilation option -DA4 is now included if you compile the port
by saying "make A4=yes".
I hope, I didn't forget a driver, look at that long line ;-)
BTW, I didn't create that DEVICE_DEVS line by hand, I did the
interactive installation, which created it automatically, and
after that I "stealed" that DEVICE_DEVS line for inclusion
into configure.batch ;-) So the devices in configure and configure.batch
are exactly the same, you only have to compare devices.mak with one
of the configure scripts.
BTW, should we nuke ghostscript4 ??? Does somebody know if any
port needs gs4 ???
1997-06-14 11:36:31 +02:00
|
|
|
|
1997-06-11 08:20:47 +02:00
|
|
|
post-extract:
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> in post-extract ..."
|
2008-03-04 02:35:19 +01:00
|
|
|
${RM} -fr ${WRKSRC}/ijs
|
|
|
|
${LN} -sf ../ijs-0.35 ${WRKSRC}/ijs
|
2008-03-01 12:07:52 +01:00
|
|
|
|
update to ghostscript v 6.50
- removed port revision, because of new version
- added PCL3 driver (hpdj successor) from Martin Lottermoser
*both* driver, HPDJ and PCL3, are now compiled in
reason: PCL3 is still flagged as BETA and author didn't get much response
Although Martin says, its definitively not ALPHA, its safer to have the
old drivers around, if things fail for some reason.
Martin confirmed, that its possible to have both in one gs binary !!!
- disable configure script temporarily, since dialog needs a driver update
but I don't want to hold back that port any longer.
- enabled as many gs driver as possible
- reorganized MASTER_SITES
- added mirrors
- add a note, that russion mirror isn't up to date, so don't add it
- optimized downloading from 6 different sources by special ordering
- reorganized Makefile completely
- put only ${GS_SOURCES} into EXTRACT_ONLY variable
unpacking other 3rd party src's is handled in post-extract target
- directory creating, patching, unpacking and install actions are
now handeled within the proper make target. This makes port maintenance
much easier, i.e.: if you enter make extract, then only extraction
of things happen, but makefiles are still not patched. Before this
cleanup, things were not so structured and not easy to maintain.
Maybe we get a configure script later, to choose between different
3rd party driver options, then this "sorting" and documenting
will support the migration process...
- silence port by hiding actions with "@"
- insert many informational echoes. This makes port maintenance and
troubleshooting easier
- put more unique comments in front of the different 3rd party modules
- document things better
- use as many environment variables as necessary, so that "numerical"
changes only have to happen on some places and not withing make targets
- use gs version number also in docu directory
- properly install runtime, info and doc files from 3rd party drivers
- put not needed stuff into "NOPORTDOCS" section
- keep old font names to avoid fetching unnecessary things
- updated patches as necessary
- added new patch from Nartin Lottermoser
- removed 2 patches that have been incorporated into gs 6.50
- added needed manual pages
- updated pkg-plist
- finally tested port and package building as well as port removal
new port passes all disciplines ;-)
2001-01-16 23:57:24 +01:00
|
|
|
# ** 3rd party driver **
|
2004-02-29 09:18:45 +01:00
|
|
|
# Note: don't forget to add those devices in scripts/configure,
|
2004-06-27 20:13:17 +02:00
|
|
|
# which update unix-gcc.mak to build gs with these new devices!
|
update to ghostscript v 6.50
- removed port revision, because of new version
- added PCL3 driver (hpdj successor) from Martin Lottermoser
*both* driver, HPDJ and PCL3, are now compiled in
reason: PCL3 is still flagged as BETA and author didn't get much response
Although Martin says, its definitively not ALPHA, its safer to have the
old drivers around, if things fail for some reason.
Martin confirmed, that its possible to have both in one gs binary !!!
- disable configure script temporarily, since dialog needs a driver update
but I don't want to hold back that port any longer.
- enabled as many gs driver as possible
- reorganized MASTER_SITES
- added mirrors
- add a note, that russion mirror isn't up to date, so don't add it
- optimized downloading from 6 different sources by special ordering
- reorganized Makefile completely
- put only ${GS_SOURCES} into EXTRACT_ONLY variable
unpacking other 3rd party src's is handled in post-extract target
- directory creating, patching, unpacking and install actions are
now handeled within the proper make target. This makes port maintenance
much easier, i.e.: if you enter make extract, then only extraction
of things happen, but makefiles are still not patched. Before this
cleanup, things were not so structured and not easy to maintain.
Maybe we get a configure script later, to choose between different
3rd party driver options, then this "sorting" and documenting
will support the migration process...
- silence port by hiding actions with "@"
- insert many informational echoes. This makes port maintenance and
troubleshooting easier
- put more unique comments in front of the different 3rd party modules
- document things better
- use as many environment variables as necessary, so that "numerical"
changes only have to happen on some places and not withing make targets
- use gs version number also in docu directory
- properly install runtime, info and doc files from 3rd party drivers
- put not needed stuff into "NOPORTDOCS" section
- keep old font names to avoid fetching unnecessary things
- updated patches as necessary
- added new patch from Nartin Lottermoser
- removed 2 patches that have been incorporated into gs 6.50
- added needed manual pages
- updated pkg-plist
- finally tested port and package building as well as port removal
new port passes all disciplines ;-)
2001-01-16 23:57:24 +01:00
|
|
|
#
|
2002-04-03 04:59:13 +02:00
|
|
|
# for EPAG driver
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> extracting ${EPAG_SRCS} ..."
|
2002-04-03 04:59:13 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${EPAG_SRCS}
|
2007-03-27 21:59:21 +02:00
|
|
|
${LN} -sf ${EPAG_NAME} ${WRKSRC}/${EPAG}
|
2008-03-01 12:07:52 +01:00
|
|
|
# for Japanese fonts
|
|
|
|
.if defined(WITH_JPNFONTS)
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> extracting ${JPN_SRCS} ..."
|
2008-03-01 12:07:52 +01:00
|
|
|
${TAR} -C ${WRKSRC}/Resource -xypof ${DISTDIR}/${DIST_SUBDIR}/${JPN_SRCS}
|
|
|
|
.endif
|
2007-03-28 18:22:09 +02:00
|
|
|
|
update to ghostscript v 6.50
- removed port revision, because of new version
- added PCL3 driver (hpdj successor) from Martin Lottermoser
*both* driver, HPDJ and PCL3, are now compiled in
reason: PCL3 is still flagged as BETA and author didn't get much response
Although Martin says, its definitively not ALPHA, its safer to have the
old drivers around, if things fail for some reason.
Martin confirmed, that its possible to have both in one gs binary !!!
- disable configure script temporarily, since dialog needs a driver update
but I don't want to hold back that port any longer.
- enabled as many gs driver as possible
- reorganized MASTER_SITES
- added mirrors
- add a note, that russion mirror isn't up to date, so don't add it
- optimized downloading from 6 different sources by special ordering
- reorganized Makefile completely
- put only ${GS_SOURCES} into EXTRACT_ONLY variable
unpacking other 3rd party src's is handled in post-extract target
- directory creating, patching, unpacking and install actions are
now handeled within the proper make target. This makes port maintenance
much easier, i.e.: if you enter make extract, then only extraction
of things happen, but makefiles are still not patched. Before this
cleanup, things were not so structured and not easy to maintain.
Maybe we get a configure script later, to choose between different
3rd party driver options, then this "sorting" and documenting
will support the migration process...
- silence port by hiding actions with "@"
- insert many informational echoes. This makes port maintenance and
troubleshooting easier
- put more unique comments in front of the different 3rd party modules
- document things better
- use as many environment variables as necessary, so that "numerical"
changes only have to happen on some places and not withing make targets
- use gs version number also in docu directory
- properly install runtime, info and doc files from 3rd party drivers
- put not needed stuff into "NOPORTDOCS" section
- keep old font names to avoid fetching unnecessary things
- updated patches as necessary
- added new patch from Nartin Lottermoser
- removed 2 patches that have been incorporated into gs 6.50
- added needed manual pages
- updated pkg-plist
- finally tested port and package building as well as port removal
new port passes all disciplines ;-)
2001-01-16 23:57:24 +01:00
|
|
|
post-patch:
|
2002-06-28 01:52:18 +02:00
|
|
|
${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \
|
2001-09-11 21:24:31 +02:00
|
|
|
${WRKSRC}/src/unix-gcc.mak
|
2002-06-28 01:52:18 +02:00
|
|
|
${REINPLACE_CMD} -e 's|\. de|\.|g' \
|
2001-11-01 22:15:32 +01:00
|
|
|
${WRKSRC}/src/unixinst.mak
|
2005-06-10 19:10:07 +02:00
|
|
|
# for DMPRT driver
|
|
|
|
${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g ; \
|
|
|
|
s|%%GS_VERSION%%|${GS_VERSION}|g' \
|
2007-06-03 07:02:53 +02:00
|
|
|
${WRKSRC}/contrib/japanese/dmp_site.ps
|
update to ghostscript v 6.50
- removed port revision, because of new version
- added PCL3 driver (hpdj successor) from Martin Lottermoser
*both* driver, HPDJ and PCL3, are now compiled in
reason: PCL3 is still flagged as BETA and author didn't get much response
Although Martin says, its definitively not ALPHA, its safer to have the
old drivers around, if things fail for some reason.
Martin confirmed, that its possible to have both in one gs binary !!!
- disable configure script temporarily, since dialog needs a driver update
but I don't want to hold back that port any longer.
- enabled as many gs driver as possible
- reorganized MASTER_SITES
- added mirrors
- add a note, that russion mirror isn't up to date, so don't add it
- optimized downloading from 6 different sources by special ordering
- reorganized Makefile completely
- put only ${GS_SOURCES} into EXTRACT_ONLY variable
unpacking other 3rd party src's is handled in post-extract target
- directory creating, patching, unpacking and install actions are
now handeled within the proper make target. This makes port maintenance
much easier, i.e.: if you enter make extract, then only extraction
of things happen, but makefiles are still not patched. Before this
cleanup, things were not so structured and not easy to maintain.
Maybe we get a configure script later, to choose between different
3rd party driver options, then this "sorting" and documenting
will support the migration process...
- silence port by hiding actions with "@"
- insert many informational echoes. This makes port maintenance and
troubleshooting easier
- put more unique comments in front of the different 3rd party modules
- document things better
- use as many environment variables as necessary, so that "numerical"
changes only have to happen on some places and not withing make targets
- use gs version number also in docu directory
- properly install runtime, info and doc files from 3rd party drivers
- put not needed stuff into "NOPORTDOCS" section
- keep old font names to avoid fetching unnecessary things
- updated patches as necessary
- added new patch from Nartin Lottermoser
- removed 2 patches that have been incorporated into gs 6.50
- added needed manual pages
- updated pkg-plist
- finally tested port and package building as well as port removal
new port passes all disciplines ;-)
2001-01-16 23:57:24 +01:00
|
|
|
|
|
|
|
# here we apply the modifications necessary to build the 3rd party drivers
|
|
|
|
# advantage: you see unmodified makefiles after a pure make extract
|
|
|
|
pre-configure:
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> in pre-configure ..."
|
2002-04-03 04:59:13 +02:00
|
|
|
# for EPAG driver
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> adding EPAG driver to contrib.mak ..."
|
2003-07-11 19:19:34 +02:00
|
|
|
${CAT} ${FILESDIR}/epag.contrib.mak \
|
2002-04-03 04:59:13 +02:00
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
2007-03-28 18:22:09 +02:00
|
|
|
|
2007-03-27 21:59:21 +02:00
|
|
|
post-configure:
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> in post-configure ..."
|
2007-03-27 21:59:21 +02:00
|
|
|
cd ${WRKSRC}/jasper ; \
|
2008-03-01 12:07:52 +01:00
|
|
|
${SETENV} ${MAKE_ENV} ${SH} ./configure --prefix=${PREFIX}
|
|
|
|
cd ${WRKSRC}/ijs ; \
|
2008-03-04 02:35:19 +01:00
|
|
|
${SETENV} ${MAKE_ENV} ${SH} ./configure --prefix=${PREFIX}
|
2007-03-27 21:59:21 +02:00
|
|
|
|
1998-12-03 09:24:21 +01:00
|
|
|
pre-build:
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> in pre-build ..."
|
|
|
|
${ECHO_MSG} ">>> creating directories for compilation ..."
|
2001-09-11 21:24:31 +02:00
|
|
|
${MKDIR} ${WRKSRC}/obj
|
|
|
|
${MKDIR} ${WRKSRC}/bin
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for EPAG ..."
|
2002-04-03 04:59:13 +02:00
|
|
|
.for i in gdevepag.c
|
|
|
|
${LN} -sf ${WRKSRC}/${EPAG_NAME}/${i} ${WRKSRC}/src
|
|
|
|
.endfor
|
2004-01-08 17:11:13 +01:00
|
|
|
.if defined(WITH_FT_BRIDGE)
|
|
|
|
${MKDIR} ${WRKSRC}/freetype/include
|
2004-03-19 20:44:11 +01:00
|
|
|
${LN} -sf ${LOCALBASE}/include/ft2build.h \
|
|
|
|
${WRKSRC}/freetype/include/ft2build.h
|
2004-01-08 17:11:13 +01:00
|
|
|
${LN} -sf ${LOCALBASE}/include/freetype2/freetype \
|
|
|
|
${WRKSRC}/freetype/include/freetype
|
|
|
|
${MKDIR} ${WRKSRC}/freetype/objs
|
|
|
|
${LN} -sf ${LOCALBASE}/lib/libfreetype.a \
|
|
|
|
${WRKSRC}/freetype/objs/freetype214MT_D.a
|
|
|
|
.endif
|
1998-12-03 09:24:21 +01:00
|
|
|
|
2008-02-29 06:55:11 +01:00
|
|
|
post-build:
|
|
|
|
# for PCL3 driver
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> building PCL3 utility ..."
|
2008-02-29 06:55:11 +01:00
|
|
|
cd ${WRKSRC} ; \
|
|
|
|
${CC} ${CFLAGS} -I./obj -I./soobj -I./src \
|
|
|
|
-I./contrib/pcl3/eprn -o bin/pcl3opts \
|
|
|
|
contrib/pcl3/src/pcl3opts.c contrib/pcl3/src/pclscan.c \
|
|
|
|
contrib/pcl3/eprn/mediasize.c contrib/pcl3/src/pclsize.c
|
|
|
|
# for EPAG driver
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> building EPAG utility ..."
|
2008-02-29 06:55:11 +01:00
|
|
|
cd ${WRKSRC}/${EPAG_NAME} ; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile
|
|
|
|
|
2004-06-27 20:13:17 +02:00
|
|
|
pre-su-install:
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> in pre-install ..."
|
|
|
|
${ECHO_MSG} ">>> creating ghostscript destdir ..."
|
2001-10-06 19:16:21 +02:00
|
|
|
${MKDIR} ${DATADIR}
|
2003-04-28 00:11:29 +02:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
1997-06-11 08:20:47 +02:00
|
|
|
|
|
|
|
post-install:
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> in post-install ..."
|
2004-07-25 16:40:42 +02:00
|
|
|
${LN} -s -f ${LOCALBASE}/share/fonts/CIDFont ${CIDFONTDIR}/CIDFont
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> stripping gs ..."
|
2002-04-03 04:59:13 +02:00
|
|
|
${STRIP_CMD} ${PREFIX}/bin/gsc ${PREFIX}/bin/gsx
|
|
|
|
${LN} -sf gsc ${PREFIX}/bin/gs
|
2005-06-10 19:10:07 +02:00
|
|
|
# for PCL3 driver
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> installing PCL3 utility in bindir ..."
|
2005-06-10 19:10:07 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/pcl3opts ${PREFIX}/bin
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> installing PCL3 manpages ..."
|
2007-06-03 07:02:53 +02:00
|
|
|
.for i in gs-pcl3.1 pcl3opts.1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/contrib/pcl3/doc/${i} ${MANPREFIX}/man/man1
|
2005-06-10 19:10:07 +02:00
|
|
|
.endfor
|
|
|
|
# other pcl3 stuff, which might be interesting for runtime
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> creating PCL3 destdir ..."
|
2007-06-03 07:02:53 +02:00
|
|
|
${MKDIR} ${DATADIR}/${GS_VERSION}/pcl3
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> installing files in PCL3 destdir ..."
|
2005-06-06 17:00:37 +02:00
|
|
|
.for i in NEWS BUGS README lib/example.mcf lib/if-pcl3 ps/calign.ps \
|
|
|
|
ps/dumppdd.ps ps/levels-test.ps ps/margins-A4.ps \
|
|
|
|
ps/margins-A4Rotated.ps ps/margins-Env10Rotated.ps \
|
|
|
|
ps/margins-EnvDLRotated.ps ps/margins-Letter.ps \
|
|
|
|
ps/margins-LetterRotated.ps
|
2007-06-03 07:02:53 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/pcl3/${i} \
|
|
|
|
${DATADIR}/${GS_VERSION}/pcl3
|
2005-06-06 17:00:37 +02:00
|
|
|
.endfor
|
2005-06-10 19:10:07 +02:00
|
|
|
# for DMPRT driver
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> installing DMPRT resources ..."
|
2005-06-10 19:10:07 +02:00
|
|
|
.for i in dmp_init.ps dmp_site.ps escp_24.src
|
2007-06-03 07:02:53 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/japanese/${i} \
|
2005-06-10 19:10:07 +02:00
|
|
|
${DATADIR}/${GS_VERSION}/lib
|
|
|
|
.endfor
|
2002-04-03 04:59:13 +02:00
|
|
|
# for EPAG driver
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> installing EPAG utility in bindir ..."
|
2002-04-03 04:59:13 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${EPAG_NAME}/ert ${PREFIX}/bin
|
update to ghostscript v 6.50
- removed port revision, because of new version
- added PCL3 driver (hpdj successor) from Martin Lottermoser
*both* driver, HPDJ and PCL3, are now compiled in
reason: PCL3 is still flagged as BETA and author didn't get much response
Although Martin says, its definitively not ALPHA, its safer to have the
old drivers around, if things fail for some reason.
Martin confirmed, that its possible to have both in one gs binary !!!
- disable configure script temporarily, since dialog needs a driver update
but I don't want to hold back that port any longer.
- enabled as many gs driver as possible
- reorganized MASTER_SITES
- added mirrors
- add a note, that russion mirror isn't up to date, so don't add it
- optimized downloading from 6 different sources by special ordering
- reorganized Makefile completely
- put only ${GS_SOURCES} into EXTRACT_ONLY variable
unpacking other 3rd party src's is handled in post-extract target
- directory creating, patching, unpacking and install actions are
now handeled within the proper make target. This makes port maintenance
much easier, i.e.: if you enter make extract, then only extraction
of things happen, but makefiles are still not patched. Before this
cleanup, things were not so structured and not easy to maintain.
Maybe we get a configure script later, to choose between different
3rd party driver options, then this "sorting" and documenting
will support the migration process...
- silence port by hiding actions with "@"
- insert many informational echoes. This makes port maintenance and
troubleshooting easier
- put more unique comments in front of the different 3rd party modules
- document things better
- use as many environment variables as necessary, so that "numerical"
changes only have to happen on some places and not withing make targets
- use gs version number also in docu directory
- properly install runtime, info and doc files from 3rd party drivers
- put not needed stuff into "NOPORTDOCS" section
- keep old font names to avoid fetching unnecessary things
- updated patches as necessary
- added new patch from Nartin Lottermoser
- removed 2 patches that have been incorporated into gs 6.50
- added needed manual pages
- updated pkg-plist
- finally tested port and package building as well as port removal
new port passes all disciplines ;-)
2001-01-16 23:57:24 +01:00
|
|
|
# contributed UPP driver
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> installing contributed UPP profiles ..."
|
2007-06-03 07:02:53 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/uniprint/*.upp \
|
|
|
|
${DATADIR}/${GS_VERSION}/lib
|
|
|
|
.for i in lqx70ch.upp lqx70cl.upp lqx70cm.upp
|
2001-09-11 21:24:31 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/${i} \
|
2003-01-03 20:37:31 +01:00
|
|
|
${DATADIR}/${GS_VERSION}/lib
|
new ghostscript 6.01 port after repository copy
additional changes by me:
- configure + configure.batch updates:
reviewed all informations in makefiles and driver docu
to make list of available drivers and supported printers complete
- added DeskJet 880C/882C/895C Driver from Matthew J. Gelhau
Driver is still in developement. There is a newer 1.4 beta version
available, but this version is recommended by the author.
http://www.proaxis.com/~mgelhaus/linux/software/hp880c/hp880c.html
Supported are the following models:
HP DeskJet 812C 815C 832C 880C 882C 895C 932C 970C
- added contributed uniprint driver profiles:
- configure + configure.batch updates:
reviewed all informations in makefiles and driver docu
to make list of available drivers and supported printers complete
- added DeskJet 880C/882C/895C Driver from Matthew J. Gelhau
Driver is still in developement. There is a newer 1.4 beta version
available, but this version is recommended by the author.
http://www.proaxis.com/~mgelhaus/linux/software/hp880c/hp880c.html
Supported are the following models:
HP DeskJet 812C 815C 832C 880C 882C 895C 932C 970C
- added contributed uniprint driver profiles:
printer: Epson Stylus Color 740
mode1: stc740ih.upp: Epson Stylus Color 740, 1440x720DpI, Inkjet Paper
mode2: stc740p.upp : Epson Stylus Color 740, 720x720DpI, Plain Paper
mode3: stc740pl.upp: Epson Stylus Color 740, 360x360DpI, Plain Paper
contributor: Francois D. Menard <fmenard@g6-114b.residence.usherb.ca>
#
printer: Epson LQ-1170
mode1: lqx70ch.upp : Epson LQ-1170 ESC/P2 Dot Matrix, 360x360DpI, Plain Pap.
mode2: lqx70cl.upp : Epson LQ-1170 ESC/P2 Dot Matrix, 180x180DpI, Plain Pap.
mode3: lqx70cm.upp : Epson LQ-1170 ESC/P2 Dot Matrix, 360x180DpI, Plain Pap.
contributor: Harold Bower <HalBower@worldnet.att.net>
- updated PLIST
- use GS_VERSION for DISTNAME
- fix installation path for pdf_sec.ps if defined PDFENCRYPT
- silence make install ("@")
- change COMMENT to reflect version
- update DESCR, to document driver enhancements compared to stanfard gs
release
- apsfilter will be updated later
Submitted by: "Alec Wolman" <wolman@cs.washington.edu>
2000-03-25 13:27:38 +01:00
|
|
|
.endfor
|
2008-03-01 12:07:52 +01:00
|
|
|
# for Japanese fonts
|
|
|
|
.if defined(WITH_JPNFONTS)
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> installing Japanese font resources ..."
|
2008-03-01 12:07:52 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Resource/Font/* \
|
|
|
|
${DATADIR}/${GS_VERSION}/Resource/Font/
|
|
|
|
.endif
|
update to ghostscript v 6.50
- removed port revision, because of new version
- added PCL3 driver (hpdj successor) from Martin Lottermoser
*both* driver, HPDJ and PCL3, are now compiled in
reason: PCL3 is still flagged as BETA and author didn't get much response
Although Martin says, its definitively not ALPHA, its safer to have the
old drivers around, if things fail for some reason.
Martin confirmed, that its possible to have both in one gs binary !!!
- disable configure script temporarily, since dialog needs a driver update
but I don't want to hold back that port any longer.
- enabled as many gs driver as possible
- reorganized MASTER_SITES
- added mirrors
- add a note, that russion mirror isn't up to date, so don't add it
- optimized downloading from 6 different sources by special ordering
- reorganized Makefile completely
- put only ${GS_SOURCES} into EXTRACT_ONLY variable
unpacking other 3rd party src's is handled in post-extract target
- directory creating, patching, unpacking and install actions are
now handeled within the proper make target. This makes port maintenance
much easier, i.e.: if you enter make extract, then only extraction
of things happen, but makefiles are still not patched. Before this
cleanup, things were not so structured and not easy to maintain.
Maybe we get a configure script later, to choose between different
3rd party driver options, then this "sorting" and documenting
will support the migration process...
- silence port by hiding actions with "@"
- insert many informational echoes. This makes port maintenance and
troubleshooting easier
- put more unique comments in front of the different 3rd party modules
- document things better
- use as many environment variables as necessary, so that "numerical"
changes only have to happen on some places and not withing make targets
- use gs version number also in docu directory
- properly install runtime, info and doc files from 3rd party drivers
- put not needed stuff into "NOPORTDOCS" section
- keep old font names to avoid fetching unnecessary things
- updated patches as necessary
- added new patch from Nartin Lottermoser
- removed 2 patches that have been incorporated into gs 6.50
- added needed manual pages
- updated pkg-plist
- finally tested port and package building as well as port removal
new port passes all disciplines ;-)
2001-01-16 23:57:24 +01:00
|
|
|
#
|
|
|
|
# now NOPORTDOCS dependend stuff
|
|
|
|
#
|
2000-09-11 21:06:16 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> installing PORTDOC stuff ..."
|
2007-06-03 07:02:53 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/japanese
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/japanese/doc/* \
|
|
|
|
${DOCSDIR}/${GS_VERSION}/japanese
|
|
|
|
# for HP2200 driver
|
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/chp2200
|
|
|
|
.for file in AUTHORS INSTALL
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/chp2200/${file} \
|
|
|
|
${DOCSDIR}/${GS_VERSION}/chp2200
|
2005-06-06 17:00:37 +02:00
|
|
|
.endfor
|
2007-06-03 07:02:53 +02:00
|
|
|
# contributed UPP driver
|
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/epson740
|
|
|
|
.for file in README upp-HowTo-to-be
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/epson740/${file} \
|
|
|
|
${DOCSDIR}/${GS_VERSION}/epson740
|
2002-04-03 04:59:13 +02:00
|
|
|
.endfor
|
2007-06-03 07:02:53 +02:00
|
|
|
# for LXM3200 driver
|
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/lxm3200-tweaked
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/lxm3200-tweaked/* \
|
|
|
|
${DOCSDIR}/${GS_VERSION}/lxm3200-tweaked
|
|
|
|
# for MD2K driver
|
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/md2k_md5k
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/md2k_md5k/* \
|
|
|
|
${DOCSDIR}/${GS_VERSION}/md2k_md5k
|
|
|
|
# for PCL3 driver
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> installing PCL3 docs ..."
|
2007-06-03 07:02:53 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/pcl3
|
|
|
|
.for i in NEWS doc/gs-pcl3.html doc/how-to-report.txt doc/pcl3opts.html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/pcl3/${i} \
|
|
|
|
${DOCSDIR}/${GS_VERSION}/pcl3
|
2005-06-10 19:10:07 +02:00
|
|
|
.endfor
|
2002-04-03 04:59:13 +02:00
|
|
|
# for EPAG driver
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} ">>> installing EPAG docs ..."
|
2003-01-03 20:37:31 +01:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${EPAG}
|
2002-04-03 04:59:13 +02:00
|
|
|
.for i in ert.txt gdevepag.txt ChangeLog
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${EPAG_NAME}/${i} \
|
2003-01-03 20:37:31 +01:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${EPAG}
|
2002-04-03 04:59:13 +02:00
|
|
|
.endfor
|
|
|
|
.for i in psprint gsepagif.sh
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${EPAG_NAME}/${i} \
|
2003-01-03 20:37:31 +01:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${EPAG}
|
2002-04-03 04:59:13 +02:00
|
|
|
.endfor
|
2000-04-20 19:31:44 +02:00
|
|
|
.endif
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} "> post-installation tasks completed."
|
|
|
|
${ECHO_MSG}
|
|
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
${ECHO_MSG}
|
1997-06-11 08:20:47 +02:00
|
|
|
|
2008-03-01 12:07:52 +01:00
|
|
|
.if defined(WITH_FT_BRIDGE)
|
2008-03-04 11:49:34 +01:00
|
|
|
${ECHO_MSG} " *** Configure FAPIfontmap and FAPIcidfmap accordingly"
|
|
|
|
${ECHO_MSG} " *** in ${DATADIR}/${GS_VERSION}/lib"
|
|
|
|
${ECHO_MSG} " *** to use FreeType fonts."
|
|
|
|
${ECHO_MSG}
|
2008-03-01 12:07:52 +01:00
|
|
|
.endif
|
|
|
|
|
2003-06-08 04:38:06 +02:00
|
|
|
.include <bsd.port.post.mk>
|