node-hid: Correct multiple DEPENDS lines
[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.33
12 PKG_RELEASE:=1
13
14 PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
15 PKG_LICENSE:=GPL-2.0+
16
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_URL:=https://github.com/linknx/linknx.git
19 PKG_SOURCE_VERSION:=f627ed44feaea5a1f67c53f2810c44a14c059cef
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)
21 PKG_SOURCE:=$(PKG_NAME)-${PKG_VERSION}.tar.gz
22 PKG_MIRROR_HASH:=713876afcb0ed9ff23ae820daa644f1927b2a0f02abbb81fa154304768f7e97b
23
24 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
25 PKG_BUILD_DEPENDS:=argp-standalone
26 PKG_FORTIFY_SOURCE:=1
27
28 PKG_FIXUP:=autoreconf
29
30 include $(INCLUDE_DIR)/package.mk
31
32 define Package/linknx
33 SECTION:=net
34 CATEGORY:=Network
35 TITLE:=KNX home automation platform
36 URL:=http://sourceforge.net/projects/linknx/
37 DEPENDS:=+pthsem +lua +luac +libstdcpp +libcurl +libesmtp
38 endef
39
40 CONFIGURE_ARGS+= \
41 --verbose \
42 --without-pth-test \
43 --without-log4cpp \
44 --with-lua \
45 --with-libcurl \
46 --without-mysql
47
48 EXTRA_LDFLAGS+= \
49 -fno-builtin
50
51 define Package/linknx/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/linknx $(1)/usr/bin/
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/linknx.init $(1)/etc/init.d/linknx
56 $(INSTALL_DIR) $(1)/etc/config
57 $(INSTALL_DATA) ./files/linknx.config $(1)/etc/config/linknx
58 $(INSTALL_DATA) ./files/linknx.xml.dist $(1)/etc/linknx.xml.dist
59 $(INSTALL_DIR) $(1)/tmp/linknx/persist
60 endef
61
62 define Package/linknx/conffiles
63 /etc/config/linknx
64 /etc/linknx.xml.dist
65 endef
66
67 $(eval $(call BuildPackage,linknx))