aboutsummaryrefslogtreecommitdiff
path: root/comms/openobex
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2009-03-09 17:15:43 +0000
committerStanislav Sedov <stas@FreeBSD.org>2009-03-09 17:15:43 +0000
commitf5d05ea54d1f80ecd08c5809a3ce5e1594e34eaa (patch)
tree343e91600b9cf81ffb94bf71017b43a88bfcbf45 /comms/openobex
parente9e0ba8df0a817712eab81d4a962e79cae35dca1 (diff)
downloadports-f5d05ea54d1f80ecd08c5809a3ce5e1594e34eaa.tar.gz
ports-f5d05ea54d1f80ecd08c5809a3ce5e1594e34eaa.zip
Notes
Diffstat (limited to 'comms/openobex')
-rw-r--r--comms/openobex/Makefile6
-rw-r--r--comms/openobex/files/extra-patch-configure14
2 files changed, 19 insertions, 1 deletions
diff --git a/comms/openobex/Makefile b/comms/openobex/Makefile
index 790d2a2ef3e6..9bfb750c1f05 100644
--- a/comms/openobex/Makefile
+++ b/comms/openobex/Makefile
@@ -24,9 +24,13 @@ OPTIONS= LIBUSB "Enable OBEX over USB" no
.include <bsd.port.pre.mk>
.if defined(WITH_LIBUSB)
+. if ${OSVERSION} < 800069
LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
-CONFIGURE_ARGS+=--enable-usb
CFLAGS+= -I${PREFIX}/include
+. else
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-configure
+. endif
+CONFIGURE_ARGS+=--enable-usb
.else
CONFIGURE_ARGS+=--disable-usb
.endif
diff --git a/comms/openobex/files/extra-patch-configure b/comms/openobex/files/extra-patch-configure
new file mode 100644
index 000000000000..01099804dc96
--- /dev/null
+++ b/comms/openobex/files/extra-patch-configure
@@ -0,0 +1,14 @@
+--- configure.orig 2009-03-07 19:35:55.000000000 +0300
++++ configure 2009-03-07 19:36:21.000000000 +0300
+@@ -10736,6 +10736,11 @@
+ USB_LIBS="-lusb"
+ usb_lib_found=yes
+ ;;
++ *-*-freebsd*)
++ USB_CFLAGS=""
++ USB_LIBS="-lusb"
++ usb_lib_found=yes
++ ;;
+ *)
+
+ pkg_failed=no