hostapd: use libnl-tiny instead of libnl
[openwrt.git] / package / libnl / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libnl
11 PKG_VERSION:=1.1
12 PKG_RELEASE:=4
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
16 PKG_MD5SUM:=ae970ccd9144e132b68664f98e7ceeb1
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libnl
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=netlink socket library
24 URL:=http://people.suug.ch/~tgr/libnl/
25 endef
26
27 define Package/libnl/description
28 This package contains a library for applications dealing with netlink sockets
29 endef
30
31 TARGET_CFLAGS += -ffunction-sections $(FPIC)
32
33 define Build/Compile
34 $(call Build/Compile/Default)
35 make -C $(PKG_BUILD_DIR) \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
37 install
38 endef
39
40 ifneq ($(CONFIG_LINUX_2_6),)
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)
43 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
44 mkdir -p $(1)/usr/include/libnl
45 $(CP) $(PKG_BUILD_DIR)/include/linux $(1)/usr/include/libnl/
46 endef
47
48 define Package/libnl/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl.so.* $(1)/usr/lib/
51 endef
52 endif
53
54 $(eval $(call BuildPackage,libnl))
This page took 0.064626 seconds and 5 git commands to generate.