b2eafe259a25cb7525fb337f5a2bd33deb66bf89
[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_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL=$(PROJECT_GIT)/project/libnl-tiny.git
15 PKG_SOURCE_DATE:=2020-08-05
16 PKG_SOURCE_VERSION:=c291088f631d1694f7ba0444b59677b194348da8
17 PKG_MIRROR_HASH:=99bcce12701bb34dadb39689d95c2c5cf1e27719d0ecfd645d3957a8947025ac
18 CMAKE_INSTALL:=1
19
20 PKG_LICENSE:=LGPL-2.1
21 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/cmake.mk
25
26 define Package/libnl-tiny
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=netlink socket library
30 ABI_VERSION:=1
31 endef
32
33 define Package/libnl-tiny/description
34 This package contains a stripped down version of libnl
35 endef
36
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(1)/usr/include/libnl-tiny
39 $(CP) $(PKG_INSTALL_DIR)/usr/include/libnl-tiny/* $(1)/usr/include/libnl-tiny
40 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnl-tiny.so $(1)/usr/lib/
41 $(INSTALL_DATA) $(PKG_BUILD_DIR)/libnl-tiny.pc $(1)/usr/lib/pkgconfig
42 endef
43
44 define Package/libnl-tiny/install
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnl-tiny.so $(1)/usr/lib/
47 endef
48
49 $(eval $(call BuildPackage,libnl-tiny))