- Add LICENSE.
- Make MAKE_JOBS_SAFE=yes. - Replace OPTIONS with OPTIONSng. Bump PORTREVISION because a package created with Makefile.drivers r1.3 had some inconsistent default values.
This commit is contained in:
parent
a6e1119138
commit
992e7db4b6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299107
5 changed files with 953 additions and 391 deletions
|
@ -5,7 +5,7 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
|
||||
WITHOUT_X11= yes
|
||||
OPTIONS_UNSET= X11
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../ghostscript9
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= ghostscript9
|
||||
PORTVERSION= 9.05
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= print
|
||||
MASTER_SITES= http://downloads.ghostscript.com/public/:gs_srcs \
|
||||
SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
|
||||
|
@ -23,6 +23,8 @@ EXTRACT_AFTER_ARGS= | ${TAR} -xpf - ${EXCLUDE_DIRS:S/^/--exclude /}
|
|||
MAINTAINER= doceng@FreeBSD.org
|
||||
COMMENT= Ghostscript 9.x PostScript interpreter
|
||||
|
||||
LICENSE= GPLv3
|
||||
|
||||
LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 \
|
||||
idn:${PORTSDIR}/dns/libidn \
|
||||
jbig2dec:${PORTSDIR}/graphics/jbig2dec \
|
||||
|
@ -44,8 +46,8 @@ WANT_GNOME= yes
|
|||
USE_LDCONFIG= yes
|
||||
USE_AUTOTOOLS= autoconf
|
||||
GNU_CONFIGURE= yes
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
MAKE_JOBS_SAFE= yes
|
||||
MAKE_ENV= CFLAGS_STANDARD="${CFLAGS}" \
|
||||
XCFLAGS="${XCFLAGS}" XLDFLAGS="${XLDFLAGS}" \
|
||||
EXTRALIBS="${EXTRALIBS}" \
|
||||
|
@ -75,12 +77,11 @@ SUB_LIST= DATADIR=${DATADIR} PORTVERSION=${PORTVERSION}
|
|||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
DATADIR= ${PREFIX}/share/${PORTNAME:S,9$,,}
|
||||
|
||||
OPTIONS= A4SIZE "Set A4 (not Letter) as the default paper size" off \
|
||||
CUPS "Enable CUPS support" on \
|
||||
FONTCONFIG "fontconfig support" on \
|
||||
LIBPAPER "libpaper support" on \
|
||||
GTK "GTK frontend" off \
|
||||
X11 "X11 support" on
|
||||
OPTIONS_DEFINE= A4SIZE CUPS FONTCONFIG ICONV LIBPAPER GTK2 X11
|
||||
OPTIONS_DEFAULT= CUPS FONTCONFIG ICONV LIBPAPER X11
|
||||
A4SIZE_DESC= Set A4 (not Letter) as the default paper size
|
||||
FONTCONFIG_DESC=Enable fontconfig support
|
||||
NO_OPTIONS_SORT=yes
|
||||
|
||||
MAN1= dvipdf.1 font2c.1 gs.1 gslp.1 gsnd.1 \
|
||||
pdf2dsc.1 pdf2ps.1 pdfopt.1 pf2afm.1 pfbtopfa.1 printafm.1 \
|
||||
|
@ -101,24 +102,22 @@ EXCLUDE_DIRS= freetype jbig2dec jpeg expat jasper libpng tiff zlib
|
|||
.include <bsd.port.pre.mk>
|
||||
.include "${FILESDIR}/Makefile.drivers_post"
|
||||
|
||||
.for D in ${OPTIONS:MGS_*:S/^GS_//}
|
||||
.if !defined(WITHOUT_GS_${D})
|
||||
.for D in ${OPTIONS_DEFINE:MGS_*:S/^GS_//}
|
||||
.if ${PORT_OPTIONS:MGS_${D}}
|
||||
PLIST_SUB+= GS_${D}=""
|
||||
.else
|
||||
PLIST_SUB+= GS_${D}="@comment "
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
.if !defined(WITH_LETTERSIZE)
|
||||
.if defined(A4) || defined(WITH_A4SIZE)
|
||||
.if ${PORT_OPTIONS:MA4SIZE}
|
||||
DEFAULTPAPERSIZE?= a4
|
||||
XCFLAGS+= -DA4
|
||||
MSG_PAPERSIZE= "NOTE: Default paper size will be A4."
|
||||
.endif
|
||||
.endif
|
||||
DEFAULTPAPERSIZE?= letter
|
||||
|
||||
.if !defined(WITHOUT_LIBPAPER)
|
||||
.if ${PORT_OPTIONS:MLIBPAPER}
|
||||
LIB_DEPENDS+= paper:${PORTSDIR}/print/libpaper
|
||||
CONFIGURE_ARGS+= --with-libpaper
|
||||
.if ${DEFAULTPAPERSIZE:L} == a4
|
||||
|
@ -128,7 +127,7 @@ RUN_DEPENDS+= ${LOCALBASE}/etc/papersize:${PORTSDIR}/print/papersize-default-a4
|
|||
CONFIGURE_ARGS+= --without-libpaper
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_FONTCONFIG)
|
||||
.if ${PORT_OPTIONS:MFONTCONFIG}
|
||||
LIB_DEPENDS+= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
|
||||
CONFIGURE_ARGS+= --enable-fontconfig
|
||||
.else
|
||||
|
@ -173,9 +172,9 @@ pre-build-drivers.mak:
|
|||
.for N in ${DEVS_LIST}
|
||||
@${ECHO_CMD} '${N:S/^/DEVICE_/:S/^DEVICE_DISPLAY_DEV/DISPLAY_DEV/}=' >> ${WRKSRC}/base/drivers.mak
|
||||
.endfor
|
||||
.for D in ${OPTIONS:MGS_*:S/^GS_//}
|
||||
.for D in ${OPTIONS_DEFINE:MGS_*:S/^GS_//}
|
||||
.for N in ${DEVS_LIST}
|
||||
.if defined(WITH_GS_${D})
|
||||
.if ${PORT_OPTIONS:MGS_${D}}
|
||||
.for X in ${${N:S/^/DEVICE_/:S/^DEVICE_DISPLAY_DEV/DISPLAY_DEV/}:M${D}.dev}
|
||||
@${ECHO_CMD} '${N:S/^/DEVICE_/:S/^DEVICE_DISPLAY_DEV/DISPLAY_DEV/}+= $$(DD)${D}.dev' >> ${WRKSRC}/base/drivers.mak
|
||||
.endfor
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,40 +1,13 @@
|
|||
# $FreeBSD$
|
||||
# pre/postprocessing driver variables
|
||||
|
||||
# define defaults which depend on WITHOUT_*/WITH_*
|
||||
.for D in X11 SVGALIB ICONV
|
||||
.if !defined(WITHOUT_${D})
|
||||
OPTIONS_${D}_DEFAULT= on
|
||||
.else
|
||||
OPTIONS_${D}_DEFAULT= off
|
||||
.endif
|
||||
.endfor
|
||||
.for D in SVGALIB CUPS GTK
|
||||
.if !defined(WITH_${D})
|
||||
OPTIONS_${D}_DEFAULT= off
|
||||
.else
|
||||
OPTIONS_${D}_DEFAULT= on
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
# makesum needs lowest common multiple
|
||||
.if make(makesum)
|
||||
OPTIONS_X11_DEFAULT= on
|
||||
OPTIONS_GTK_DEFAULT= on
|
||||
OPTIONS_SVGALIB_DEFAULT=on
|
||||
OPTIONS_ICONV_DEFAULT= on
|
||||
OPTIONS_CUPS_DEFAULT= on
|
||||
OPTIONS_GS_DEFAULT_ON= on
|
||||
OPTIONS_GS_DEFAULT_OFF= on
|
||||
.endif
|
||||
|
||||
# dmprt specific
|
||||
.if !defined(WITHOUT_GS_dmprt)
|
||||
.if ${PORT_OPTIONS:MGS_dmprt}
|
||||
.include "${FILESDIR}/Makefile.dmprt"
|
||||
.endif
|
||||
|
||||
# epag specific
|
||||
.if !defined(WITHOUT_GS_epag)
|
||||
.if ${PORT_OPTIONS:MGS_epag}
|
||||
.include "${FILESDIR}/Makefile.epag"
|
||||
.endif
|
||||
|
||||
|
@ -50,7 +23,7 @@ post-extract-epag:
|
|||
post-extract: post-extract-epag
|
||||
|
||||
# pcl3 specific
|
||||
.if !defined(WITHOUT_GS_pcl3)
|
||||
.if ${PORT_OPTIONS:MGS_pcl3}
|
||||
.include "${FILESDIR}/Makefile.pcl3"
|
||||
.endif
|
||||
|
||||
|
@ -59,13 +32,10 @@ CUPS_DEVS= cups
|
|||
.undef _CUPS_DEVS
|
||||
|
||||
.for D in ${CUPS_DEVS}
|
||||
.if defined(WITHOUT_CUPS) || defined(WITHOUT_GS_${D})
|
||||
.undef WITH_GS_${D}
|
||||
.elif defined(WITH_GS_${D})
|
||||
.if ${PORT_OPTIONS:MCUPS} && ${PORT_OPTIONS:MGS_${D}}
|
||||
_CUPS_DEVS+= ${D}
|
||||
.elif ${OPTIONS_CUPS_DEFAULT} == "on"
|
||||
_CUPS_DEVS+= ${D}
|
||||
WITH_GS_${D}=yes
|
||||
.else
|
||||
PORT_OPTIONS:= ${PORT_OPTIONS:NGS_${D}}
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
|
@ -81,13 +51,8 @@ VGA_DEVS= lvga256 vgalib
|
|||
.undef _VGA_DEVS
|
||||
|
||||
.for D in ${VGA_DEVS}
|
||||
.if defined(WITHOUT_SVGALIB) || defined(WITHOUT_GS_${D})
|
||||
.undef WITH_GS_${D}
|
||||
.elif defined(WITH_GS_${D})
|
||||
.if ${PORT_OPTIONS:MGS_${D}}
|
||||
_VGA_DEVS+= ${D}
|
||||
.elif ${OPTIONS_SVGALIB_DEFAULT} == "on"
|
||||
_VGA_DEVS+= ${D}
|
||||
WITH_GS_${D}=yes
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
|
@ -101,13 +66,10 @@ X11_DEVS= x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 x11gray2 x11gray4 \
|
|||
.undef _X11_DEVS
|
||||
|
||||
.for D in ${X11_DEVS}
|
||||
.if defined(WITHOUT_X11) || defined(WITHOUT_GS_${D})
|
||||
. undef WITH_GS_${D}
|
||||
.elif defined(WITH_GS_${D})
|
||||
.if ${PORT_OPTIONS:MX11} && ${PORT_OPTIONS:MGS_${D}}
|
||||
_X11_DEVS+= ${D}
|
||||
.elif ${OPTIONS_X11_DEFAULT} == "on"
|
||||
_X11_DEVS+= ${D}
|
||||
WITH_GS_${D}=yes
|
||||
.else
|
||||
PORT_OPTIONS:= ${PORT_OPTIONS:NGS_${D}}
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
|
@ -118,7 +80,7 @@ CONFIGURE_ARGS+=--with-x \
|
|||
--x-includes=${X11BASE}/include \
|
||||
--x-libraries=${X11BASE}/lib
|
||||
CONFLICTS_INSTALL+= ghostscript9-nox11-[0-9]*
|
||||
.if defined(WITH_GTK)
|
||||
.if ${PORT_OPTIONS:MGTK2}
|
||||
USE_GNOME= atk gdkpixbuf2 glib20 gtk20
|
||||
CONFIGURE_ARGS+=--enable-gtk
|
||||
.else
|
||||
|
@ -136,13 +98,10 @@ ICONV_DEVS= oprp opvp
|
|||
.undef _ICONV_DEVS
|
||||
|
||||
.for D in ${ICONV_DEVS}
|
||||
.if defined(WITHOUT_ICONV) || defined(WITHOUT_GS_${D})
|
||||
.undef WITH_GS_${D}
|
||||
.elif defined(WITH_GS_${D})
|
||||
.if ${PORT_OPTIONS:MICONV} && ${PORT_OPTIONS:MGS_${D}}
|
||||
_ICONV_DEVS+= ${D}
|
||||
.elif ${OPTIONS_ICONV_DEFAULT} == "on"
|
||||
_ICONV_DEVS+= ${D}
|
||||
WITH_GS_${D}=yes
|
||||
.else
|
||||
PORT_OPTIONS:= ${PORT_OPTIONS:NGS_${D}}
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
|
|
11
print/ghostscript9/files/patch-contrib-contrib.mak
Normal file
11
print/ghostscript9/files/patch-contrib-contrib.mak
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- contrib/contrib.mak.orig 2012-04-08 01:05:18.000000000 +0900
|
||||
+++ contrib/contrib.mak 2012-04-08 01:05:44.000000000 +0900
|
||||
@@ -943,7 +943,7 @@
|
||||
$(GLOBJ)gdevdmpr.$(OBJ) : $(JAPSRC)gdevdmpr.c $(JAPSRC)dviprlib.h $(PDEVH)
|
||||
$(GLCC) $(O_)$@ $(C_) $(JAPSRC)gdevdmpr.c
|
||||
|
||||
-$(GLOBJ)dviprlib.$(OBJ) : $(JAPSRC)dviprlib.c $(JAPSRC)dviprlib.h
|
||||
+$(GLOBJ)dviprlib.$(OBJ) : $(arch_h) $(stdio__h) $(JAPSRC)dviprlib.c $(JAPSRC)dviprlib.h
|
||||
$(GLCC) $(O_)$@ $(C_) $(JAPSRC)dviprlib.c
|
||||
|
||||
extra-dmprt-install:
|
Loading…
Reference in a new issue