ports/134742: [patch] ports/print/ghostscript8: make cups-image optional
Helge Oldach
ports-ghostscript8-may09 at oldach.net
Wed May 20 08:00:11 UTC 2009
>Number: 134742
>Category: ports
>Synopsis: [patch] ports/print/ghostscript8: make cups-image optional
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed May 20 08:00:09 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Helge Oldach
>Release: FreeBSD 6.4-1455 i386
>Organization:
>Environment:
System: FreeBSD localhost 6.4-1455 FreeBSD 6.4-1455 #0: Thu May 7 15:24:21 CEST 2009 toor at localhost:/usr/obj/usr/src/sys/HMO i386
>Description:
cups-image support has been re-established for ghostscript8 recently
with Makefile rev. 1.182.
However, this should be made optional, for those who do not need or use
cups and/or cups-image. This avoids a rather lengthy dependency on CUPS
and re-enables the behaivour that we had until rev. 1.181.
Please see the rather trivial patch below.
>How-To-Repeat:
>Fix:
--- Makefile.ctm 2009-05-18 23:46:34.000000000 +0200
+++ Makefile 2009-05-20 09:05:43.000000000 +0200
@@ -22,8 +22,7 @@
COMMENT= Ghostscript 8.x PostScript interpreter
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
- png.5:${PORTSDIR}/graphics/png \
- cupsimage.2:${PORTSDIR}/print/cups-image
+ png.5:${PORTSDIR}/graphics/png
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME:S,8,,}/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
CONFLICTS= gambc-[0-9]* ghostscript7-[0-9]* ghostscript7-*-[0-9]*
@@ -60,7 +59,8 @@
OPTIONS= A4SIZE "Set A4 (not Letter) as a default paper size" off \
FONTCONFIG "fontconfig support" on \
FT_BRIDGE "FreeType bridge" off \
- X11 "X11 support" on
+ X11 "X11 support" on \
+ CUPS_IMAGE "enable cups-image" on
MAN1= dvipdf.1 font2c.1 gs.1 gslp.1 gsnd.1 \
pdf2dsc.1 pdf2ps.1 pdfopt.1 pf2afm.1 pfbtopfa.1 printafm.1 \
@@ -78,6 +78,12 @@
.include "Makefile.drivers"
.include <bsd.port.pre.mk>
+.if !defined(WITHOUT_CUPS_IMAGE)
+LIB_DEPENDS+= cupsimage.2:${PORTSDIR}/print/cups-image
+.else
+CONFIGURE_ARGS+= --disable-cups
+.endif
+
.for D in ${OPTIONS:MGS_*:S/^GS_//}
.if !defined(WITHOUT_GS_${D})
PLIST_SUB+= GS_${D}=""
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list