pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libhid devel/libhid: make it build under fbsd



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5bf56c208120
branches:  trunk
changeset: 348523:5bf56c208120
user:      rumko <rumko%pkgsrc.org@localhost>
date:      Wed Jun 15 18:38:07 2016 +0000

description:
devel/libhid: make it build under fbsd

* malloc and friends need stdlib
* ulong is not defined on FreeBSD

Ok@ wiz

diffstat:

 devel/libhid/distinfo                           |   4 +++-
 devel/libhid/patches/patch-hidparser_hidtypes.h |  15 +++++++++++++++
 devel/libhid/patches/patch-include_hid.h        |  14 ++++++++++++++
 3 files changed, 32 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r 0c03bbd8fdb5 -r 5bf56c208120 devel/libhid/distinfo
--- a/devel/libhid/distinfo     Wed Jun 15 18:29:59 2016 +0000
+++ b/devel/libhid/distinfo     Wed Jun 15 18:38:07 2016 +0000
@@ -1,9 +1,11 @@
-$NetBSD: distinfo,v 1.2 2015/11/03 03:27:42 agc Exp $
+$NetBSD: distinfo,v 1.3 2016/06/15 18:38:07 rumko Exp $
 
 SHA1 (libhid-0.2.16.tar.gz) = 9a25fef674e8f20f97fea6700eb91c21ebbbcc02
 RMD160 (libhid-0.2.16.tar.gz) = f61f016ae54bc5532202fd676d38d1f684e7ab8d
 SHA512 (libhid-0.2.16.tar.gz) = 3c9348f9d63e0e1577e983c65ff8e6acbaee0d5f43ecb29b7004654a7e9d14a94176aa029f259e0b8576fc30e8a9af6d1df34912dd582bfadc2b29f9b87eb52b
 Size (libhid-0.2.16.tar.gz) = 435245 bytes
 SHA1 (patch-configure) = 25b58acacaaa8dd783cc84e3908bc8489b0c9ee8
+SHA1 (patch-hidparser_hidtypes.h) = ddd475dad764e299c0eead170338376c6a03d579
+SHA1 (patch-include_hid.h) = 7f6f73eaabc47fdf39b3d669998ec3ed27d4847f
 SHA1 (patch-src_bsd_c) = 5087ed4eb594f5e6ce66b6ca3d01fbceebf0848f
 SHA1 (patch-test_lshid_c) = 2f655da7bc316354987efd22a5d2b1f60342be91
diff -r 0c03bbd8fdb5 -r 5bf56c208120 devel/libhid/patches/patch-hidparser_hidtypes.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libhid/patches/patch-hidparser_hidtypes.h   Wed Jun 15 18:38:07 2016 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-hidparser_hidtypes.h,v 1.1 2016/06/15 18:38:07 rumko Exp $
+
+ulong is not defined on FreeBSD
+
+--- hidparser/hidtypes.h.orig  2005-09-01 12:39:04.000000000 +0000
++++ hidparser/hidtypes.h
+@@ -21,7 +21,7 @@ extern "C" {
+ typedef unsigned char  uchar;
+ #endif
+ 
+-#if HPUX || __APPLE__
++#if HPUX || __APPLE__ || __FreeBSD__
+ typedef unsigned long  ulong;
+ #endif
+ 
diff -r 0c03bbd8fdb5 -r 5bf56c208120 devel/libhid/patches/patch-include_hid.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libhid/patches/patch-include_hid.h  Wed Jun 15 18:38:07 2016 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-include_hid.h,v 1.1 2016/06/15 18:38:07 rumko Exp $
+
+malloc and friends need stdlib
+
+--- include/hid.h.orig 2007-02-28 03:22:44.000000000 +0000
++++ include/hid.h
+@@ -2,6 +2,7 @@
+ #define __INCLUDED_HID_H__
+ 
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <usb.h>
+ #include <hidparser.h>
+ 



Home | Main Index | Thread Index | Old Index