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.

103 lines
2.3 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. ### 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=2015-07-19-$(PKG_SOURCE_VERSION)
  12. PKG_RELEASE:=1
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://github.com/knxd/knxd.git
  15. PKG_SOURCE_VERSION:=be1fcfe85cc1dfcc41f791cd9a45c57fe18da6a0
  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:=+pthsem +libusb-1.0
  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. endef
  44. define Package/knxd-tools/description
  45. EIB KNX Tools
  46. endef
  47. TARGET_CXXFLAGS+= -fno-rtti
  48. TARGET_CXX=$(TARGET_CC)
  49. CONFIGURE_ARGS+= \
  50. --disable-ft12 \
  51. --enable-eibnetip \
  52. --enable-eibnetiptunnel \
  53. --enable-eibnetipserver \
  54. --enable-usb \
  55. --enable-tpuarts \
  56. --disable-pei16s \
  57. --enable-groupcache \
  58. --without-pth-test \
  59. --disable-systemd \
  60. --without-libstdc
  61. EXTRA_LDFLAGS+= \
  62. -fno-builtin -largp
  63. define Package/knxd/install
  64. $(INSTALL_DIR) $(1)/usr/bin
  65. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  66. $(RM) $(1)/usr/bin/knxtool
  67. $(INSTALL_DIR) $(1)/etc/init.d
  68. $(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
  69. $(INSTALL_DIR) $(1)/etc/config
  70. $(INSTALL_DATA) ./files/knxd.config $(1)/etc/config/knxd
  71. endef
  72. define Package/knxd-tools/install
  73. $(INSTALL_DIR) $(1)/usr/lib
  74. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libeibclient.so* $(1)/usr/lib/
  75. $(INSTALL_DIR) $(1)/usr/bin
  76. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/knxtool $(1)/usr/bin/
  77. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibwrite-cgi $(1)/usr/bin/
  78. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibread-cgi $(1)/usr/bin/
  79. endef
  80. $(eval $(call BuildPackage,knxd))
  81. $(eval $(call BuildPackage,knxd-tools))