2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=https
://netfilter.org
/projects
/$(PKG_NAME
)/files
16 PKG_HASH
:=fec1d824aee301e59a11aeaae2a2d429cb99ead81e6bafab791a4dd6569b3635
17 PKG_MAINTAINER
:=Steven Barth
<steven@midlink.org
>
24 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libnftnl
32 TITLE
:=Low-level netlink library for the nf_tables subsystem
33 URL
:=http
://www.netfilter.org
/projects
/libnftnl
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.
41 TARGET_CFLAGS
+= $(FPIC
)
46 --without-json-parsing
48 define Build
/InstallDev
49 $(INSTALL_DIR
) $(1)/usr
/include/libnftnl
51 $(PKG_INSTALL_DIR
)/usr
/include/libnftnl
/*.h \
52 $(1)/usr
/include/libnftnl
/
54 $(INSTALL_DIR
) $(1)/usr
/lib
56 $(PKG_INSTALL_DIR
)/usr
/lib
/libnftnl.
{so
*,a
,la
} \
59 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
61 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libnftnl.
pc \
62 $(1)/usr
/lib
/pkgconfig
/
65 define Package
/libnftnl
/install
66 $(INSTALL_DIR
) $(1)/usr
/lib
68 $(PKG_INSTALL_DIR
)/usr
/lib
/libnftnl.so.
* \
72 $(eval
$(call BuildPackage
,libnftnl
))