aboutsummaryrefslogtreecommitdiffstats
path: root/comms/usbmuxd
diff options
context:
space:
mode:
authoravilla <avilla@FreeBSD.org>2011-03-02 10:56:31 +0800
committeravilla <avilla@FreeBSD.org>2011-03-02 10:56:31 +0800
commitdcb5fa8746f242ba8370d9141dde916ec3d7ba39 (patch)
tree610deae3bb67a00406308c0769c5467f741814f1 /comms/usbmuxd
parentb6f8e3b68dff8f0c4542ac11de75e6a333711620 (diff)
downloadfreebsd-ports-gnome-dcb5fa8746f242ba8370d9141dde916ec3d7ba39.tar.gz
freebsd-ports-gnome-dcb5fa8746f242ba8370d9141dde916ec3d7ba39.tar.zst
freebsd-ports-gnome-dcb5fa8746f242ba8370d9141dde916ec3d7ba39.zip
- Mark BROKEN when base libusb is older than 1.0.4.
Reported by: pointyhat via pav
Diffstat (limited to 'comms/usbmuxd')
-rw-r--r--comms/usbmuxd/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/comms/usbmuxd/Makefile b/comms/usbmuxd/Makefile
index 5d8278cd3049..a7515d560136 100644
--- a/comms/usbmuxd/Makefile
+++ b/comms/usbmuxd/Makefile
@@ -23,8 +23,17 @@ PORTDOCS= AUTHORS README README.devel
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 800069
-BROKEN= requires libusb 1.0
+.if ${OSVERSION} == 800107 || ${OSVERSION} == 900002
+HAVE_LIBUSB104!= ${GREP} --quiet "libusb_fill_bulk_transfer" \
+ /usr/include/libusb.h \
+ && ${ECHO} yes || ${ECHO} no
+.elif ${OSVERSION} > 800107 && ${OSVERSION} < 900000 || ${OSVERSION} > 900002
+HAVE_LIBUSB104= yes
+.else
+HAVE_LIBUSB104= no
+.endif
+.if ${HAVE_LIBUSB104} == "no"
+BROKEN= requires libusb 1.0.4
.endif
pre-configure: