lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2865B)


      1 #
      2 # Copyright (C) 2016 - 2017  Stijn Tintel <stijn@linux-ipv6.be>
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=domoticz
     11 PKG_VERSION_MAJOR:=3
     12 PKG_VERSION_PATCH:=5877
     13 PKG_VERSION:=$(PKG_VERSION_MAJOR).$(PKG_VERSION_PATCH)
     14 PKG_RELEASE:=1
     15 
     16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     17 PKG_SOURCE_URL:=https://github.com/domoticz/domoticz/archive/$(PKG_VERSION)/$(PKG_SOURCE)
     18 PKG_HASH:=fb88edbe428851a7a337a85faa93f6da00713b3ad086ff6957031dc9b3b58bba
     19 
     20 PKG_LICENSE:=GPL-3.0
     21 PKG_LICENSE_FILES:=License.txt
     22 
     23 PKG_BUILD_PARALLEL:=1
     24 PKG_USE_MIPS16:=0
     25 
     26 CMAKE_INSTALL:=1
     27 
     28 include $(INCLUDE_DIR)/package.mk
     29 include $(INCLUDE_DIR)/cmake.mk
     30 
     31 define Package/domoticz
     32   SECTION:=utils
     33   CATEGORY:=Utilities
     34   TITLE:=Open Source Home Automation System
     35   URL:=http://domoticz.com/
     36   MAINTAINER:=Stijn Tintel <stijn@linux-ipv6.be>
     37   USERID:=domoticz=6144:domoticz=6144
     38   DEPENDS:= \
     39 	+boost \
     40 	+boost-date_time \
     41 	+boost-system \
     42 	+boost-thread \
     43 	+libcurl \
     44 	+libmosquittopp \
     45 	+libopenssl \
     46 	+libopenzwave \
     47 	+libsqlite3 \
     48 	+libstdcpp \
     49 	+zlib
     50 endef
     51 
     52 define Package/domoticz/description
     53   Domoticz is a Home Automation System that lets you monitor and configure various devices like: Lights, Switches, various sensors/meters like Temperature, Rain, Wind, UV, Electra, Gas, Water and much more. Notifications/Alerts can be sent to any mobile device.
     54 endef
     55 
     56 CMAKE_OPTIONS += \
     57 	-DCMAKE_BUILD_TYPE=Release \
     58 	-DUSE_BUILTIN_MQTT=no \
     59 	-DUSE_BUILTIN_SQLITE=no \
     60 	-DUSE_STATIC_BOOST=no \
     61 	-DUSE_STATIC_LIBSTDCXX=no \
     62 	-DUSE_STATIC_OPENZWAVE=no \
     63 	-DUSE_PYTHON=no
     64 
     65 define Build/Prepare
     66 	$(call Build/Prepare/Default)
     67 	# Fix APPVERSION to suppress update popup
     68 	sed -i 's/#define APPVERSION.*/#define APPVERSION $(PKG_VERSION_PATCH)/' \
     69 		 $(PKG_BUILD_DIR)/appversion.default
     70 	# Remove unwanted scripts
     71 	cd $(PKG_BUILD_DIR)/scripts && rm -rf \
     72 		buienradar_rain_example.pl \
     73 		_domoticz_main.bat \
     74 		download_update.sh \
     75 		logrotate/ \
     76 		python/ \
     77 		readme.txt \
     78 		restart_domoticz \
     79 		templates/All.Python \
     80 		update_domoticz
     81 endef
     82 
     83 define Package/domoticz/install
     84 	$(INSTALL_DIR) $(1)/etc/config $(1)/etc/hotplug.d/tty $(1)/etc/init.d
     85 	$(INSTALL_BIN) ./files/domoticz.hotplug $(1)/etc/hotplug.d/tty/domoticz
     86 	$(INSTALL_BIN) ./files/domoticz.init $(1)/etc/init.d/domoticz
     87 	$(INSTALL_CONF) ./files/domoticz.config $(1)/etc/config/domoticz
     88 	$(INSTALL_DIR) $(1)/usr/share/domoticz $(1)/usr/bin
     89 	$(CP) $(PKG_INSTALL_DIR)/usr/Config $(1)/usr/share/domoticz/openzwave
     90 	$(CP) $(PKG_INSTALL_DIR)/usr/scripts $(1)/usr/share/domoticz/
     91 	$(CP) $(PKG_INSTALL_DIR)/usr/www $(1)/usr/share/domoticz/
     92 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/domoticz $(1)/usr/bin/domoticz
     93 endef
     94 
     95 define Package/domoticz/conffiles
     96 /etc/config/domoticz
     97 /var/lib/domoticz/
     98 endef
     99 
    100 $(eval $(call BuildPackage,domoticz))