From: Stijn Tintel Date: Wed, 20 Sep 2017 21:50:33 +0000 (+0300) Subject: domoticz: enable GPIO support X-Git-Url: http://git.openwrt.org/?p=feed%2Fpackages.git;a=commitdiff_plain;h=9e265cfa1bcbe790139d33842c74cbfa4af49683 domoticz: enable GPIO support When cross-compiling Domoticz on a system without GPIO, the WITH_GPIO flag is not set by cmake, and GPIO support is disabled as a result. Enabling GPIO support by adding the flag to TARGET_CXXFLAGS. Signed-off-by: Stijn Tintel --- diff --git a/utils/domoticz/Makefile b/utils/domoticz/Makefile index 0351ea6d57..d8dee81390 100644 --- a/utils/domoticz/Makefile +++ b/utils/domoticz/Makefile @@ -11,7 +11,7 @@ PKG_NAME:=domoticz PKG_VERSION_MAJOR:=3 PKG_VERSION_PATCH:=8153 PKG_VERSION:=$(PKG_VERSION_MAJOR).$(PKG_VERSION_PATCH) -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/domoticz/domoticz/archive/$(PKG_VERSION)/$(PKG_SOURCE) @@ -62,6 +62,8 @@ CMAKE_OPTIONS += \ -DUSE_STATIC_OPENZWAVE=no \ -DUSE_PYTHON=no +TARGET_CXXFLAGS+=-DWITH_GPIO + define Build/Prepare $(call Build/Prepare/Default) # Fix APPVERSION to suppress update popup