[backfire] switch back to LuCI 0.10 branch for post-release fixes
[openwrt-10.03/.git] / package / libnl-tiny / 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-tiny
11 PKG_VERSION:=0.1
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/libnl-tiny
17   SECTION:=libs
18   CATEGORY:=Libraries
19   TITLE:=netlink socket library
20 endef
21
22 define Package/libnl-tiny/description
23  This package contains a stripped down version of libnl
24 endef
25
26 define Build/Prepare
27         mkdir -p $(PKG_BUILD_DIR)
28         $(CP) ./src/* $(PKG_BUILD_DIR)/
29 endef
30
31 TARGET_CFLAGS += $(FPIC)
32
33 define Build/Compile
34         $(MAKE) -C $(PKG_BUILD_DIR) \
35                 $(TARGET_CONFIGURE_OPTS) \
36                 CFLAGS="$(TARGET_CFLAGS)" \
37                 all
38 endef
39
40 define 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
45 endef
46
47 define Package/libnl-tiny/install
48         $(INSTALL_DIR) $(1)/usr/lib
49         $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,libnl-tiny))