summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-10-08 12:47:23 +0000
committermarino <marino@pkgsrc.org>2012-10-08 12:47:23 +0000
commit553a8f6c0c03cc017e8c43eb04216eafc90de6e5 (patch)
tree89a6051ef5d9ca6203d27f3ce46739133b641ea6 /print
parentd3f77a97e7a4a8c51e7dc16665624faa6cacf8c3 (diff)
downloadpkgsrc-553a8f6c0c03cc017e8c43eb04216eafc90de6e5.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')
-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