2014-12-31 09:18:51 +00:00
|
|
|
#
|
2016-02-11 18:00:37 +00:00
|
|
|
# Copyright (C) 2008-2016 OpenWrt.org
|
2014-12-31 09:18:51 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=linknx
|
2016-02-11 18:00:37 +00:00
|
|
|
PKG_VERSION:=0.0.1.33
|
|
|
|
PKG_RELEASE:=1
|
2014-12-31 09:18:51 +00:00
|
|
|
|
2015-01-03 15:13:54 +00:00
|
|
|
PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
|
2014-12-31 09:18:51 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0+
|
|
|
|
|
2016-02-11 18:00:37 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=https://github.com/linknx/linknx.git
|
|
|
|
PKG_SOURCE_VERSION:=f627ed44feaea5a1f67c53f2810c44a14c059cef
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-${PKG_VERSION}.tar.gz
|
2017-08-28 04:28:09 +00:00
|
|
|
PKG_MIRROR_HASH:=713876afcb0ed9ff23ae820daa644f1927b2a0f02abbb81fa154304768f7e97b
|
2016-02-11 18:00:37 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
2015-03-19 21:48:56 +00:00
|
|
|
PKG_BUILD_DEPENDS:=argp-standalone
|
2015-06-27 20:55:51 +00:00
|
|
|
PKG_FORTIFY_SOURCE:=1
|
2014-12-31 09:18:51 +00:00
|
|
|
|
2016-02-11 18:00:37 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
|
2014-12-31 09:18:51 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/linknx
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=KNX home automation platform
|
|
|
|
URL:=http://sourceforge.net/projects/linknx/
|
2015-03-19 21:48:56 +00:00
|
|
|
DEPENDS:=+pthsem +lua +luac +libstdcpp +libcurl +libesmtp
|
2014-12-31 09:18:51 +00:00
|
|
|
endef
|
|
|
|
|
2015-03-17 19:41:51 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--verbose \
|
|
|
|
--without-pth-test \
|
|
|
|
--without-log4cpp \
|
|
|
|
--with-lua \
|
|
|
|
--with-libcurl \
|
|
|
|
--without-mysql
|
2014-12-31 09:18:51 +00:00
|
|
|
|
2015-03-17 19:41:51 +00:00
|
|
|
EXTRA_LDFLAGS+= \
|
2015-03-19 21:48:56 +00:00
|
|
|
-fno-builtin
|
2014-12-31 09:18:51 +00:00
|
|
|
|
|
|
|
define Package/linknx/install
|
2015-01-04 21:13:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/linknx $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2015-01-07 20:41:17 +00:00
|
|
|
$(INSTALL_BIN) ./files/linknx.init $(1)/etc/init.d/linknx
|
2015-01-04 21:13:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/linknx.config $(1)/etc/config/linknx
|
|
|
|
$(INSTALL_DATA) ./files/linknx.xml.dist $(1)/etc/linknx.xml.dist
|
2015-01-07 20:41:17 +00:00
|
|
|
$(INSTALL_DIR) $(1)/tmp/linknx/persist
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/linknx/conffiles
|
|
|
|
/etc/config/linknx
|
|
|
|
/etc/linknx.xml.dist
|
2014-12-31 09:18:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,linknx))
|