2 # Copyright (C) 2010 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
:=e9cf6c57402c9d4f1173a9529466e16d
21 include $(INCLUDE_DIR
)/package.mk
24 ## lksctp library: provides sctp_* functions in user space
30 TITLE
:=SCTP user-land library
31 URL
:=http
://lksctp.sourceforge.net
35 define Package
/sctp
/description
36 SCTP user-land library for sctp_
* functions
(when socket API is too limited
).
39 TARGET_LDFLAGS
:= -L
$(STAGING_DIR
)/usr
/lib
$(TARGET_LDFLAGS
)
41 define Package
/sctp
/install
42 # Install the library in the router
43 $(INSTALL_DIR
) $(1)/usr
/lib
45 $(PKG_INSTALL_DIR
)/usr
/lib
/libsctp.so
* \
47 # And also in staging for dependent packages
48 $(INSTALL_DIR
) $(STAGING_DIR
)/usr
/include/netinet
50 $(PKG_INSTALL_DIR
)/usr
/include/netinet
/* \
51 $(STAGING_DIR
)/usr
/include/netinet
/
52 $(INSTALL_DIR
) $(STAGING_DIR
)/usr
/lib
54 $(PKG_INSTALL_DIR
)/usr
/lib
/libsctp.so
* \
55 $(STAGING_DIR
)/usr
/lib
/
59 $(eval
$(call BuildPackage
,sctp
))