ca70938428
which are the full option names used to set rpath directives for the linker and the compiler, respectively. In places were we are invoking the linker, use "${LINKER_RPATH_FLAG} <path>", where the space is inserted in case the flag is a word, e.g. -rpath. The default values of *_RPATH_FLAG are set by the compiler/*.mk files, depending on the compiler that you use. They may be overridden on a ${OPSYS}-specific basis by setting _OPSYS_LINKER_RPATH_FLAG and _OPSYS_COMPILER_RPATH_FLAG, respectively. Garbage-collect _OPSYS_RPATH_NAME and _COMPILER_LD_FLAG.
87 lines
2.5 KiB
Text
87 lines
2.5 KiB
Text
# $NetBSD: Makefile.common,v 1.15 2004/08/27 06:29:10 jlam Exp $
|
|
|
|
DISTNAME= ghostscript-${GS_VERS}
|
|
GS_VERS= 7.07
|
|
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= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://www.cs.wisc.edu/~ghost/index.html
|
|
|
|
CONFLICTS+= ghostscript{,-nox11}-[0-9]*
|
|
CONFLICTS+= ghostscript-esp{,-nox11}-[0-9]*
|
|
CONFLICTS+= ghostscript-gnu{,-nox11,-x11}-[0-9]*
|
|
|
|
DEPENDS+= ghostscript-fonts-6.0:../../fonts/ghostscript-fonts
|
|
|
|
USE_BUILDLINK3= # defined
|
|
USE_GNU_TOOLS+= make
|
|
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 ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
|
GCC_REQD+= 3.0
|
|
.endif
|
|
|
|
.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 ${COMPILER_RPATH_FLAG}${ZOULARISBASE}/lib
|
|
.endif
|
|
|
|
REPLACE_PERL= lib/fixmswrd.pl
|
|
|
|
GS_RESOURCEDIR= ${PREFIX}/share/ghostscript/Resource
|
|
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
|
|
cd ${WRKSRC}/lib; for file in gs_res.ps; do \
|
|
${SED} -e "s|/Resource/|${GS_RESOURCEDIR}/|g" \
|
|
$${file} > $${file}.fixed; \
|
|
${MV} -f $${file}.fixed $${file}; \
|
|
done
|
|
|
|
# Reinstall the gs binary so that it's properly stripped.
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/gs ${PREFIX}/bin/gs
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|