summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2010-05-25 21:30:43 +0000
committerHiroki Sato <hrs@FreeBSD.org>2010-05-25 21:30:43 +0000
commit815b2aad6c80b3d2120d8359b05ea0fc8cfc786a (patch)
tree94ea1a6fe02d56538c2ac83d6b69af86bbe0858c /print
parent- add 1 missing WITH_APACHEXX option to CHANGES thats now dead (diff)
Disable the cups driver when either WITHOUT_CUPS=true or
WITHOUT_GS_cups=true. Spotted by: Scott Allendorf
Notes
Notes: svn path=/head/; revision=255087
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript8/Makefile7
-rw-r--r--print/ghostscript8/files/Makefile.drivers_post19
2 files changed, 19 insertions, 7 deletions
diff --git a/print/ghostscript8/Makefile b/print/ghostscript8/Makefile
index a17b1de68b62..58424a2538fd 100644
--- a/print/ghostscript8/Makefile
+++ b/print/ghostscript8/Makefile
@@ -106,13 +106,6 @@ CONFIGURE_ARGS+= --enable-fontconfig
CONFIGURE_ARGS+= --disable-fontconfig
.endif
-.if !defined(WITHOUT_CUPS)
-LIB_DEPENDS+= cupsimage.2:${PORTSDIR}/print/cups-image
-CONFIGURE_ARGS+= --enable-cups
-.else
-CONFIGURE_ARGS+= --disable-cups
-.endif
-
.if !defined(WITHOUT_FT_BRIDGE)
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
MAKE_ENV+= FT_BRIDGE=1 FT_ROOT="${WRKSRC}/freetype" FT_LIB_EXT=".so"
diff --git a/print/ghostscript8/files/Makefile.drivers_post b/print/ghostscript8/files/Makefile.drivers_post
index b6f45172e122..20634c5c43d5 100644
--- a/print/ghostscript8/files/Makefile.drivers_post
+++ b/print/ghostscript8/files/Makefile.drivers_post
@@ -54,6 +54,25 @@ post-extract: post-extract-epag
.include "${FILESDIR}/Makefile.pcl3"
.endif
+# cups specific
+CUPS_DEVS= cups
+.undef _CUPS_DEVS
+
+.for D in ${CUPS_DEVS}
+.if defined(WITHOUT_CUPS)
+.undef WITH_GS_${D}
+.elif defined(WITH_GS_${D})
+_CUPS_DEVS+= ${D}
+.endif
+.endfor
+
+.if defined(_CUPS_DEVS)
+LIB_DEPENDS+= cupsimage.2:${PORTSDIR}/print/cups-image
+CONFIGURE_ARGS+= --enable-cups
+.else
+CONFIGURE_ARGS+= --disable-cups
+.endif
+
# vgalib specific
VGA_DEVS= lvga256 vgalib
.undef _VGA_DEVS