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
18 PKG_BUILD_DEPENDS
:=binutils
22 include $(INCLUDE_DIR
)/package.mk
25 ## lksctp library: provides sctp_* functions in user space
31 TITLE
:=SCTP user-land library
32 URL
:=http
://lksctp.sourceforge.net
36 define Package
/sctp
/description
37 SCTP user-land library for sctp_
* functions
(when socket API is too limited
).
40 TARGET_LDFLAGS
:= -L
$(STAGING_DIR
)/usr
/lib
$(TARGET_LDFLAGS
)
42 define Package
/sctp
/install
43 # Install the library in the router
44 $(INSTALL_DIR
) $(1)/usr
/lib
46 $(PKG_INSTALL_DIR
)/usr
/lib
/libsctp.so
* \
48 # And also in staging for dependent packages
49 $(INSTALL_DIR
) $(STAGING_DIR
)/usr
/include/netinet
51 $(PKG_INSTALL_DIR
)/usr
/include/netinet
/* \
52 $(STAGING_DIR
)/usr
/include/netinet
/
53 $(INSTALL_DIR
) $(STAGING_DIR
)/usr
/lib
55 $(PKG_INSTALL_DIR
)/usr
/lib
/libsctp.so
* \
56 $(STAGING_DIR
)/usr
/lib
/
60 $(eval
$(call BuildPackage
,sctp
))