pkgsrc/print/ghostscript-gnu/Makefile.common
jlam b4c9b60d9e Initial import of ghostscript-gnu-7.05.
Ghostscript is the well-known PostScript interpreter which is available for
all common and most esoteric platforms and supports many different printers
and some displays.

This package contains GNU Ghostscript, which is released under the terms
of the GNU Public License.  This package also doesn't support all of the
printers in the print/ghostscript{,-nox11} packages, but does support a
wider range of HP inkjet printers through the print/hpijs package, and
supports the GIMP print inkjet printer drivers through the
print/gimp-print-ijs package.
2002-09-13 05:43:26 +00:00

80 lines
2.2 KiB
Makefile

# $NetBSD: Makefile.common,v 1.1.1.1 2002/09/13 05:43:26 jlam Exp $
DISTNAME= ghostscript-${GS_VERS}
GS_VERS= 7.05
CATEGORIES= print
MASTER_SITES+= ${MASTER_SITE_SOURCEFORGE:=ghostscript/} \
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs${GS_VERS:S/.//}/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://www.cs.wisc.edu/~ghost/index.html
CONFLICTS+= ghostscript{,-nox11}-[0-9]*
CONFLICTS+= ghostscript-gnu{,-nox11}-[0-9]*
DEPENDS+= ghostscript-fonts-6.0:../../fonts/ghostscript-fonts
USE_BUILDLINK2= # defined
USE_GMAKE= # defined
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --with-ijs
DIST_SUBDIR= ghostscript
GS_SRCS= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= ${GS_SRCS}
EXTRACT_ONLY= ${GS_SRCS}
# Adobe's JPEG implementation in their PDF/PS documents is non-standard,
# so we can't use an already installed libjpeg.so.
#
JPEG_SRCS= jpegsrc.v6b.tar.gz
JPEG_WRKSRC= ${WRKDIR}/jpeg-6b
SITES_${JPEG_SRCS}= ftp://ftp.uu.net/graphics/jpeg/
DISTFILES+= ${JPEG_SRCS}
EXTRACT_ONLY+= ${JPEG_SRCS}
DISTINFO_FILE= ${.CURDIR}/../../print/ghostscript-gnu/distinfo
FILESDIR= ${.CURDIR}/../../print/ghostscript-gnu/files
PATCHDIR= ${.CURDIR}/../../print/ghostscript-gnu/patches
PLIST_SRC= ${.CURDIR}/../../print/ghostscript-gnu/PLIST
.include "../../mk/bsd.prefs.mk"
.if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4")
CFLAGS+= -DA4
.endif
CFLAGS+= -DHAVE_MKSTEMP=1
MAKE_FLAGS+= XCFLAGS="${CFLAGS}"
MAKE_FLAGS+= XLDFLAGS="${LDFLAGS}"
.if ${OPSYS} == "SunOS"
LDFLAGS+= -L${ZOULARISBASE}/lib -Wl,-R${ZOULARISBASE}/lib
.endif
REPLACE_PERL= lib/fixmswrd.pl
GSDATADIR= ${PREFIX}/share/ghostscript/${GS_VERS}
DOCDIR= ${PREFIX}/share/doc/ghostscript
HTMLDIR= ${PREFIX}/share/doc/html/ghostscript
LIBDIR= ${GSDATADIR}/lib
PLIST_SUBST+= GS_VERS=${GS_VERS}
post-extract:
${MKDIR} ${WRKSRC}/bin
${MKDIR} ${WRKSRC}/obj
${RM} -f ${WRKSRC}/jpeg
${LN} -s ${JPEG_WRKSRC} ${WRKSRC}/jpeg
# Reinstall the gs binary so that it's properly stripped.
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/gs ${PREFIX}/bin/gs
.include "../../graphics/png/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "arm32"
CFLAGS+= -O0
.endif