diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2010-05-25 21:30:43 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2010-05-25 21:30:43 +0000 |
commit | 815b2aad6c80b3d2120d8359b05ea0fc8cfc786a (patch) | |
tree | 94ea1a6fe02d56538c2ac83d6b69af86bbe0858c /print/ghostscript8/files | |
parent | 77484aa1f98a91b721b21bf1588a3ddf833fd1bc (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/ghostscript8/files')
-rw-r--r-- | print/ghostscript8/files/Makefile.drivers_post | 19 |
1 files changed, 19 insertions, 0 deletions
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 |