[packages] massive change: replace occurences of -I$(STAGING_DIR)/{include,usr/includ...
[openwrt/svn-archive/archive.git] / libs / libnetfilter-log / Makefile
1 #
2 # Copyright (C) 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 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=libnetfilter_log
12 PKG_VERSION:=0.0.15
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.netfilter.org/pub/libnetfilter_log/
16 PKG_MD5SUM:=310ddd9e0c2bb6108b5fa33cd2666008
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libnetfilter-log
23 SECTION:=libs
24 CATEGORY:=Libraries
25 DEPENDS:=@LINUX_2_6 +libnfnetlink +kmod-nfnetlink-log
26 TITLE:=API to packets logged by the kernel packet filter
27 URL:=http://www.netfilter.org/projects/libnetfilter_log/
28 endef
29
30 define Package/libnetfilter-log/description
31 libnetfilter_log is a userspace library providing interface to
32 packets that have been logged by the kernel packet filter.
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 CONFIGURE_ARGS += \
38 --enable-static \
39 --enable-shared \
40
41 CONFIGURE_VARS += \
42 LIBNFNETLINK_CFLAGS="$(TARGET_CPPFLAGS)" \
43 LIBNFNETLINK_LIBS="$(TARGET_LDFLAGS)"
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) all
47 $(call libtool_fixup_libdir)
48 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
49 endef
50
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/include/libnetfilter_log
54 $(INSTALL_DATA) \
55 $(PKG_INSTALL_DIR)/usr/include/libnetfilter_log/*.h \
56 $(1)/usr/include/libnetfilter_log/
57
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log*.{so*,a,la} \
61 $(1)/usr/lib/
62
63 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
64 $(INSTALL_DATA) \
65 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_log.pc \
66 $(1)/usr/lib/pkgconfig/
67 endef
68
69 define Package/libnetfilter-log/install
70 $(INSTALL_DIR) $(1)/usr/lib
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log*.so.* $(1)/usr/lib/
72 endef
73
74 $(eval $(call BuildPackage,libnetfilter-log))