2 # Copyright (C) 2010-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=lksctp-tools
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/lksctp
16 PKG_MD5SUM:=708bb0b5a6806ad6e8d13c55b067518e
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
25 include $(INCLUDE_DIR)/package.mk
27 define Package/lksctp-tools/Default
31 URL:=http://lksctp.sourceforge.net
34 define Package/libsctp
35 $(call Package/lksctp-tools/Default)
40 URL:=http://lksctp.sourceforge.net
45 $(call Package/lksctp-tools/Default)
47 URL:=http://lksctp.sourceforge.net
48 DEPENDS:=+libsctp +sctp-tools
51 define Package/sctp-tools
52 $(call Package/lksctp-tools/Default)
54 URL:=http://lksctp.sourceforge.net
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include
61 $(PKG_INSTALL_DIR)/usr/include/netinet \
62 $(STAGING_DIR)/usr/include/
63 $(INSTALL_DIR) $(1)/usr/lib
65 $(PKG_INSTALL_DIR)/usr/lib/libsctp.{a,so*} \
69 define Package/libsctp/install
70 $(INSTALL_DIR) $(1)/usr/lib
72 $(PKG_INSTALL_DIR)/usr/lib/libsctp.so.* \
76 define Package/sctp/install
80 define Package/sctp-tools/install
81 $(INSTALL_DIR) $(1)/usr/bin
83 $(PKG_INSTALL_DIR)/usr/bin/checksctp \
86 $(PKG_INSTALL_DIR)/usr/bin/sctp_{darn,status,test} \
90 $(eval $(call BuildPackage,libsctp))
91 $(eval $(call BuildPackage,sctp))
92 $(eval $(call BuildPackage,sctp-tools))