libnftnl: bump to latest git
[openwrt/svn-archive/archive.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.2+2014-11-20
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=git://git.netfilter.org/libnftnl
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=71b6057121aded54912b0fced256833c08db20df
19 PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
20 PKG_LICENSE:=GPL-2.0+
21
22 PKG_FIXUP:=autoreconf
23
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
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 --without-xml-parsing \
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include/libnftnl
51 $(CP) \
52 $(PKG_INSTALL_DIR)/usr/include/libnftnl/*.h \
53 $(1)/usr/include/libnftnl/
54
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) \
57 $(PKG_INSTALL_DIR)/usr/lib/libnftnl.{so*,a,la} \
58 $(1)/usr/lib/
59
60 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
61 $(CP) \
62 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnftnl.pc \
63 $(1)/usr/lib/pkgconfig/
64 endef
65
66 define Package/libnftnl/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) \
69 $(PKG_INSTALL_DIR)/usr/lib/libnftnl.so.* \
70 $(1)/usr/lib/
71 endef
72
73 $(eval $(call BuildPackage,libnftnl))