aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/openzwave/0001-fix-build-on-ppc64le.patch28
-rw-r--r--community/openzwave/APKBUILD23
2 files changed, 41 insertions, 10 deletions
diff --git a/community/openzwave/0001-fix-build-on-ppc64le.patch b/community/openzwave/0001-fix-build-on-ppc64le.patch
new file mode 100644
index 0000000000..93abcf7313
--- /dev/null
+++ b/community/openzwave/0001-fix-build-on-ppc64le.patch
@@ -0,0 +1,28 @@
+From 5fc166b05611bd5cf7db83284181416e1c08a350 Mon Sep 17 00:00:00 2001
+From: Leonardo Arena <rnalrd@alpinelinux.org>
+Date: Wed, 19 Dec 2018 10:11:38 +0000
+Subject: [PATCH] fix build on ppc64le
+
+/home/buildozer/aports/community/openzwave/src/openzwave-1.4.164/cpp/src/command_classes/DoorLockLogging.cpp:312:15: error: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
+
+Use default Alpine optimization flag
+---
+ cpp/build/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cpp/build/Makefile b/cpp/build/Makefile
+index a632f79..2d7c337 100644
+--- a/cpp/build/Makefile
++++ b/cpp/build/Makefile
+@@ -15,7 +15,7 @@
+ # what flags we will use for compiling in debug mode
+ DEBUG_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-inline -Wno-format -Werror -Wno-error=sequence-point -Wno-sequence-point -ggdb -DDEBUG -fPIC -DSYSCONFDIR="\"$(PREFIX)/etc/openzwave/\""
+ # what flags we will use for compiling in release mode
+-RELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Werror -Wno-format -Wno-error=sequence-point -Wno-sequence-point -O3 -DNDEBUG -fPIC -DSYSCONFDIR="\"$(PREFIX)/etc/openzwave/\""
++RELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Werror -Wno-format -Wno-error=sequence-point -Wno-error=restrict -Wno-sequence-point -Os -DNDEBUG -fPIC -DSYSCONFDIR="\"$(PREFIX)/etc/openzwave/\""
+ #what flags we will use for linking in debug mode
+ DEBUG_LDFLAGS := -g
+
+--
+2.19.2
+
diff --git a/community/openzwave/APKBUILD b/community/openzwave/APKBUILD
index 35c3d5f59c..47a5cfcba5 100644
--- a/community/openzwave/APKBUILD
+++ b/community/openzwave/APKBUILD
@@ -2,35 +2,38 @@
# Maintainer:
pkgname=openzwave
pkgver=1.4.164
-pkgrel=2
+pkgrel=3
pkgdesc="a C++ and DotNet library to control Z-Wave Networks via a Z-Wave Controller."
url="http://www.openzwave.net/"
arch="all"
-license="GPL"
+license="LGPL-3.0-or-later GPL-3.0-or-later Apache-2.0"
depends=""
depends_dev="eudev-dev"
makedepends="$depends_dev linux-headers coreutils"
-install=""
+# checkdepends="perl-xml-simple" # FIXME tests failing
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://old.openzwave.com/downloads/openzwave-$pkgver.tar.gz
016d6e5d6a2d61674032805886418923d20604b9.patch
+ 0001-fix-build-on-ppc64le.patch
"
builddir="$srcdir"/openzwave-$pkgver
build() {
cd "$builddir"
- make || return 1
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" PREFIX=/usr instlibdir=usr/lib pkgconfigdir="usr/lib/pkgconfig/" \
- sysconfdir=etc/openzwave install || return 1
+ sysconfdir=etc/openzwave install
}
-md5sums="5878ed2156e97614db43227c4f329d88 openzwave-1.4.164.tar.gz
-e78f35a1696e66ff2ede1520a9b1a637 016d6e5d6a2d61674032805886418923d20604b9.patch"
-sha256sums="4ecf39787aaf278c203764069b581dbc26094ce57cafeab4a0c1f012d2c0ac69 openzwave-1.4.164.tar.gz
-0b6a30a264be908aafdbab6248b50d17de41feff52d715ece7995ee94e03e705 016d6e5d6a2d61674032805886418923d20604b9.patch"
sha512sums="a844f931bc9140e96e43c39e948317dc4271865480897ef76c1f955c59963bda8ddfb9e1a0a021fa4de5692653613277a7c74418f07d5d1678969433ff2357e4 openzwave-1.4.164.tar.gz
-0fb85325ddc1cd621e697115291973c6744fdaf27a124494547f5d3c41d6148ac581b6fcdf59572e337d13a857604b5c28a75a6018d08c6d6623ad1a1d695416 016d6e5d6a2d61674032805886418923d20604b9.patch"
+0fb85325ddc1cd621e697115291973c6744fdaf27a124494547f5d3c41d6148ac581b6fcdf59572e337d13a857604b5c28a75a6018d08c6d6623ad1a1d695416 016d6e5d6a2d61674032805886418923d20604b9.patch
+67e43688d44a43f416e85f035703a8eee11d12f3bf64e93d56b15927bb48bd4cb21e9111876da061a6bc7e75cdae92688ea061e8db8688438ea27a6d3cd7eab2 0001-fix-build-on-ppc64le.patch"