tools/elfutils: refresh portability patch for macOS
[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:=2019-10-29
16 PKG_SOURCE_VERSION:=0219008cc8767655d7e747497e8e1133a3e8f840
17 PKG_MIRROR_HASH:=b84fab21374c6ddbf992acc4ec1c9c6896b32af97603027ca5c866d69d95780f
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 endef
31
32 define Package/libnl-tiny/description
33 This package contains a stripped down version of libnl
34 endef
35
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
41 endef
42
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/
46 endef
47
48 $(eval $(call BuildPackage,libnl-tiny))