treewide: switch git.netfilter.org to HTTPS
[openwrt/openwrt.git] / package / libs / libnftnl / Makefile
1 #
2 # Copyright (C) 2014 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:=libnftnl
11 PKG_VERSION:=1.0.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=https://git.netfilter.org/libnftnl
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_VERSION:=libnftnl-1.0.7
17 PKG_MIRROR_HASH:=d38a409d52074a5b20f5b7477b385506692a9a05ec6f4ac3d14a8a80aa4f81d9
18 PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
19 PKG_LICENSE:=GPL-2.0+
20
21 PKG_FIXUP:=autoreconf
22
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libnftnl
28 SECTION:=libs
29 CATEGORY:=Libraries
30 DEPENDS:=+libmnl
31 TITLE:=Low-level netlink library for the nf_tables subsystem
32 URL:=http://www.netfilter.org/projects/libnftnl
33 endef
34
35 define Package/libnftnl/description
36 libnftnl is a userspace library providing a low-level netlink
37 programming interface (API) to the in-kernel nf_tables subsystem.
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41
42 CONFIGURE_ARGS += \
43 --enable-static \
44 --enable-shared \
45 --without-json-parsing \
46 --without-xml-parsing \
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include/libnftnl
50 $(CP) \
51 $(PKG_INSTALL_DIR)/usr/include/libnftnl/*.h \
52 $(1)/usr/include/libnftnl/
53
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) \
56 $(PKG_INSTALL_DIR)/usr/lib/libnftnl.{so*,a,la} \
57 $(1)/usr/lib/
58
59 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
60 $(CP) \
61 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnftnl.pc \
62 $(1)/usr/lib/pkgconfig/
63 endef
64
65 define Package/libnftnl/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) \
68 $(PKG_INSTALL_DIR)/usr/lib/libnftnl.so.* \
69 $(1)/usr/lib/
70 endef
71
72 $(eval $(call BuildPackage,libnftnl))