unixodbc: moved to github
[packages.git] / libs / sctp / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lksctp-tools
11 PKG_VERSION:=1.0.11
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/lksctp/
16 PKG_MD5SUM:=e9cf6c57402c9d4f1173a9529466e16d
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 #####
24 ## lksctp library: provides sctp_* functions in user space
25 #####
26
27 define Package/sctp
28   SECTION:=libs
29   CATEGORY:=Network
30   TITLE:=SCTP user-land library
31   URL:=http://lksctp.sourceforge.net
32   DEPENDS:=+kmod-sctp
33 endef
34
35 define Package/sctp/description
36  SCTP user-land library for sctp_* functions (when socket API is too limited).
37 endef
38
39 TARGET_LDFLAGS := -L$(STAGING_DIR)/usr/lib $(TARGET_LDFLAGS)
40
41 define Package/sctp/install
42         # Install the library in the router
43         $(INSTALL_DIR) $(1)/usr/lib
44         $(CP) \
45                 $(PKG_INSTALL_DIR)/usr/lib/libsctp.so* \
46                 $(1)/usr/lib/
47         # And also in staging for dependent packages
48         $(INSTALL_DIR) $(STAGING_DIR)/usr/include/netinet
49         $(CP) \
50                 $(PKG_INSTALL_DIR)/usr/include/netinet/* \
51                 $(STAGING_DIR)/usr/include/netinet/
52         $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
53         $(CP) \
54                 $(PKG_INSTALL_DIR)/usr/lib/libsctp.so* \
55                 $(STAGING_DIR)/usr/lib/
56
57 endef
58
59 $(eval $(call BuildPackage,sctp))
60