ports/97406: [PATCH] bsd.port.mk: ghostscript port detection refactoring
Arseny Nasokin
tarc at tarc.po.cs.msu.su
Wed May 17 17:20:46 UTC 2006
>Number: 97406
>Category: ports
>Synopsis: [PATCH] bsd.port.mk: ghostscript port detection refactoring
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed May 17 17:20:22 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Arseny Nasokin
>Release: FreeBSD-7.0
>Organization:
CMC MSU
>Environment:
$FreeBSD: ports/Mk/bsd.port.mk,v 1.532 2006/05/02 10:09:23 netchild Exp $
>Description:
detectng, which ghostscrpt port to use, is not efficient.
>How-To-Repeat:
see this make file.
>Fix:
--- bsd.port.mk.orig Wed May 17 21:00:14 2006
+++ bsd.port.mk Wed May 17 21:01:13 2006
@@ -1843,23 +1843,19 @@
# Set the default for the installation of Postscript(TM)-
# compatible functionality.
-.if !defined(WITHOUT_X11)
+.if !defined(GHOSTSCRIPT_PORT)
.if defined(WITH_GHOSTSCRIPT_AFPL)
-GHOSTSCRIPT_PORT?= print/ghostscript-afpl
+GHOSTSCRIPT_PORT= print/ghostscript-afpl
.elif defined(WITH_GHOSTSCRIPT_GPL)
-GHOSTSCRIPT_PORT?= print/ghostscript-gpl
+GHOSTSCRIPT_PORT= print/ghostscript-gpl
.else
-GHOSTSCRIPT_PORT?= print/ghostscript-gnu
-.endif
-.else
-.if defined(WITH_GHOSTSCRIPT_AFPL)
-GHOSTSCRIPT_PORT?= print/ghostscript-afpl-nox11
-.elif defined(WITH_GHOSTSCRIPT_GPL)
-GHOSTSCRIPT_PORT?= print/ghostscript-gpl-nox11
-.else
-GHOSTSCRIPT_PORT?= print/ghostscript-gnu-nox11
+GHOSTSCRIPT_PORT= print/ghostscript-gnu
.endif
+
+.if !defined(WITHOUT_X11)
+GHOSTSCRIPT_PORT:= ${GHOSTSCRIPT_PORT}-nox11
.endif
+.endif #!defined GHOSTSCRIPT_PORT
# Set up the ghostscript dependencies.
.if defined(USE_GHOSTSCRIPT) || defined(USE_GHOSTSCRIPT_BUILD)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list