You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.5 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=linknx
  9. PKG_VERSION:=0.0.1.37
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
  12. PKG_LICENSE:=GPL-2.0+
  13. PKG_SOURCE:=$(PKG_NAME)-${PKG_VERSION}.tar.gz
  14. PKG_SOURCE_URL:=https://codeload.github.com/linknx/linknx/tar.gz/$(PKG_VERSION)?
  15. PKG_HASH:=3c3aaf8c409538153b15f5fb975a4485e58c4820cfea289a3f20777ba69782ab
  16. PKG_BUILD_DEPENDS:=argp-standalone
  17. PKG_FORTIFY_SOURCE:=1
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/linknx
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=KNX home automation platform
  24. URL:=https://github.com/linknx/linknx
  25. DEPENDS:=+pthsem +lua +luac +libstdcpp +libcurl +libesmtp
  26. endef
  27. CONFIGURE_ARGS+= \
  28. --verbose \
  29. --without-pth-test \
  30. --without-log4cpp \
  31. --with-lua \
  32. --with-libcurl \
  33. --without-mysql
  34. EXTRA_LDFLAGS+= \
  35. -fno-builtin
  36. define Package/linknx/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/linknx $(1)/usr/bin/
  39. $(INSTALL_DIR) $(1)/etc/init.d
  40. $(INSTALL_BIN) ./files/linknx.init $(1)/etc/init.d/linknx
  41. $(INSTALL_DIR) $(1)/etc/config
  42. $(INSTALL_DATA) ./files/linknx.config $(1)/etc/config/linknx
  43. $(INSTALL_DATA) ./files/linknx.xml.dist $(1)/etc/linknx.xml.dist
  44. $(INSTALL_DIR) $(1)/tmp/linknx/persist
  45. endef
  46. define Package/linknx/conffiles
  47. /etc/config/linknx
  48. /etc/linknx.xml.dist
  49. endef
  50. $(eval $(call BuildPackage,linknx))