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.

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