mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Add LICENSE.
- Make MAKE_JOBS_SAFE=yes. - Replace OPTIONS with OPTIONSng. Bump PORTREVISION because a package created with Makefile.drivers r1.8 had some inconsistent default values.
This commit is contained in:
parent
0a9c9c747a
commit
8d4602aa3a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299125
@ -5,7 +5,7 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
WITHOUT_X11= yes
|
||||
OPTIONS_UNSET= X11
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../ghostscript8
|
||||
|
||||
|
@ -5,31 +5,33 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ghostscript8
|
||||
PORTNAME= ghostscript
|
||||
PORTVERSION= 8.71
|
||||
PORTREVISION= 9
|
||||
PORTREVISION= 10
|
||||
CATEGORIES= print
|
||||
MASTER_SITES= http://downloads.ghostscript.com/public/:gs_srcs \
|
||||
SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
|
||||
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs${PORTVERSION:S/.//}/:gs_srcs \
|
||||
http://www.humblesoft.com/pub/:epag
|
||||
MASTER_SITE_SUBDIR= ghostscript/:gs_srcs
|
||||
DISTNAME= ${PORTNAME:S,8$,,}-${PORTVERSION}
|
||||
PKGNAMESUFFIX= 8
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:gs_srcs ${EPAG_SRCS}:epag
|
||||
DIST_SUBDIR= ${PORTNAME:S,8$,,}
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
||||
EXTRACT_AFTER_ARGS= | ${TAR} -xpf - ${EXCLUDE_DIRS:S/^/--exclude /}
|
||||
|
||||
MAINTAINER= doceng@FreeBSD.org
|
||||
COMMENT= Ghostscript 8.x PostScript interpreter
|
||||
|
||||
LICENSE= GPLv3
|
||||
|
||||
LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 \
|
||||
jasper:${PORTSDIR}/graphics/jasper \
|
||||
jbig2dec:${PORTSDIR}/graphics/jbig2dec \
|
||||
jpeg:${PORTSDIR}/graphics/jpeg \
|
||||
png15:${PORTSDIR}/graphics/png \
|
||||
tiff:${PORTSDIR}/graphics/tiff
|
||||
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME:S,8,,}/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
|
||||
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
|
||||
|
||||
CONFLICTS_INSTALL= gambc-[0-9]* ghostscript[79]-[0-9]* \
|
||||
ghostscript[79]-*-[0-9]*
|
||||
@ -40,8 +42,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}" \
|
||||
@ -66,14 +68,13 @@ PLIST_SUB= GS_VERSION="${PORTVERSION}" \
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST= DATADIR=${DATADIR} PORTVERSION=${PORTVERSION}
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
DATADIR= ${PREFIX}/share/${PORTNAME:S,8$,,}
|
||||
|
||||
OPTIONS= A4SIZE "Set A4 (not Letter) as a default paper size" off \
|
||||
CUPS "Enable CUPS support" on \
|
||||
FONTCONFIG "fontconfig support" on \
|
||||
FT_BRIDGE "FreeType bridge" off \
|
||||
GTK "GTK frontend" off \
|
||||
X11 "X11 support" on
|
||||
OPTIONS_DEFINE= A4SIZE CAIRO CUPS FONTCONFIG FT_BRIDGE LIBPAPER GTK2 X11
|
||||
OPTIONS_DEFAULT= CAIRO CUPS FONTCONFIG LIBPAPER X11
|
||||
A4SIZE_DESC= Set A4 (not Letter) as the default paper size
|
||||
FONTCONFIG_DESC=Enable fontconfig support
|
||||
FT_BRIDGE_DESC= Enable FreeType Bridge 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 \
|
||||
@ -93,29 +94,39 @@ EXCLUDE_DIRS= 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
|
||||
DEFAULTPAPERSIZE?= letter
|
||||
|
||||
.if ${PORT_OPTIONS:MLIBPAPER}
|
||||
LIB_DEPENDS+= paper:${PORTSDIR}/print/libpaper
|
||||
CONFIGURE_ARGS+= --with-libpaper
|
||||
.if ${DEFAULTPAPERSIZE:L} == a4
|
||||
RUN_DEPENDS+= ${LOCALBASE}/etc/papersize:${PORTSDIR}/print/papersize-default-a4
|
||||
.endif
|
||||
.else
|
||||
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
|
||||
CONFIGURE_ARGS+= --disable-fontconfig
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_FT_BRIDGE)
|
||||
.if ${PORT_OPTIONS:MFT_BRIDGE}
|
||||
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
|
||||
MAKE_ENV+= FT_BRIDGE=1 FT_ROOT="${WRKSRC}/freetype" FT_LIB_EXT=".so"
|
||||
CPPFLAGS+= -I${LOCALBASE}/include/freetype2
|
||||
@ -157,9 +168,9 @@ pre-build-drivers.mak:
|
||||
.for N in ${DEVS_LIST}
|
||||
@${ECHO_CMD} 'DEVICE_${N}=' >> ${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 ${DEVICE_${N}:M${D}.dev}
|
||||
@${ECHO_CMD} 'DEVICE_${N}+= $$(DD)${D}.dev' >> ${WRKSRC}/base/drivers.mak
|
||||
.endfor
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,41 +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 CAIRO 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_CAIRO_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
|
||||
|
||||
@ -51,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
|
||||
|
||||
@ -60,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
|
||||
|
||||
@ -82,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
|
||||
|
||||
@ -97,18 +61,15 @@ LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
|
||||
.endif
|
||||
|
||||
# x11 specific
|
||||
X11_DEVS= x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 x11gray2 \
|
||||
X11_DEVS= x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 x11gray2 \
|
||||
x11gray4 x11mono x11rg16x x11rg32x display
|
||||
.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 +79,7 @@ CONFIGURE_ARGS+=--with-x \
|
||||
--x-includes=${X11BASE}/include \
|
||||
--x-libraries=${X11BASE}/lib
|
||||
CONFLICTS_INSTALL+= ghostscript8-nox11-[0-9]*
|
||||
.if defined(WITH_GTK)
|
||||
.if ${PORT_OPTIONS:MGTK2}
|
||||
USE_GNOME= atk gdkpixbuf2 glib20 gtk20
|
||||
CONFIGURE_ARGS+=--enable-gtk
|
||||
.else
|
||||
@ -135,13 +96,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
|
||||
|
||||
@ -154,7 +112,15 @@ CONFIGURE_ARGS+=--with-libiconv=no
|
||||
.endif
|
||||
|
||||
# cairo specific
|
||||
.if defined(WITH_GS_cairo)
|
||||
.for D in cairo
|
||||
.if ${PORT_OPTIONS:MCAIRO} && ${PORT_OPTIONS:MGS_${D}}
|
||||
_CAIRO_DEVS+= ${D}
|
||||
.else
|
||||
PORT_OPTIONS:= ${PORT_OPTIONS:NGS_${D}}
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
.if defined(_CAIRO_DEVS)
|
||||
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
|
||||
CONFIGURE_ARGS+= --enable-cairo
|
||||
.else
|
||||
|
20
print/ghostscript8/files/patch-base-ijs.mak
Normal file
20
print/ghostscript8/files/patch-base-ijs.mak
Normal file
@ -0,0 +1,20 @@
|
||||
--- base/ijs.mak.orig 2012-06-13 02:06:36.000000000 +0900
|
||||
+++ base/ijs.mak 2012-06-13 02:07:44.000000000 +0900
|
||||
@@ -41,7 +41,7 @@
|
||||
ijs.clean : ijs.config-clean ijs.clean-not-config-clean
|
||||
|
||||
### WRONG. MUST DELETE OBJ AND GEN FILES SELECTIVELY.
|
||||
-ijs.clean-not-config-clean :
|
||||
+ijs.clean-not-config-clean : $(ECHOGS_XE)
|
||||
# echo $(IJSSRC) $(IJSGEN) $(IJSOBJ) $(IJSO_)
|
||||
$(EXP)$(ECHOGS_XE) $(IJSSRC) $(IJSGEN) $(IJSOBJ) $(IJSO_)
|
||||
$(RM_) $(IJSOBJ)*.$(OBJ)
|
||||
@@ -61,7 +61,7 @@
|
||||
ijs_client_h=$(IJSSRC)$(D)ijs_client.h
|
||||
ijs_server_h=$(IJSSRC)$(D)ijs_server.h
|
||||
|
||||
-$(IJSOBJ)ijs.$(OBJ) : $(IJSSRC)ijs.c $(IJSDEP) $(ijs_h)
|
||||
+$(IJSOBJ)ijs.$(OBJ) : $(ECHOGS_XE) $(IJSSRC)ijs.c $(IJSDEP) $(ijs_h)
|
||||
# echo $(IJS_CCFLAGS)
|
||||
$(EXP)$(ECHOGS_XE) $(IJS_CCFLAGS)
|
||||
$(IJS_CC) $(IJSO_)ijs.$(OBJ) $(C_) $(IJSSRC)ijs.c
|
11
print/ghostscript8/files/patch-contrib-contrib.mak
Normal file
11
print/ghostscript8/files/patch-contrib-contrib.mak
Normal file
@ -0,0 +1,11 @@
|
||||
--- contrib/contrib.mak.orig 2012-06-13 01:22:12.000000000 +0900
|
||||
+++ contrib/contrib.mak 2012-06-13 01:22:40.000000000 +0900
|
||||
@@ -956,7 +956,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 New Issue
Block a user