licensing: Add licensing metadata to many packages Two new variables are introduces...
[openwrt/openwrt.git] / package / libs / libnl-tiny / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libnl-tiny
11 PKG_VERSION:=0.1
12 PKG_RELEASE:=3
13
14 PKG_LICENSE:=GPLv2 LGPLv2.1
15 PKG_LICENSE_FILES:=
16
17 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libnl-tiny
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=netlink socket library
25 endef
26
27 define Package/libnl-tiny/description
28 This package contains a stripped down version of libnl
29 endef
30
31 define Build/Prepare
32 mkdir -p $(PKG_BUILD_DIR)
33 $(CP) ./src/* $(PKG_BUILD_DIR)/
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 $(TARGET_CONFIGURE_OPTS) \
41 CFLAGS="$(TARGET_CFLAGS)" \
42 all
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(1)/usr/include/libnl-tiny
47 $(CP) $(PKG_BUILD_DIR)/include/* $(1)/usr/include/libnl-tiny
48 $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/usr/lib/
49 $(CP) ./files/libnl-tiny.pc $(1)/usr/lib/pkgconfig
50 endef
51
52 define Package/libnl-tiny/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libnl-tiny))