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