[arch-commits] Commit in openzwave/repos (3 files)
Maxime Gauduin
alucryd at archlinux.org
Mon Nov 2 13:43:19 UTC 2020
Date: Monday, November 2, 2020 @ 13:43:18
Author: alucryd
Revision: 739684
archrelease: copy trunk to community-testing-x86_64
Added:
openzwave/repos/community-testing-x86_64/
openzwave/repos/community-testing-x86_64/PKGBUILD
(from rev 739683, openzwave/trunk/PKGBUILD)
openzwave/repos/community-testing-x86_64/openzwave-system-libs.patch
(from rev 739683, openzwave/trunk/openzwave-system-libs.patch)
-----------------------------+
PKGBUILD | 55 +++++++++++++++++++++++
openzwave-system-libs.patch | 98 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 153 insertions(+)
Copied: openzwave/repos/community-testing-x86_64/PKGBUILD (from rev 739683, openzwave/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-11-02 13:43:18 UTC (rev 739684)
@@ -0,0 +1,55 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Jameson Pugh <imntreal at gmail.com>
+
+pkgname=openzwave
+pkgver=1.6
+pkgrel=4
+pkgdesc='A C++ library to control Z-Wave Networks via a USB Z-Wave Controller'
+arch=(x86_64)
+url=http://www.openzwave.net
+license=(LGPL3)
+depends=(
+ bash
+ gcc-libs
+ glibc
+ libhidapi-libusb.so
+ libusb-1.0.so
+ tinyxml
+)
+makedepends=(
+ doxygen
+ git
+)
+_tag=890f24b7e88f488eee464ed14c01fbceb276cf2a
+source=(
+ git+https://github.com/OpenZWave/open-zwave.git#tag=${_tag}
+ openzwave-system-libs.patch
+)
+b2sums=(
+ SKIP
+ 56095ee16bb04184b2bf037d7601bc5431c654e1328cd1ad63f1fcb7d6918bcd65ef4ab30ee2c80f3bf3c50e838f5818d23e9d01569e41125e9e68028d021c59
+)
+
+pkgver() {
+ cd open-zwave
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd open-zwave
+
+ patch -Np1 -i ../openzwave-system-libs.patch
+}
+
+build() {
+ export CFLAGS="$CFLAGS -Wno-stringop-truncation -Wno-maybe-uninitialized"
+ export CXXFLAGS="$CXXFLAGS -Wno-stringop-truncation -Wno-maybe-uninitialized"
+ make -C open-zwave
+}
+
+package() {
+ make DESTDIR="${pkgdir}" PREFIX=/usr instlibdir=usr/lib/ sysconfdir=etc/openzwave -C open-zwave install
+}
+
+# vim: ts=2 sw=2 et:
Copied: openzwave/repos/community-testing-x86_64/openzwave-system-libs.patch (from rev 739683, openzwave/trunk/openzwave-system-libs.patch)
===================================================================
--- community-testing-x86_64/openzwave-system-libs.patch (rev 0)
+++ community-testing-x86_64/openzwave-system-libs.patch 2020-11-02 13:43:18 UTC (rev 739684)
@@ -0,0 +1,98 @@
+diff -rupN open-zwave.orig/cpp/build/Makefile open-zwave/cpp/build/Makefile
+--- open-zwave.orig/cpp/build/Makefile 2019-07-18 09:49:01.185154576 +0200
++++ open-zwave/cpp/build/Makefile 2019-07-18 09:58:36.413855845 +0200
+@@ -23,7 +23,7 @@ DEBUG_LDFLAGS := -g
+
+ #default Libraries we should link with
+ ifneq ($(UNAME),FreeBSD)
+-LIBS += -lresolv
++LIBS += -lresolv -ltinyxml
+ endif
+
+ top_srcdir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../../)
+@@ -84,47 +84,19 @@ endif
+ #where to put the temporary library
+ LIBDIR ?= $(top_builddir)
+
+-INCLUDES := -I $(top_srcdir)/cpp/src -I $(top_srcdir)/cpp/tinyxml/
++INCLUDES := -I $(top_srcdir)/cpp/src
+
+
+ ifeq ($(USE_HID),1)
+-INCLUDES += -I $(top_srcdir)/cpp/hidapi/hidapi/
++INCLUDES += -I /usr/include/hidapi/
+ CFLAGS += -DUSE_HID
+-
+-ifeq ($(UNAME),Darwin)
+-SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/mac
+-else ifeq ($(UNAME),FreeBSD)
+-SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/libusb
+-else ifeq ($(UNAME),NetBSD)
+-SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/libusb
+-else ifeq ($(UNAME),SunOS)
+-SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/libusb
+-else
+-SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/linux
+-LIBS += -ludev
+-endif
++LIBS += -ludev -lhidapi-libusb
+ endif # USE_HID
+
+-SOURCES := $(top_srcdir)/cpp/src $(top_srcdir)/cpp/src/command_classes $(top_srcdir)/cpp/tinyxml \
+- $(top_srcdir)/cpp/src/value_classes $(top_srcdir)/cpp/src/platform $(top_srcdir)/cpp/src/platform/unix $(SOURCES_HIDAPI) $(top_srcdir)/cpp/src/aes/
+-VPATH = $(top_srcdir)/cpp/src:$(top_srcdir)/cpp/src/command_classes:$(top_srcdir)/cpp/tinyxml:\
+- $(top_srcdir)/cpp/src/value_classes:$(top_srcdir)/cpp/src/platform:$(top_srcdir)/cpp/src/platform/unix:$(SOURCES_HIDAPI):$(top_srcdir)/cpp/src/aes/
+-
+-tinyxml := $(notdir $(wildcard $(top_srcdir)/cpp/tinyxml/*.cpp))
+-
+-ifeq ($(USE_HID),1)
+-ifeq ($(UNAME),Darwin)
+-hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/mac/*.c))
+-else ifeq ($(UNAME),FreeBSD)
+-hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/libusb/*.c))
+-else ifeq ($(UNAME),NetBSD)
+-hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/libusb/*.c))
+-else ifeq ($(UNAME),SunOS)
+-hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/libusb/*.c))
+-else
+-hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/linux/*.c)) # we do not want the libusb version
+-endif
+-endif # USE_HID
++SOURCES := $(top_srcdir)/cpp/src $(top_srcdir)/cpp/src/command_classes \
++ $(top_srcdir)/cpp/src/value_classes $(top_srcdir)/cpp/src/platform $(top_srcdir)/cpp/src/platform/unix $(top_srcdir)/cpp/src/aes/
++VPATH = $(top_srcdir)/cpp/src:$(top_srcdir)/cpp/src/command_classes:\
++ $(top_srcdir)/cpp/src/value_classes:$(top_srcdir)/cpp/src/platform:$(top_srcdir)/cpp/src/platform/unix:$(top_srcdir)/cpp/src/aes/
+
+ ifeq ($(BITBAKE_ENV),1)
+ ar_option := "rc"
+@@ -147,8 +119,6 @@ printversion:
+ @echo "Building OpenZWave Version $(GITVERSION)"
+
+
+--include $(patsubst %.cpp,$(DEPDIR)/%.d,$(tinyxml))
+--include $(patsubst %.c,$(DEPDIR)/%.d,$(hidapi))
+ -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(cclasses))
+ -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(vclasses))
+ -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(pform))
+@@ -167,9 +137,7 @@ $(top_srcdir)/cpp/src/vers.cpp:
+
+ #$(OBJDIR)/vers.o: $(top_builddir)/vers.cpp
+
+-$(LIBDIR)/libopenzwave.a: $(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml)) \
+- $(patsubst %.c,$(OBJDIR)/%.o,$(hidapi)) \
+- $(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
++$(LIBDIR)/libopenzwave.a: $(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
+ $(patsubst %.cpp,$(OBJDIR)/%.o,$(cclasses)) \
+ $(patsubst %.cpp,$(OBJDIR)/%.o,$(vclasses)) \
+ $(patsubst %.cpp,$(OBJDIR)/%.o,$(pform)) \
+@@ -179,9 +147,7 @@ $(LIBDIR)/libopenzwave.a: $(patsubst %.c
+ @$(AR) $(ar_option) $@ $+
+ @$(RANLIB) $@
+
+-$(LIBDIR)/$(SHARED_LIB_NAME): $(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml)) \
+- $(patsubst %.c,$(OBJDIR)/%.o,$(hidapi)) \
+- $(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
++$(LIBDIR)/$(SHARED_LIB_NAME): $(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
+ $(patsubst %.cpp,$(OBJDIR)/%.o,$(cclasses)) \
+ $(patsubst %.cpp,$(OBJDIR)/%.o,$(vclasses)) \
+ $(patsubst %.cpp,$(OBJDIR)/%.o,$(pform)) \
More information about the arch-commits
mailing list