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.

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