aboutsummaryrefslogtreecommitdiffstats
path: root/testing/open-zwave-control-panel
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-12-25 22:11:52 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2016-12-25 22:12:45 +0100
commit6565762ee708e4d83e4025edbf12b3f3e3f2e764 (patch)
tree3e33f7719a4c13cabfa87ae45d5de1b988ebdb51 /testing/open-zwave-control-panel
parent05cea3d480e96e9956c9d86536c5edeb38576ee3 (diff)
downloadaports-6565762ee708e4d83e4025edbf12b3f3e3f2e764.tar.bz2
aports-6565762ee708e4d83e4025edbf12b3f3e3f2e764.tar.xz
testing/open-zwave-control-panel: new aport
Diffstat (limited to 'testing/open-zwave-control-panel')
-rw-r--r--testing/open-zwave-control-panel/APKBUILD38
-rw-r--r--testing/open-zwave-control-panel/makefile.patch81
2 files changed, 119 insertions, 0 deletions
diff --git a/testing/open-zwave-control-panel/APKBUILD b/testing/open-zwave-control-panel/APKBUILD
new file mode 100644
index 0000000000..b772c75f75
--- /dev/null
+++ b/testing/open-zwave-control-panel/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=open-zwave-control-panel
+pkgver=20161006
+_sha=a390f356bc74e132e6c1ca410bf5db983ef03b4e
+pkgrel=0
+pkgdesc="The OpenZWave Control Panel"
+url="https://github.com/OpenZWave/open-zwave-control-panel"
+arch="all"
+license="custom"
+depends=""
+makedepends="libmicrohttpd-dev openzwave-dev tinyxml-dev gnutls-dev"
+install=""
+subpackages=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/OpenZWave/open-zwave-control-panel/archive/$_sha.tar.gz
+ makefile.patch
+ "
+builddir="$srcdir/$pkgname-$_sha"
+
+build() {
+ cd "$builddir"
+ make
+}
+
+package() {
+ cd "$builddir"
+ install -Dm755 ozwcp "$pkgdir"/usr/bin/ozwcp || return 1
+ for i in *.js *.html; do
+ install -Dm644 $i "$pkgdir/usr/share/$pkgname/$i" || return 1
+ done
+}
+
+md5sums="67cb00d9a68795ca7b776fc423b52bf4 open-zwave-control-panel-20161006.tar.gz
+e3e15e3874a24054e861e98aca10b29d makefile.patch"
+sha256sums="89849dbe19bc2b950e6baffadc3cf05017cd18821bd50c623e7abd9f49cb062e open-zwave-control-panel-20161006.tar.gz
+8601a1bd8b742dae73a0ec1b0619e4a69a352327f8de9933ac35322b2c350170 makefile.patch"
+sha512sums="b650c13626ca0631ea09139c9ece490136a95684206a47a19ab8d97b86c0c1a5f76cea1565283183b5f448af1f3123511ae2003bd9efc960849a2570284ac64b open-zwave-control-panel-20161006.tar.gz
+8540d69445526834b39c6fc670de7d4c4e3cbf6ce007b776a4fa6f8ccf018aaf330f87894343797831292dc85efb7a7d371da691a1e4f4d3c59b63d10d2c139a makefile.patch"
diff --git a/testing/open-zwave-control-panel/makefile.patch b/testing/open-zwave-control-panel/makefile.patch
new file mode 100644
index 0000000000..5baea5a4ca
--- /dev/null
+++ b/testing/open-zwave-control-panel/makefile.patch
@@ -0,0 +1,81 @@
+--- ./Makefile
++++ ./Makefile.new
+@@ -13,59 +13,45 @@
+ RANLIB := $(CROSS_COMPILE)ranlib
+
+ DEBUG_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-inline -Wno-format -g -DDEBUG -ggdb -O0
+-RELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Werror -Wno-format -O3 -DNDEBUG
++RELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O3 -DNDEBUG
+
+ DEBUG_LDFLAGS := -g
+
+ # Change for DEBUG or RELEASE
+-CFLAGS := -c $(DEBUG_CFLAGS)
+-LDFLAGS := $(DEBUG_LDFLAGS)
++CFLAGS := -c $(RELEASE_CFLAGS)
++LDFLAGS := $(RELEASE_CFLAGS)
+
+-OPENZWAVE := ../open-zwave/
+-LIBMICROHTTPD := -L/usr/local/lib/ -lmicrohttpd
++OPENZWAVE := /usr/include/openzwave
++LIBMICROHTTPD := -L/usr/lib/ -lmicrohttpd
+
+-INCLUDES := -I $(OPENZWAVE)/cpp/src -I $(OPENZWAVE)/cpp/src/command_classes/ \
+- -I $(OPENZWAVE)/cpp/src/value_classes/ -I $(OPENZWAVE)/cpp/src/platform/ \
+- -I $(OPENZWAVE)/cpp/src/platform/unix -I $(OPENZWAVE)/cpp/tinyxml/ \
+- -I /usr/local/include/
++INCLUDES := -I $(OPENZWAVE) -I $(OPENZWAVE)/command_classes/ \
++ -I $(OPENZWAVE)/value_classes/ -I $(OPENZWAVE)/platform/ \
++ -I $(OPENZWAVE)/platform/unix -I $(OPENZWAVE)/tinyxml/ \
++ -I /usr/include/
+
+ # Remove comment below for gnutls support
+-#GNUTLS := -lgnutls
++GNUTLS := -lgnutls
+
+ # for Linux uncomment out next three lines
+ LIBZWAVE := $(wildcard $(OPENZWAVE)/*.a)
+-#LIBUSB := -ludev
+-#LIBS := $(LIBZWAVE) $(GNUTLS) $(LIBMICROHTTPD) -pthread $(LIBUSB) -lresolv
++LIBUSB := -ludev
++LIBS := $(LIBZWAVE) $(GNUTLS) $(LIBMICROHTTPD) -pthread $(LIBUSB) -lresolv -ltinyxml -lopenzwave
+
+-# for Mac OS X comment out above 2 lines and uncomment next 5 lines
+-#ARCH := -arch i386 -arch x86_64
+-#CFLAGS += $(ARCH)
+-#LIBZWAVE := $(wildcard $(OPENZWAVE)/cpp/lib/mac/*.a)
+-LIBUSB := -framework IOKit -framework CoreFoundation
+-LIBS := $(LIBZWAVE) $(GNUTLS) $(LIBMICROHTTPD) -pthread $(LIBUSB) $(ARCH) -lresolv
+-
+ %.o : %.cpp
+ $(CXX) $(CFLAGS) $(INCLUDES) -o $@ $<
+
+ %.o : %.c
+ $(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
+
+-all: defs ozwcp
++all: ozwcp
+
++ozwcp.o: ozwcp.h webserver.h $(OPENZWAVE)/Options.h $(OPENZWAVE)/Manager.h \
++ $(OPENZWAVE)/Node.h $(OPENZWAVE)/Group.h \
++ $(OPENZWAVE)/Notification.h $(OPENZWAVE)/platform/Log.h
+
+-defs:
+-ifeq ($(LIBZWAVE),)
+- @echo Please edit the Makefile to avoid this error message.
+- @exit 1
+-endif
+-
+-ozwcp.o: ozwcp.h webserver.h $(OPENZWAVE)/cpp/src/Options.h $(OPENZWAVE)/cpp/src/Manager.h \
+- $(OPENZWAVE)/cpp/src/Node.h $(OPENZWAVE)/cpp/src/Group.h \
+- $(OPENZWAVE)/cpp/src/Notification.h $(OPENZWAVE)/cpp/src/platform/Log.h
+-
+-webserver.o: webserver.h ozwcp.h $(OPENZWAVE)/cpp/src/Options.h $(OPENZWAVE)/cpp/src/Manager.h \
+- $(OPENZWAVE)/cpp/src/Node.h $(OPENZWAVE)/cpp/src/Group.h \
+- $(OPENZWAVE)/cpp/src/Notification.h $(OPENZWAVE)/cpp/src/platform/Log.h
++webserver.o: webserver.h ozwcp.h $(OPENZWAVE)/Options.h $(OPENZWAVE)/Manager.h \
++ $(OPENZWAVE)/Node.h $(OPENZWAVE)/Group.h \
++ $(OPENZWAVE)/Notification.h $(OPENZWAVE)/platform/Log.h
+
+ ozwcp: ozwcp.o webserver.o zwavelib.o $(LIBZWAVE)
+ $(LD) -o $@ $(LDFLAGS) ozwcp.o webserver.o zwavelib.o $(LIBS)