diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2016-03-18 09:48:04 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2016-03-18 09:48:04 +0000 |
commit | 0b4e0f28c95dc0ced0c58191622066689d6910a8 (patch) | |
tree | f6bc056a9ee8c04529c699602f3cc4cc17c515de /print/cups | |
parent | Update to 5.9.0 (diff) |
Support systems with WITHOUT_USB in /etc/src.conf.
Reported by: dweimer@dweimer.net
Notes
Notes:
svn path=/head/; revision=411335
Diffstat (limited to 'print/cups')
-rw-r--r-- | print/cups/Makefile | 6 | ||||
-rw-r--r-- | print/cups/pkg-plist | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/print/cups/Makefile b/print/cups/Makefile index 7fbd154aa418..e94eba0e59a7 100644 --- a/print/cups/Makefile +++ b/print/cups/Makefile @@ -78,6 +78,12 @@ PLIST_SUB+= OVERWRITE="" PLIST_SUB+= OVERWRITE="@comment " .endif +.if exists(/usr/lib/libusb.so) +PLIST_SUB+= USB="" +.else +PLIST_SUB+= USB="@comment " +.endif + .include <bsd.port.pre.mk> .if empty(ICONV_LIB) diff --git a/print/cups/pkg-plist b/print/cups/pkg-plist index 6d1e5a9cb323..e36080a3e79b 100644 --- a/print/cups/pkg-plist +++ b/print/cups/pkg-plist @@ -68,7 +68,7 @@ libexec/cups/backend/ipps libexec/cups/backend/lpd libexec/cups/backend/snmp libexec/cups/backend/socket -libexec/cups/backend/usb +%%USB%%libexec/cups/backend/usb %%AVAHI%%libexec/cups/backend/dnssd libexec/cups/cgi-bin/admin.cgi libexec/cups/cgi-bin/classes.cgi @@ -561,7 +561,7 @@ sbin/reject %%DATADIR%%/templates/test-page.tmpl %%DATADIR%%/templates/trailer.tmpl %%DATADIR%%/templates/users.tmpl -%%DATADIR%%/usb/org.cups.usb-quirks +%%USB%%%%DATADIR%%/usb/org.cups.usb-quirks %%DOCSDIR%%/apple-touch-icon.png %%DOCSDIR%%/cups-printable.css %%DOCSDIR%%/cups.css |