Date:2013-03-31 10:02:57 (7 years 3 months ago)
Author:kyak
Commit:e360db6c8835c1807f39a75b245befe4a69fb743
Message:libnl-3: initial commit

Files: libnl-3/Makefile (1 diff)

Change Details

libnl-3/Makefile
1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=libnl-3
9PKG_VERSION:=3.2.21
10PKG_RELEASE:=1
11
12PKG_SOURCE:=libnl-$(PKG_VERSION).tar.gz
13PKG_SOURCE_URL:=http://www.infradead.org/~tgr/libnl/files/
14PKG_MD5SUM:=6fe7136558a9071e70673dcda38545b3
15
16PKG_BUILD_DIR=$(BUILD_DIR)/libnl-$(PKG_VERSION)
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/libnl-3
21  SECTION:=libs
22  CATEGORY:=Libraries
23  TITLE:=netlink socket library
24  URL:=http://people.suug.ch/~tgr/libnl/
25  DEPENDS:=+libpthread
26endef
27
28define Package/libnl-3/description
29 This package contains a library for applications dealing with netlink sockets
30endef
31
32TARGET_CFLAGS += -ffunction-sections $(FPIC)
33
34define Build/Compile
35    $(call Build/Compile/Default)
36    make -C $(PKG_BUILD_DIR) \
37        DESTDIR="$(PKG_INSTALL_DIR)" \
38        install
39endef
40
41define Build/InstallDev
42    $(INSTALL_DIR) $(1)
43    $(CP) $(PKG_INSTALL_DIR)/* $(1)/
44    mkdir -p $(1)/usr/include/libnl3
45    $(CP) $(PKG_BUILD_DIR)/include/linux $(1)/usr/include/libnl3/
46endef
47
48define Package/libnl-3/install
49    $(INSTALL_DIR) $(1)/usr/lib
50    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-route-3.so.* $(1)/usr/lib/
51    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-genl-3.so.* $(1)/usr/lib/
52    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-nf-3.so.* $(1)/usr/lib/
53    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-route-3.so.* $(1)/usr/lib/
54    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-3.so.* $(1)/usr/lib/
55endef
56
57$(eval $(call BuildPackage,libnl-3))

Archive Download the corresponding diff file



interactive