317d24b4d34c6d2b6946fdb1466134cc6a7b91c1
[openwrt/staging/ldir.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:=2021-11-21
16 PKG_SOURCE_VERSION:=8e0555fb39f51a5d6436b4f1370850caa03611ea
17 PKG_MIRROR_HASH:=2cfbcc62384535674a2c0157cb24a0736520fcb66ed50be23bf9141c8488885f
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))