source: trunk/package/libnl-tiny/Makefile @ 31155

Last change on this file since 31155 was 31155, checked in by jow, 4 years ago

[package] libnl-tiny: port upstream bugfix 8ee16e6688657886f591f0841cb8e892743ecf2a from libnl, fixes error on hostapd interface initialization

File size: 1.1 KB
Line 
1#
2# Copyright (C) 2006-2012 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-tiny
11PKG_VERSION:=0.1
12PKG_RELEASE:=3
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/libnl-tiny
17  SECTION:=libs
18  CATEGORY:=Libraries
19  TITLE:=netlink socket library
20endef
21
22define Package/libnl-tiny/description
23 This package contains a stripped down version of libnl
24endef
25
26define Build/Prepare
27        mkdir -p $(PKG_BUILD_DIR)
28        $(CP) ./src/* $(PKG_BUILD_DIR)/
29endef
30
31TARGET_CFLAGS += $(FPIC)
32
33define Build/Compile
34        $(MAKE) -C $(PKG_BUILD_DIR) \
35                $(TARGET_CONFIGURE_OPTS) \
36                CFLAGS="$(TARGET_CFLAGS)" \
37                all
38endef
39
40define Build/InstallDev
41        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(1)/usr/include/libnl-tiny
42        $(CP) $(PKG_BUILD_DIR)/include/* $(1)/usr/include/libnl-tiny
43        $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/usr/lib/
44        $(CP) ./files/libnl-tiny.pc $(1)/usr/lib/pkgconfig
45endef
46
47define Package/libnl-tiny/install
48        $(INSTALL_DIR) $(1)/usr/lib
49        $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/usr/lib/
50endef
51
52$(eval $(call BuildPackage,libnl-tiny))
Note: See TracBrowser for help on using the repository browser.