source: trunk/package/libnl/Makefile @ 14234

Last change on this file since 14234 was 14234, checked in by juhosg, 7 years ago

[package] libnl: update linux/genetlink.h for iw package (thanks to Hauke Mehrtens <hauke@…>)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 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# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=libnl
12PKG_VERSION:=1.1
13PKG_RELEASE:=4
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://people.suug.ch/~tgr/libnl/files/
17PKG_MD5SUM:=ae970ccd9144e132b68664f98e7ceeb1
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/libnl
22  SECTION:=libs
23  CATEGORY:=Libraries
24  TITLE:=netlink socket library
25  URL:=http://people.suug.ch/~tgr/libnl/
26endef
27
28define Package/libnl/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
41ifneq ($(CONFIG_LINUX_2_6),)
42  define Build/InstallDev
43        $(INSTALL_DIR) $(1)
44        $(CP) $(PKG_INSTALL_DIR)/* $(1)/
45        mkdir -p $(1)/usr/include/libnl
46        $(CP) $(PKG_BUILD_DIR)/include/linux $(1)/usr/include/libnl/
47  endef
48
49  define Package/libnl/install
50        $(INSTALL_DIR) $(1)/usr/lib
51        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl.so.* $(1)/usr/lib/
52  endef
53endif
54
55$(eval $(call BuildPackage,libnl))
Note: See TracBrowser for help on using the repository browser.