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.

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