nuke $Id$ in /packages as well
[openwrt/svn-archive/archive.git] / libs / libnfnetlink / Makefile
1 #
2 # Copyright (C) 2007-2009 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:=0.0.40
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.netfilter.org/pub/libnfnetlink/
16 PKG_MD5SUM:=3fe19dc4b05ba7e7e6216123097c2819
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libnfnetlink
21 SECTION:=libs
22 CATEGORY:=Libraries
23 DEPENDS:=@LINUX_2_6
24 TITLE:=A low-level library for netfilter related kernel/userspace communication
25 URL:=http://netfilter.org/projects/libnfnetlink/
26 endef
27
28 define Package/libnfnetlink/description
29 libnfnetlink is is the low-level library for netfilter related kernel/userspace communication.
30 It provides a generic messaging infrastructure for in-kernel netfilter subsystems
31 (such as nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their respective users
32 and/or management tools in userspace.
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 CONFIGURE_ARGS += \
38 --enable-static \
39 --enable-shared
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 CFLAGS="$(TARGET_CFLAGS)" \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install
46 endef
47
48 define 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/
61 endef
62
63 define Package/libnfnetlink/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) \
66 $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.so.* \
67 $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libnfnetlink))