-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add openzwave and fix domoticz version information
- patch source code to show reasonable version information - add openzwave (needs some workaround) - add boost:serialization for cross/cereal
- Loading branch information
Showing
5 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
cross/domoticz/patches/001-make-version-configurable.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Set place holders vor version an year, as the build process fails to read this from History.txt | ||
# Remove display of git hash in version, as we build from source outside a git repository, | ||
# display build date and synocommunity specific information instead. | ||
--- main/domoticz.cpp.orig 2020-04-26 15:49:25.000000000 +0200 | ||
+++ main/domoticz.cpp 2021-06-13 01:16:59.799865857 +0200 | ||
@@ -685,8 +685,8 @@ | ||
|
||
void DisplayAppVersion() | ||
{ | ||
- _log.Log(LOG_STATUS, "Domoticz V%s (c)2012-%d GizMoCuz", szAppVersion.c_str(), ActYear); | ||
- _log.Log(LOG_STATUS, "Build Hash: %s, Date: %s", szAppHash.c_str(), szAppDate.c_str()); | ||
+ _log.Log(LOG_STATUS, "Domoticz V@_version_@ (c)2012-@_year_@ GizMoCuz"); | ||
+ _log.Log(LOG_STATUS, "Built by SynoCommunity for synology NAS devices. Date: @_date_@"); | ||
} | ||
|
||
time_t m_LastHeartbeat = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
PKG_NAME = openzwave | ||
PKG_VERS = 1.6.1914 | ||
PKG_EXT = tar.gz | ||
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIST_SITE = http://old.openzwave.com/downloads | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS) | ||
|
||
HOMEPAGE = https://www.openzwave.net | ||
COMMENT = C++ library to control Z-Wave Networks via a USB Z-Wave Controller. | ||
LICENSE = LGPLv3 | ||
|
||
CONFIGURE_TARGET = nop | ||
INSTALL_TARGET = openzwave_install | ||
POST_INSTALL_TARGET = openzwave_post_install | ||
|
||
ENV += CROSS_COMPILE=$(TC_PATH)$(TC_PREFIX) | ||
|
||
include ../../mk/spksrc.cross-cc.mk | ||
|
||
.PHONY: openzwave_install | ||
# workaround for the non gnu standard usage of pkgconfig | ||
# as the owner is not willing to fix this | ||
# see https://github.com/OpenZWave/open-zwave/issues/1416 | ||
openzwave_install: | ||
$(RUN) $(MAKE) DESTDIR=$(INSTALL_DIR) install PREFIX=$(INSTALL_PREFIX) instlibdir=$(INSTALL_PREFIX)/lib pkgconfigdir=$(INSTALL_PREFIX)/lib/pkgconfig | ||
|
||
.PHONY: openzwave_post_install | ||
# patch includes as some compilers fail to work with the include folder structure of openzwave | ||
# (use hardcoded list of referenced header files in base folder to avoid too large sed expression size) | ||
openzwave_post_install: | ||
sed -e 's|\(#include "\)\([^.].*/\)|\1../\2|g' -i $(INSTALL_DIR)/$(INSTALL_PREFIX)/include/openzwave/*/*.h | ||
sed -e 's|\(#include "\)\([^.].*/\)|\1../../\2|g' -i $(INSTALL_DIR)/$(INSTALL_PREFIX)/include/openzwave/*/*/*.h | ||
sed -e 's%\(#include \"\)\(Bitfield\.h\|CompatOptionManager\.h\|Defs\.h\|Driver\.h\|TimerThread\.h\|ValueIDIndexes\.h\)%\1../\2%g' -i $(INSTALL_DIR)/$(INSTALL_PREFIX)/include/openzwave/*/*.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
bin:bin/MinOZW | ||
rsc:bin/ozw_config | ||
rsc:etc/openzwave/ | ||
lnk:lib/libopenzwave.so | ||
lib:lib/libopenzwave.so.1.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
openzwave-1.6.1914.tar.gz SHA1 8055f8e257a9d96adce0348d810b12633f504906 | ||
openzwave-1.6.1914.tar.gz SHA256 c4e4eb643709eb73c30cc25cffc24e9e7b6d7c49bd97ee8986c309d168d9ad2f | ||
openzwave-1.6.1914.tar.gz MD5 e7813329cc711ec8f2f99ea503c81d5d |