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.

59 lines
1.4 KiB

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