Merge pull request #11353 from kvuorine/fwknop-fixes
[feed/packages.git] / net / linknx / Makefile
1 #
2 # Copyright (C) 2008-2016 OpenWrt.org
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:=linknx
11 PKG_VERSION:=0.0.1.38
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-${PKG_VERSION}.tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/linknx/linknx/tar.gz/$(PKG_VERSION)?
16 PKG_HASH:=00c53776c2e871295459ede922402d8ad0208367d2364781fdb92ddafad94d3d
17
18 PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
23 PKG_FIXUP:=autoreconf
24
25 include $(INCLUDE_DIR)/uclibc++.mk
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/nls.mk
28
29 define Package/linknx
30 SECTION:=net
31 CATEGORY:=Network
32 TITLE:=KNX home automation platform
33 URL:=https://github.com/linknx/linknx
34 DEPENDS:=+pthsem +lua +luac +libcurl +libesmtp $(CXX_DEPENDS) $(ICONV_DEPENDS)
35 endef
36
37 CONFIGURE_ARGS+= \
38 --verbose \
39 --without-pth-test \
40 --without-log4cpp \
41 --with-lua \
42 --with-libcurl \
43 --without-mysql
44
45 define Package/linknx/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/linknx $(1)/usr/bin/
48 $(INSTALL_DIR) $(1)/etc/init.d
49 $(INSTALL_BIN) ./files/linknx.init $(1)/etc/init.d/linknx
50 $(INSTALL_DIR) $(1)/etc/config
51 $(INSTALL_DATA) ./files/linknx.config $(1)/etc/config/linknx
52 $(INSTALL_DATA) ./files/linknx.xml.dist $(1)/etc/linknx.xml.dist
53 $(INSTALL_DIR) $(1)/tmp/linknx/persist
54 endef
55
56 define Package/linknx/conffiles
57 /etc/config/linknx
58 /etc/linknx.xml.dist
59 endef
60
61 $(eval $(call BuildPackage,linknx))