ports/163291: [PATCH] print/ghostscript9: Automatically disable X11 option when WITHOUT_X11 is set
Greg Larkin
glarkin at FreeBSD.org
Wed Dec 14 18:50:10 UTC 2011
>Number: 163291
>Category: ports
>Synopsis: [PATCH] print/ghostscript9: Automatically disable X11 option when WITHOUT_X11 is set
>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 Dec 14 18:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Greg Larkin
>Release: FreeBSD 8.2-RELEASE amd64
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD amd64_82.localdomain 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
>Description:
The X11 option is defaulted to "on", even when building the -nox11 version
of the port. Added a block of code to detect WITHOUT_X11 option and
automatically disable the X11 option.
Port maintainer (doceng at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
cd /usr/ports/print/ghostscript9-nox11 && make config
>Fix:
--- ghostscript9-nox11-9.02_5.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/print/ghostscript9/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 23 Sep 2011 22:25:00 -0000 1.6
+++ Makefile 14 Dec 2011 18:46:34 -0000
@@ -7,7 +7,7 @@
PORTNAME= ghostscript9
PORTVERSION= 9.02
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= print
MASTER_SITES= http://ghostscript.com/releases/:gs_srcs \
SF/ghostscript/files/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
@@ -74,11 +74,19 @@
PKGMESSAGE= ${WRKDIR}/pkg-message
DATADIR= ${PREFIX}/share/${PORTNAME:S,9$,,}
+.if defined(WITHOUT_X11)
+OPTIONS= A4SIZE "Set A4 (not Letter) as a default paper size" off \
+ CUPS "Enable CUPS support" on \
+ FONTCONFIG "fontconfig support" on \
+ GTK "GTK frontend" off \
+ X11 "X11 support" off
+.else
OPTIONS= A4SIZE "Set A4 (not Letter) as a default paper size" off \
CUPS "Enable CUPS support" on \
FONTCONFIG "fontconfig support" on \
GTK "GTK frontend" off \
X11 "X11 support" on
+.endif
MAN1= dvipdf.1 font2c.1 gs.1 gslp.1 gsnd.1 \
pdf2dsc.1 pdf2ps.1 pdfopt.1 pf2afm.1 pfbtopfa.1 printafm.1 \
--- ghostscript9-nox11-9.02_5.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list