summaryrefslogtreecommitdiff
path: root/print/cups/options.mk
diff options
context:
space:
mode:
authormarino <marino>2012-10-08 12:47:23 +0000
committermarino <marino>2012-10-08 12:47:23 +0000
commit639d898dc1f10f5f4b5e013deb7747ee2e8843bd (patch)
tree89a6051ef5d9ca6203d27f3ce46739133b641ea6 /print/cups/options.mk
parentf00602387873fb5cb9744732f6be4de284050193 (diff)
downloadpkgsrc-639d898dc1f10f5f4b5e013deb7747ee2e8843bd.tar.gz
print/cups: PR#46984 Remove libusb options from DragonFly, SunOS
The devel/libusb1 package is masked for both DragonFly and SunOS. This cups package set libusb on by default which means cups fails to build with no set options on those two platforms. Add an OPSYS check which prevents libusb from even being offered as an option on DragonFly and SunOS.
Diffstat (limited to 'print/cups/options.mk')
-rw-r--r--print/cups/options.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/print/cups/options.mk b/print/cups/options.mk
index 18058edfc8e..aa73bd0543d 100644
--- a/print/cups/options.mk
+++ b/print/cups/options.mk
@@ -1,12 +1,18 @@
-# $NetBSD: options.mk,v 1.15 2012/09/18 15:17:32 drochner Exp $
+# $NetBSD: options.mk,v 1.16 2012/10/08 12:47:23 marino Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cups
PKG_OPTIONS_REQUIRED_GROUPS= pdftops
PKG_OPTIONS_GROUP.pdftops= ghostscript poppler
-PKG_SUPPORTED_OPTIONS= acl dbus dnssd kerberos libusb pam slp tcpwrappers
-PKG_SUGGESTED_OPTIONS= dbus dnssd kerberos libusb poppler slp
+PKG_SUPPORTED_OPTIONS= acl dbus dnssd kerberos pam slp tcpwrappers
+PKG_SUGGESTED_OPTIONS= dbus dnssd kerberos poppler slp
PKG_OPTIONS_LEGACY_OPTS+= xpdf:poppler gs:ghostscript
+# Neither DragonFly nor SunOS can build libusb1
+.if ${OPSYS} != "DragonFly" && ${OPSYS} != "SunOS"
+PKG_SUPPORTED_OPTIONS+= libusb
+PKG_SUGGESTED_OPTIONS+= libusb
+.endif
+
.include "../../mk/bsd.options.mk"
MESSAGE_SRC= ${PKGDIR}/MESSAGE