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_SOURCE_URL=$(PROJECT_GIT)/project/libnl-tiny.git
15 PKG_SOURCE_DATE:=2019-10-29
16 PKG_SOURCE_VERSION:=0219008cc8767655d7e747497e8e1133a3e8f840
17 PKG_MIRROR_HASH:=b84fab21374c6ddbf992acc4ec1c9c6896b32af97603027ca5c866d69d95780f
21 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/cmake.mk
26 define Package/libnl-tiny
29 TITLE:=netlink socket library
32 define Package/libnl-tiny/description
33 This package contains a stripped down version of libnl
36 define Build/InstallDev
37 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(1)/usr/include/libnl-tiny
38 $(CP) $(PKG_INSTALL_DIR)/usr/include/libnl-tiny/* $(1)/usr/include/libnl-tiny
39 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnl-tiny.so $(1)/usr/lib/
40 $(INSTALL_DATA) $(PKG_BUILD_DIR)/libnl-tiny.pc $(1)/usr/lib/pkgconfig
43 define Package/libnl-tiny/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnl-tiny.so $(1)/usr/lib/
48 $(eval $(call BuildPackage,libnl-tiny))