dd8fd9f09e757676cad6b1fcf3c70f711a110902
[openwrt/openwrt.git] / package / libs / libnetfilter-queue / Makefile
1 #
2 # Copyright (C) 2009-2013 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:=libnetfilter_queue
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL=http://git.netfilter.org/libnetfilter_queue
15 PKG_SOURCE_DATE:=2016-07-03
16 PKG_SOURCE_VERSION:=981025e103d887fb6a9c9bb49c74ec323108d098
17 PKG_MIRROR_HASH:=85c124be0e19162e1ebd1aba6e7e86bb4106e9dab4267baaf66d3ccb48d56e3f
18
19 PKG_FIXUP:=autoreconf
20 PKG_LICENSE:=GPL-2.0+
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libnetfilter-queue
27 SECTION:=libs
28 CATEGORY:=Libraries
29 DEPENDS:=+libmnl +libnfnetlink
30 TITLE:=API to the in-kernel connection tracking queue infrastructure
31 URL:=http://www.netfilter.org/projects/libnetfilter_queue/
32 endef
33
34 define Package/libnetfilter-queue/description
35 libnetfilter_queue is a userspace library providing a programming
36 interface (API) to the in-kernel connection tracking state table.
37 This library is currently used by conntrack-tools.
38 endef
39
40 TARGET_CFLAGS += $(FPIC) -D_GNU_SOURCE=1
41
42 CONFIGURE_ARGS += \
43 --enable-static \
44 --enable-shared \
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include/libnetfilter_queue
48 $(CP) \
49 $(PKG_INSTALL_DIR)/usr/include/libnetfilter_queue/*.h \
50 $(1)/usr/include/libnetfilter_queue/
51
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) \
54 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue.{so*,a,la} \
55 $(1)/usr/lib/
56
57 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_queue.pc \
60 $(1)/usr/lib/pkgconfig/
61 endef
62
63 define Package/libnetfilter-queue/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) \
66 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue.so.* \
67 $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libnetfilter-queue))