Root/package/libs/libnfnetlink/Makefile

1#
2# Copyright (C) 2007-2012 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libnfnetlink
11PKG_VERSION:=1.0.0
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_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/
19PKG_MD5SUM:=016fdec8389242615024c529acc1adb8
20PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
21
22PKG_FIXUP:=autoreconf
23
24PKG_INSTALL:=1
25
26include $(INCLUDE_DIR)/package.mk
27
28define Package/libnfnetlink
29  SECTION:=libs
30  CATEGORY:=Libraries
31  TITLE:=A low-level library for netfilter related kernel/userspace communication
32  URL:=http://netfilter.org/projects/libnfnetlink/
33endef
34
35define Package/libnfnetlink/description
36 libnfnetlink is is the low-level library for netfilter related kernel/userspace communication.
37 It provides a generic messaging infrastructure for in-kernel netfilter subsystems
38 (such as nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their respective users
39 and/or management tools in userspace.
40endef
41
42TARGET_CFLAGS += $(FPIC)
43
44CONFIGURE_ARGS += \
45    --enable-static \
46    --enable-shared
47
48define Build/InstallDev
49    $(INSTALL_DIR) $(1)/usr/include/libnfnetlink
50    $(CP) \
51        $(PKG_INSTALL_DIR)/usr/include/libnfnetlink/{libnfnetlink,linux_nfnetlink,linux_nfnetlink_compat}.h \
52        $(1)/usr/include/libnfnetlink/
53    $(INSTALL_DIR) $(1)/usr/lib
54    $(CP) \
55        $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.{a,so*} \
56        $(1)/usr/lib/
57    $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58    $(CP) \
59        $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnfnetlink.pc \
60        $(1)/usr/lib/pkgconfig/
61endef
62
63define Package/libnfnetlink/install
64    $(INSTALL_DIR) $(1)/usr/lib
65    $(CP) \
66        $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.so.* \
67        $(1)/usr/lib/
68endef
69
70$(eval $(call BuildPackage,libnfnetlink))
71

Archive Download this file



interactive