a0c6efe517e88c58ac58b5923524a45d771f40e1
[openwrt/staging/stintel.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:=2023-12-05
16 PKG_SOURCE_VERSION:=965c4bf49658342ced0bd6e7cb069571b4a1ddff
17 PKG_MIRROR_HASH:=93596c2686926a470b6bf322f6c166a420a08abe1ea715b4ae8c9df3de00eb28
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 $(CP) $(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 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-tiny.so.* $(1)/usr/lib/
47 endef
48
49 $(eval $(call BuildPackage,libnl-tiny))