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.

97 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2008-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. ### Remarks
  8. ### 'python pascal ruby lua' need to be deleted in src/clients/Makefile.am
  9. include $(TOPDIR)/rules.mk
  10. PKG_NAME:=knxd
  11. PKG_VERSION=2017-01-18
  12. PKG_RELEASE:=1
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://github.com/knxd/knxd.git
  15. PKG_SOURCE_VERSION:=8255bf08b6e1a972c1489012b570bf0ff8679cb0
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)
  17. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
  18. PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
  19. PKG_LICENSE:=GPL-2.0+
  20. PKG_LICENSE_FILES:=LICENSE
  21. PKG_BUILD_PARALLEL:=1
  22. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  23. PKG_BUILD_DEPENDS:=argp-standalone
  24. PKG_FIXUP:=autoreconf
  25. PKG_INSTALL:=1
  26. include $(INCLUDE_DIR)/package.mk
  27. define Package/knxd
  28. SECTION:=net
  29. CATEGORY:=Network
  30. TITLE:=EIB KNX daemon
  31. DEPENDS:=+libusb-1.0 +libstdcpp +libev
  32. endef
  33. define Package/knxd/description
  34. EIB KNX Daemon
  35. endef
  36. define Package/knxd/conffiles
  37. /etc/config/knxd
  38. endef
  39. define Package/knxd-tools
  40. SECTION:=net
  41. CATEGORY:=Network
  42. TITLE:=EIB KNX Utils
  43. DEPENDS:=+libstdcpp +libev
  44. endef
  45. define Package/knxd-tools/description
  46. EIB KNX Tools
  47. endef
  48. TARGET_CXXFLAGS+= -std=c++0x
  49. TARGET_CXX=$(TARGET_CC)
  50. CONFIGURE_ARGS+= \
  51. --enable-eibnetip \
  52. --enable-eibnetiptunnel \
  53. --enable-eibnetipserver \
  54. --disable-systemd
  55. EXTRA_LDFLAGS+= \
  56. -largp -lstdc++
  57. define Package/knxd/install
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  60. $(RM) $(1)/usr/bin/knxtool
  61. $(INSTALL_DIR) $(1)/etc/init.d
  62. $(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
  63. $(INSTALL_DIR) $(1)/etc/config
  64. $(INSTALL_DATA) ./files/knxd.config $(1)/etc/config/knxd
  65. endef
  66. define Package/knxd-tools/install
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libeibclient.so* $(1)/usr/lib/
  69. $(INSTALL_DIR) $(1)/usr/bin
  70. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/knxtool $(1)/usr/bin/
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibwrite-cgi $(1)/usr/bin/
  72. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibread-cgi $(1)/usr/bin/
  73. endef
  74. $(eval $(call BuildPackage,knxd))
  75. $(eval $(call BuildPackage,knxd-tools))