Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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_MD5SUM:=708bb0b5a6806ad6e8d13c55b067518e
  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))