8a3e06cb3478247f2ec8184d559e60d5c66684f7
[openwrt/staging/wigyori.git] / package / libs / libnfnetlink / Makefile
1 #
2 # Copyright (C) 2007-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:=libnfnetlink
11 PKG_VERSION:=1.0.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:= \
16 http://www.netfilter.org/projects/libnfnetlink/files/ \
17 ftp://ftp.netfilter.org/pub/libnfnetlink/ \
18 http://mirrors.evolva.ro/netfilter.org/libnfnetlink/
19 PKG_MD5SUM:=98927583d2016a9fb1936fed992e2c5e
20 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
21 PKG_LICENSE:=GPL-2.0+
22
23 PKG_LICENSE:=GPL-2.0
24 PKG_LICENSE_FILES:=COPYING
25
26 PKG_FIXUP:=autoreconf
27
28 PKG_INSTALL:=1
29
30 include $(INCLUDE_DIR)/package.mk
31
32 define Package/libnfnetlink
33 SECTION:=libs
34 CATEGORY:=Libraries
35 TITLE:=A low-level library for netfilter related kernel/userspace communication
36 URL:=http://netfilter.org/projects/libnfnetlink/
37 endef
38
39 define Package/libnfnetlink/description
40 libnfnetlink is is the low-level library for netfilter related kernel/userspace communication.
41 It provides a generic messaging infrastructure for in-kernel netfilter subsystems
42 (such as nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their respective users
43 and/or management tools in userspace.
44 endef
45
46 TARGET_CFLAGS += $(FPIC)
47
48 CONFIGURE_ARGS += \
49 --enable-static \
50 --enable-shared
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/include/libnfnetlink
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/include/libnfnetlink/{libnfnetlink,linux_nfnetlink,linux_nfnetlink_compat}.h \
56 $(1)/usr/include/libnfnetlink/
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.{a,so*} \
60 $(1)/usr/lib/
61 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
62 $(CP) \
63 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnfnetlink.pc \
64 $(1)/usr/lib/pkgconfig/
65 endef
66
67 define Package/libnfnetlink/install
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) \
70 $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.so.* \
71 $(1)/usr/lib/
72 endef
73
74 $(eval $(call BuildPackage,libnfnetlink))