acsccid: fix compilation under macOS
authorRosen Penev <rosenp@gmail.com>
Sat, 23 Oct 2021 20:19:04 +0000 (13:19 -0700)
committerRosen Penev <rosenp@gmail.com>
Thu, 28 Oct 2021 06:14:31 +0000 (23:14 -0700)
uname is not safe for cross compilation.

Also fixed up download file name to avoid potential conflicts.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/acsccid/Makefile
utils/acsccid/patches/010-uname.patch [new file with mode: 0644]

index 2365bc1a764969d8fdadc05b9b7253ef104ad5ff..eceba4ea9a5ab9eb1b6ef83e946657fd95a5e255 100644 (file)
@@ -9,17 +9,19 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=acsccid
 PKG_VERSION:=1.1.8
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
-PKG_SOURCE:=v$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://github.com/acshk/acsccid/archive/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/acshk/acsccid/tar.gz/v$(PKG_VERSION)?
 PKG_HASH:=68d15eb20e7f52153509f1dc300cf0c68b388c59d7d124ba494fd96c61a6e7c6
+
 PKG_MAINTAINER:=Vincent JARDIN <vjardin@free.fr>
 PKG_LICENSE:=LGPL-2.1-or-later
 PKG_LICENSE_FILES:=COPYING
 
 PKG_FIXUP:=libtool
 PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/nls.mk
diff --git a/utils/acsccid/patches/010-uname.patch b/utils/acsccid/patches/010-uname.patch
new file mode 100644 (file)
index 0000000..3675034
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -84,7 +84,7 @@ AC_CHECK_FUNCS(select strerror strncpy m
+ # Select OS specific versions of source files.
+ AC_SUBST(BUNDLE_HOST)
+ AC_SUBST(DYN_LIB_EXT)
+-BUNDLE_HOST=`uname | sed -e s,/,_,`
++BUNDLE_HOST=Linux
+ DYN_LIB_EXT="so"
+ case "$BUNDLE_HOST" in
+ Darwin)