diff options
Diffstat (limited to 'devel/libhid/files')
-rw-r--r-- | devel/libhid/files/extra-patch-usb | 12 | ||||
-rw-r--r-- | devel/libhid/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | devel/libhid/files/patch-configure | 31 | ||||
-rw-r--r-- | devel/libhid/files/patch-hidparser-hidtypes.h | 11 | ||||
-rw-r--r-- | devel/libhid/files/patch-src_hid_initialisation.c | 10 | ||||
-rw-r--r-- | devel/libhid/files/patch-src_hid_opening.c | 9 | ||||
-rw-r--r-- | devel/libhid/files/patch-src_hid_parsing.c | 9 | ||||
-rw-r--r-- | devel/libhid/files/patch-test_lshid.c | 10 | ||||
-rw-r--r-- | devel/libhid/files/patch-test_test_libhid.c | 9 |
9 files changed, 112 insertions, 0 deletions
diff --git a/devel/libhid/files/extra-patch-usb b/devel/libhid/files/extra-patch-usb new file mode 100644 index 000000000000..af78de7e0e45 --- /dev/null +++ b/devel/libhid/files/extra-patch-usb @@ -0,0 +1,12 @@ +--- configure.orig 2007-04-26 04:25:25.000000000 +0400 ++++ configure 2009-03-07 20:26:02.000000000 +0300 +@@ -4846,8 +4846,8 @@ + done + + +- LIBUSB_CFLAGS="`libusb-config --cflags`" +- LIBUSB_LIBS="`libusb-config --libs`" ++ LIBUSB_CFLAGS="" ++ LIBUSB_LIBS="-lusb" + + diff --git a/devel/libhid/files/patch-Makefile.in b/devel/libhid/files/patch-Makefile.in new file mode 100644 index 000000000000..05066af6360a --- /dev/null +++ b/devel/libhid/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig 2007-07-16 13:40:13.000000000 +0300 ++++ Makefile.in 2007-07-16 13:41:37.000000000 +0300 +@@ -293,7 +293,7 @@ + README.licence + + DEBIAN_VERSION = ${shell head -1 debian/changelog 2>/dev/null | sed -e '1s,.*(\([^)]*\)).*,\1,'} +-DEBIAN_ARCH = $(shell test -x `which dpkg-architecture 2>/dev/null` && dpkg-architecture -qDEB_BUILD_ARCH 2>/dev/null || echo i386) ++DEBIAN_ARCH = i386 + TARBALL = $(distdir).tar.gz + DEBDIR = .debian + STAMP = $(DEBDIR)/stamp diff --git a/devel/libhid/files/patch-configure b/devel/libhid/files/patch-configure new file mode 100644 index 000000000000..894729023634 --- /dev/null +++ b/devel/libhid/files/patch-configure @@ -0,0 +1,31 @@ +--- configure.orig 2007-04-26 00:25:25 UTC ++++ configure +@@ -22433,19 +22433,6 @@ echo "${ECHO_T}$swig_version" >&6; } + if test -z "$available_patch" ; then + available_patch=0 + fi +- if test $available_major -ne $required_major \ +- -o $available_minor -ne $required_minor \ +- -o $available_patch -lt $required_patch ; then +- { echo "$as_me:$LINENO: WARNING: SWIG version >= 1.3 is required. You have $swig_version. You should look at http://www.swig.org" >&5 +-echo "$as_me: WARNING: SWIG version >= 1.3 is required. You have $swig_version. You should look at http://www.swig.org" >&2;} +- SWIG='echo "Error: SWIG version >= 1.3 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' +- else +- { echo "$as_me:$LINENO: SWIG executable is '$SWIG'" >&5 +-echo "$as_me: SWIG executable is '$SWIG'" >&6;} +- SWIG_LIB=`$SWIG -swiglib` +- { echo "$as_me:$LINENO: SWIG library directory is '$SWIG_LIB'" >&5 +-echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} +- fi + else + { echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5 + echo "$as_me: WARNING: cannot determine SWIG version" >&2;} +@@ -22785,7 +22772,7 @@ echo $ECHO_N "checking for Python library path... $ECH + + PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ + import os; \ +- print apply(os.path.join, get_config_vars('LIBPL', 'LDLIBRARY'))"` ++ print apply(os.path.join, get_config_vars('LIBDIR', 'LDLIBRARY'))"` + fi + { echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5 + echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; } diff --git a/devel/libhid/files/patch-hidparser-hidtypes.h b/devel/libhid/files/patch-hidparser-hidtypes.h new file mode 100644 index 000000000000..43086c0b8506 --- /dev/null +++ b/devel/libhid/files/patch-hidparser-hidtypes.h @@ -0,0 +1,11 @@ +--- hidparser/hidtypes.h.orig 2007-07-16 12:21:55.000000000 +0300 ++++ hidparser/hidtypes.h 2007-07-16 12:22:04.000000000 +0300 +@@ -21,7 +21,7 @@ + typedef unsigned char uchar; + #endif + +-#if HPUX || __APPLE__ ++#if HPUX || __APPLE__ || __FreeBSD__ + typedef unsigned long ulong; + #endif + diff --git a/devel/libhid/files/patch-src_hid_initialisation.c b/devel/libhid/files/patch-src_hid_initialisation.c new file mode 100644 index 000000000000..014adf4987dd --- /dev/null +++ b/devel/libhid/files/patch-src_hid_initialisation.c @@ -0,0 +1,10 @@ +--- src/hid_initialisation.c.orig 2009-03-07 20:27:43.000000000 +0300 ++++ src/hid_initialisation.c 2009-03-07 20:29:25.000000000 +0300 +@@ -4,6 +4,7 @@ + #define HID_INTERNAL + + #include "config.h" ++#include <stdlib.h> + #include <hid.h> + #include <hid_helpers.h> + diff --git a/devel/libhid/files/patch-src_hid_opening.c b/devel/libhid/files/patch-src_hid_opening.c new file mode 100644 index 000000000000..19b080d901ee --- /dev/null +++ b/devel/libhid/files/patch-src_hid_opening.c @@ -0,0 +1,9 @@ +--- src/hid_opening.c.orig 2009-03-07 20:28:09.000000000 +0300 ++++ src/hid_opening.c 2009-03-07 20:29:17.000000000 +0300 +@@ -1,5 +1,6 @@ + #define HID_INTERNAL + ++#include <stdlib.h> + #include <hid.h> + #include <hid_helpers.h> + #include <os.h> diff --git a/devel/libhid/files/patch-src_hid_parsing.c b/devel/libhid/files/patch-src_hid_parsing.c new file mode 100644 index 000000000000..3eccd4b712e1 --- /dev/null +++ b/devel/libhid/files/patch-src_hid_parsing.c @@ -0,0 +1,9 @@ +--- src/hid_parsing.c.orig 2009-03-07 20:29:35.000000000 +0300 ++++ src/hid_parsing.c 2009-03-07 20:29:43.000000000 +0300 +@@ -1,5 +1,6 @@ + #define HID_INTERNAL + ++#include <stdlib.h> + #include <hid.h> + #include <hid_helpers.h> + diff --git a/devel/libhid/files/patch-test_lshid.c b/devel/libhid/files/patch-test_lshid.c new file mode 100644 index 000000000000..2b107ca7b9a1 --- /dev/null +++ b/devel/libhid/files/patch-test_lshid.c @@ -0,0 +1,10 @@ +--- test/lshid.c.orig 2009-03-07 20:30:14.000000000 +0300 ++++ test/lshid.c 2009-03-07 20:30:20.000000000 +0300 +@@ -23,6 +23,7 @@ + + #include <hid.h> + #include <stdio.h> ++#include <stdlib.h> + #include <string.h> + + char *hid_id[32]; /* FIXME: 32 devices MAX */ diff --git a/devel/libhid/files/patch-test_test_libhid.c b/devel/libhid/files/patch-test_test_libhid.c new file mode 100644 index 000000000000..dbb18830a719 --- /dev/null +++ b/devel/libhid/files/patch-test_test_libhid.c @@ -0,0 +1,9 @@ +--- test/test_libhid.c.orig 2009-03-07 20:29:59.000000000 +0300 ++++ test/test_libhid.c 2009-03-07 20:30:05.000000000 +0300 +@@ -1,5 +1,6 @@ + #include <hid.h> + #include <stdio.h> ++#include <stdlib.h> + #include <string.h> + + bool match_serial_number(struct usb_dev_handle* usbdev, void* custom, unsigned int len) |