source: trunk/package/libnl/Makefile @ 25513

Last change on this file since 25513 was 25513, checked in by nbd, 5 years ago

libnl: update to version 2.0 (patch by Philip Prindeville)

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