libnftnl: bump to version 1.1.1
[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.1.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://netfilter.org/projects/$(PKG_NAME)/files
16 PKG_HASH:=5d6a65413f27ec635eedf6aba033f7cf671d462a2afeacc562ba96b19893aff2
17 PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
18 PKG_LICENSE:=GPL-2.0+
19
20 PKG_FIXUP:=autoreconf
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 DISABLE_NLS:=
27
28 define Package/libnftnl
29 SECTION:=libs
30 CATEGORY:=Libraries
31 DEPENDS:=+libmnl
32 TITLE:=Low-level netlink library for the nf_tables subsystem
33 URL:=http://www.netfilter.org/projects/libnftnl
34 endef
35
36 define Package/libnftnl/description
37 libnftnl is a userspace library providing a low-level netlink
38 programming interface (API) to the in-kernel nf_tables subsystem.
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42
43 CONFIGURE_ARGS += \
44 --enable-static \
45 --enable-shared \
46 --without-json-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))