Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.33
  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:=f627ed44feaea5a1f67c53f2810c44a14c059cef
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)
  17. PKG_SOURCE:=$(PKG_NAME)-${PKG_VERSION}.tar.gz
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  19. PKG_BUILD_DEPENDS:=argp-standalone
  20. PKG_FORTIFY_SOURCE:=1
  21. PKG_FIXUP:=autoreconf
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/linknx
  24. SECTION:=net
  25. CATEGORY:=Network
  26. TITLE:=KNX home automation platform
  27. URL:=http://sourceforge.net/projects/linknx/
  28. DEPENDS:=+pthsem +lua +luac +libstdcpp +libcurl +libesmtp
  29. endef
  30. CONFIGURE_ARGS+= \
  31. --verbose \
  32. --without-pth-test \
  33. --without-log4cpp \
  34. --with-lua \
  35. --with-libcurl \
  36. --without-mysql
  37. EXTRA_LDFLAGS+= \
  38. -fno-builtin
  39. define Package/linknx/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/linknx $(1)/usr/bin/
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) ./files/linknx.init $(1)/etc/init.d/linknx
  44. $(INSTALL_DIR) $(1)/etc/config
  45. $(INSTALL_DATA) ./files/linknx.config $(1)/etc/config/linknx
  46. $(INSTALL_DATA) ./files/linknx.xml.dist $(1)/etc/linknx.xml.dist
  47. $(INSTALL_DIR) $(1)/tmp/linknx/persist
  48. endef
  49. define Package/linknx/conffiles
  50. /etc/config/linknx
  51. /etc/linknx.xml.dist
  52. endef
  53. $(eval $(call BuildPackage,linknx))