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.

151 lines
4.6 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-03-17-$(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:=2c6c6732a684dffb87b391ea92cccdf07c8385b8
  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_FIXUP:=autoreconf
  24. PKG_INSTALL:=1
  25. include $(INCLUDE_DIR)/package.mk
  26. define Package/knxd
  27. SECTION:=net
  28. CATEGORY:=Network
  29. TITLE:=EIB KNX daemon
  30. DEPENDS:=+pthsem +argp-standalone +libusb-1.0
  31. endef
  32. define Package/knxd/description
  33. EIB KNX Daemon
  34. endef
  35. define Package/knxd/conffiles
  36. /etc/config/knxd
  37. endef
  38. define Package/libeibclient
  39. SECTION:=libs
  40. CATEGORY:=Libraries
  41. TITLE:=Library for EIB clients
  42. DEPENDS:=+pthsem
  43. endef
  44. define Package/libeibclient/description
  45. EIB KNX client library
  46. endef
  47. define Package/knxd-tools
  48. SECTION:=net
  49. CATEGORY:=Network
  50. TITLE:=EIB KNX Utils
  51. DEPENDS:=+libeibclient
  52. endef
  53. define Package/knxd-tools/description
  54. EIB KNX Tools
  55. endef
  56. CONFIGURE_ARGS+= \
  57. --disable-ft12 \
  58. --enable-eibnetip \
  59. --enable-eibnetiptunnel \
  60. --enable-eibnetipserver \
  61. --enable-usb \
  62. --enable-tpuart \
  63. --enable-tpuarts \
  64. --disable-pei16 \
  65. --disable-pei16s \
  66. --enable-groupcache \
  67. --without-pth-test \
  68. --without-libstdc
  69. EXTRA_LDFLAGS+= \
  70. -fno-builtin -nodefaultlibs -lc -lgcc
  71. define Build/InstallDev
  72. $(INSTALL_DIR) $(1)/usr/include
  73. $(CP) $(PKG_INSTALL_DIR)/usr/include/eib*.h $(1)/usr/include/
  74. $(INSTALL_DIR) $(1)/usr/lib
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libeibclient.{a,so*} $(1)/usr/lib/
  76. endef
  77. define Package/knxd/install
  78. $(INSTALL_DIR) $(1)/usr/bin
  79. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  80. $(INSTALL_DIR) $(1)/etc/init.d
  81. $(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
  82. $(INSTALL_DIR) $(1)/etc/config
  83. $(INSTALL_DATA) ./files/knxd.config $(1)/etc/config/knxd
  84. endef
  85. define Package/libeibclient/install
  86. $(INSTALL_DIR) $(1)/usr/lib
  87. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libeibclient.so* $(1)/usr/lib/
  88. endef
  89. define Package/knxd-tools/install
  90. $(INSTALL_DIR) $(1)/usr/bin
  91. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/knxtool $(1)/usr/bin/
  92. ln -sf knxtool $(1)/usr/bin/knxread
  93. ln -sf knxtool $(1)/usr/bin/knxreadtemp
  94. ln -sf knxtool $(1)/usr/bin/knxwrite
  95. ln -sf knxtool $(1)/usr/bin/knxlog
  96. ln -sf knxtool $(1)/usr/bin/knxon
  97. ln -sf knxtool $(1)/usr/bin/knxoff
  98. ln -sf knxtool $(1)/usr/bin/knxif
  99. ln -sf knxtool $(1)/usr/bin/knxswrite
  100. ln -sf knxtool $(1)/usr/bin/knxbool
  101. ln -sf knxtool $(1)/usr/bin/knxdimup
  102. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/busmonitor1 $(1)/usr/bin/
  103. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/busmonitor2 $(1)/usr/bin/
  104. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/busmonitor3 $(1)/usr/bin/
  105. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/eibread-cgi $(1)/usr/bin/
  106. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/eibwrite-cgi $(1)/usr/bin/
  107. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/vbusmonitor1 $(1)/usr/bin/
  108. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/vbusmonitor2 $(1)/usr/bin/
  109. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/vbusmonitor3 $(1)/usr/bin/
  110. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupwrite $(1)/usr/bin/
  111. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupswrite $(1)/usr/bin/
  112. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/grouplisten $(1)/usr/bin/
  113. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupread $(1)/usr/bin/
  114. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupresponse $(1)/usr/bin/
  115. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupreadresponse $(1)/usr/bin/
  116. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupsocketlisten $(1)/usr/bin/
  117. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupsocketread $(1)/usr/bin/
  118. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupsocketwrite $(1)/usr/bin/
  119. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupsocketswrite $(1)/usr/bin/
  120. endef
  121. $(eval $(call BuildPackage,knxd))
  122. $(eval $(call BuildPackage,libeibclient))
  123. $(eval $(call BuildPackage,knxd-tools))