2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_LICENSE
:=GPLv2 LGPLv2.1
17 PKG_MAINTAINER
:=Felix Fietkau
<nbd@openwrt.org
>
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/libnl-tiny
24 TITLE
:=netlink socket library
27 define Package
/libnl-tiny
/description
28 This package contains a stripped down version of libnl
32 mkdir
-p
$(PKG_BUILD_DIR
)
33 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
36 TARGET_CFLAGS
+= $(FPIC
)
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 $(TARGET_CONFIGURE_OPTS
) \
41 CFLAGS
="$(TARGET_CFLAGS)" \
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
52 define Package
/libnl-tiny
/install
53 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(CP
) $(PKG_BUILD_DIR
)/libnl-tiny.so
$(1)/usr
/lib
/
57 $(eval
$(call BuildPackage
,libnl-tiny
))