summaryrefslogtreecommitdiff
path: root/devel/libusb1
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2012-10-08 16:54:07 +0000
committerdholland <dholland@pkgsrc.org>2012-10-08 16:54:07 +0000
commitdf9b76041abd440dad17ae8e3f9959dd529ea7cc (patch)
tree85d4502035a0f9df3c32ce7a0980add1f9ec0363 /devel/libusb1
parent246d3e0878fb37f027f0a0b0c865b881c407794d (diff)
downloadpkgsrc-df9b76041abd440dad17ae8e3f9959dd529ea7cc.tar.gz
Build patches for DragonFly, from Neil Booth in PR 47042.
Diffstat (limited to 'devel/libusb1')
-rw-r--r--devel/libusb1/Makefile4
-rw-r--r--devel/libusb1/distinfo5
-rw-r--r--devel/libusb1/patches/patch-configure16
-rw-r--r--devel/libusb1/patches/patch-configure.ac15
-rw-r--r--devel/libusb1/patches/patch-libusb_os_openbsd__usb.c16
5 files changed, 53 insertions, 3 deletions
diff --git a/devel/libusb1/Makefile b/devel/libusb1/Makefile
index 5228401a1f0..d78982a40b5 100644
--- a/devel/libusb1/Makefile
+++ b/devel/libusb1/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2012/09/26 08:19:32 jperkin Exp $
+# $NetBSD: Makefile,v 1.5 2012/10/08 16:54:07 dholland Exp $
#
DISTNAME= libusb-1.0.9
@@ -14,7 +14,7 @@ LICENSE= gnu-lgpl-v2.1
PKG_DESTDIR_SUPPORT= user-destdir
-NOT_FOR_PLATFORM= DragonFly-*-* SunOS-*-*
+NOT_FOR_PLATFORM= SunOS-*-*
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
diff --git a/devel/libusb1/distinfo b/devel/libusb1/distinfo
index fec29271d08..73a512dd8fc 100644
--- a/devel/libusb1/distinfo
+++ b/devel/libusb1/distinfo
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2012/05/30 14:10:23 wiz Exp $
+$NetBSD: distinfo,v 1.2 2012/10/08 16:54:07 dholland Exp $
SHA1 (libusb-1.0.9.tar.bz2) = 025582ff2f6216e2dbc2610ae16b2e073e1b3346
RMD160 (libusb-1.0.9.tar.bz2) = 5410570f8ce31783044eb04aebaae7ade3b21a61
Size (libusb-1.0.9.tar.bz2) = 421971 bytes
+SHA1 (patch-configure) = affe76f2b0644e3b4090822750058472dad2b412
+SHA1 (patch-configure.ac) = f14ba91c76300b221db1b4761dc3b2adde8b36f7
+SHA1 (patch-libusb_os_openbsd__usb.c) = d0956db2544f4340a97acec9f72b6b852e8c3de8
diff --git a/devel/libusb1/patches/patch-configure b/devel/libusb1/patches/patch-configure
new file mode 100644
index 00000000000..5474a36a087
--- /dev/null
+++ b/devel/libusb1/patches/patch-configure
@@ -0,0 +1,16 @@
+$NetBSD: patch-configure,v 1.1 2012/10/08 16:54:07 dholland Exp $
+
+--- configure.orig 2012-10-06 07:29:32.285323000 +0000
++++ configure
+@@ -11108,6 +11108,11 @@ $as_echo "Darwin/Mac OS X" >&6; }
+ $as_echo "OpenBSD" >&6; }
+ backend="openbsd"
+ ;;
++*-dragonfly*)
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: DragonflyBSD (using OpenBSD backend)" >&5
++$as_echo "DragonflyBSD (using OpenBSD backend)" >&6; }
++ backend="openbsd"
++ ;;
+ *-netbsd*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD (using OpenBSD backend)" >&5
+ $as_echo "NetBSD (using OpenBSD backend)" >&6; }
diff --git a/devel/libusb1/patches/patch-configure.ac b/devel/libusb1/patches/patch-configure.ac
new file mode 100644
index 00000000000..dc12c3b5436
--- /dev/null
+++ b/devel/libusb1/patches/patch-configure.ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure.ac,v 1.1 2012/10/08 16:54:07 dholland Exp $
+
+--- configure.ac.orig 2012-04-20 06:44:27.000000000 +0000
++++ configure.ac
+@@ -58,6 +58,10 @@ case $host in
+ AC_MSG_RESULT([OpenBSD])
+ backend="openbsd"
+ ;;
++*-dragonfly*)
++ AC_MSG_RESULT([DragonflyBSD (using OpenBSD backend)])
++ backend="openbsd"
++ ;;
+ *-netbsd*)
+ AC_MSG_RESULT([NetBSD (using OpenBSD backend)])
+ backend="openbsd"
diff --git a/devel/libusb1/patches/patch-libusb_os_openbsd__usb.c b/devel/libusb1/patches/patch-libusb_os_openbsd__usb.c
new file mode 100644
index 00000000000..f1dc6035806
--- /dev/null
+++ b/devel/libusb1/patches/patch-libusb_os_openbsd__usb.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-libusb_os_openbsd__usb.c,v 1.1 2012/10/08 16:54:07 dholland Exp $
+
+--- libusb/os/openbsd_usb.c.orig 2012-04-20 06:44:27.000000000 +0000
++++ libusb/os/openbsd_usb.c
+@@ -26,7 +26,11 @@
+ #include <string.h>
+ #include <unistd.h>
+
++#ifdef __DragonFly__
++#include <bus/usb/usb.h>
++#else
+ #include <dev/usb/usb.h>
++#endif
+
+ #include "libusb.h"
+ #include "libusbi.h"