summaryrefslogtreecommitdiff
path: root/libraries/hidapi
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2020-12-13 19:34:23 +0100
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:28:52 -0500
commitcd9f0715e1b25e4e2201776a51cd6d057dd6bedd (patch)
tree24fb0f1cb3e96e16f1f1fc7772ebf48c8609bd6b /libraries/hidapi
parent4e6301fc3fa929b1fefb5e1f82bcde963f26a239 (diff)
downloadslackbuilds-cd9f0715e1b25e4e2201776a51cd6d057dd6bedd.tar.gz
libraries/hidapi: FIx building with the newer autotools.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/hidapi')
-rw-r--r--libraries/hidapi/configure.ac.patch13
-rw-r--r--libraries/hidapi/hidapi.SlackBuild2
2 files changed, 15 insertions, 0 deletions
diff --git a/libraries/hidapi/configure.ac.patch b/libraries/hidapi/configure.ac.patch
new file mode 100644
index 0000000000..7aae59deff
--- /dev/null
+++ b/libraries/hidapi/configure.ac.patch
@@ -0,0 +1,13 @@
+diff -Naur hidapi-hidapi-0.8.0-rc1.orig/configure.ac hidapi-hidapi-0.8.0-rc1/configure.ac
+--- hidapi-hidapi-0.8.0-rc1.orig/configure.ac 2013-10-07 00:43:37.000000000 +0200
++++ hidapi-hidapi-0.8.0-rc1/configure.ac 2020-12-13 19:26:32.602903000 +0100
+@@ -18,8 +18,7 @@
+ lt_age="0"
+ LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"
+
+-AC_CONFIG_MACRO_DIR([m4])
+-AM_INIT_AUTOMAKE([foreign -Wall -Werror])
++AM_INIT_AUTOMAKE([foreign -Wall])
+ AC_CONFIG_MACRO_DIR([m4])
+
+ m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
diff --git a/libraries/hidapi/hidapi.SlackBuild b/libraries/hidapi/hidapi.SlackBuild
index 7d26d8d259..028766847a 100644
--- a/libraries/hidapi/hidapi.SlackBuild
+++ b/libraries/hidapi/hidapi.SlackBuild
@@ -71,6 +71,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/configure.ac.patch
+
./bootstrap
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \