noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[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
23 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
24 PKG_BUILD_DEPENDS:=argp-standalone
25 PKG_FORTIFY_SOURCE:=1
26
27 PKG_FIXUP:=autoreconf
28
29 include $(INCLUDE_DIR)/package.mk
30
31 define Package/linknx
32 SECTION:=net
33 CATEGORY:=Network
34 TITLE:=KNX home automation platform
35 URL:=http://sourceforge.net/projects/linknx/
36 DEPENDS:=+pthsem +lua +luac +libstdcpp +libcurl +libesmtp
37 endef
38
39 CONFIGURE_ARGS+= \
40 --verbose \
41 --without-pth-test \
42 --without-log4cpp \
43 --with-lua \
44 --with-libcurl \
45 --without-mysql
46
47 EXTRA_LDFLAGS+= \
48 -fno-builtin
49
50 define Package/linknx/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/linknx $(1)/usr/bin/
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/linknx.init $(1)/etc/init.d/linknx
55 $(INSTALL_DIR) $(1)/etc/config
56 $(INSTALL_DATA) ./files/linknx.config $(1)/etc/config/linknx
57 $(INSTALL_DATA) ./files/linknx.xml.dist $(1)/etc/linknx.xml.dist
58 $(INSTALL_DIR) $(1)/tmp/linknx/persist
59 endef
60
61 define Package/linknx/conffiles
62 /etc/config/linknx
63 /etc/linknx.xml.dist
64 endef
65
66 $(eval $(call BuildPackage,linknx))