Merge pull request #15880 from neheb/ogg
[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:=3
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)/package.mk
26 include $(INCLUDE_DIR)/nls.mk
27
28 define Package/linknx
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=KNX home automation platform
32 URL:=https://github.com/linknx/linknx
33 DEPENDS:=+pthsem +lua +luac +libcurl +libesmtp +libstdcpp $(ICONV_DEPENDS)
34 endef
35
36 CONFIGURE_ARGS+= \
37 --verbose \
38 --without-pth-test \
39 --without-log4cpp \
40 --with-lua \
41 --with-libcurl \
42 --without-mysql
43
44 define Package/linknx/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/linknx $(1)/usr/bin/
47 $(INSTALL_DIR) $(1)/etc/init.d
48 $(INSTALL_BIN) ./files/linknx.init $(1)/etc/init.d/linknx
49 $(INSTALL_DIR) $(1)/etc/config
50 $(INSTALL_DATA) ./files/linknx.config $(1)/etc/config/linknx
51 $(INSTALL_DATA) ./files/linknx.xml.dist $(1)/etc/linknx.xml.dist
52 $(INSTALL_DIR) $(1)/tmp/linknx/persist
53 endef
54
55 define Package/linknx/conffiles
56 /etc/config/linknx
57 /etc/linknx.xml.dist
58 endef
59
60 $(eval $(call BuildPackage,linknx))