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.

86 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2010-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:=lksctp-tools
  9. PKG_VERSION:=1.0.18
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/sctp/lksctp-tools/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=3e9ab5b3844a8b65fc8152633aafe85f406e6da463e53921583dfc4a443ff03a
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/lksctp-tools/Default
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=SCTP user-land
  25. URL:=http://lksctp.sourceforge.net
  26. endef
  27. define Package/libsctp
  28. $(call Package/lksctp-tools/Default)
  29. SUBMENU:=Networking
  30. SECTION:=libs
  31. CATEGORY:=Libraries
  32. TITLE+= library
  33. DEPENDS:=+kmod-sctp
  34. endef
  35. define Package/sctp
  36. $(call Package/lksctp-tools/Default)
  37. TITLE+= (meta)
  38. DEPENDS:=+libsctp +sctp-tools
  39. endef
  40. define Package/sctp-tools
  41. $(call Package/lksctp-tools/Default)
  42. TITLE+= tools
  43. DEPENDS:=+libsctp
  44. endef
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include/netinet
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/include/netinet/sctp.h \
  49. $(1)/usr/include/netinet
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/libsctp.{a,so*} \
  53. $(1)/usr/lib/
  54. endef
  55. define Package/libsctp/install
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) \
  58. $(PKG_INSTALL_DIR)/usr/lib/libsctp.so.* \
  59. $(1)/usr/lib/
  60. endef
  61. define Package/sctp-tools/install
  62. $(INSTALL_DIR) $(1)/usr/bin
  63. $(INSTALL_BIN) \
  64. $(PKG_INSTALL_DIR)/usr/bin/checksctp \
  65. $(1)/usr/bin/
  66. $(INSTALL_BIN) \
  67. $(PKG_INSTALL_DIR)/usr/bin/sctp_{darn,status,test} \
  68. $(1)/usr/bin/
  69. endef
  70. $(eval $(call BuildPackage,libsctp))
  71. $(eval $(call BuildPackage,sctp))
  72. $(eval $(call BuildPackage,sctp-tools))