source: packages/libs/libnetfilter-queue/Makefile @ 12582

Last change on this file since 12582 was 12582, checked in by lars, 8 years ago

Add libtool fixup to libnetfilter-queue.

  • Property copyright set to Copyright (C) 2007-2008 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1#
2# Copyright (C) 2007-2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=libnetfilter_queue
12PKG_VERSION:=0.0.13
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=ftp://ftp.netfilter.org/pub/libnetfilter_queue/
16PKG_MD5SUM:=660cbfd3dc8c10bf9b1803cd2b688256
17PKG_FIXUP:=libtool
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/libnetfilter-queue
22  SECTION:=libs
23  CATEGORY:=Libraries
24  DEPENDS:=@LINUX_2_6 +libnfnetlink
25  TITLE:=libnetfilter_queue
26  URL:=http://www1.cs.columbia.edu/~angelos/libnetfilter_queue.html
27endef
28
29define Package/libnetfilter-queue/description
30        libnetfilter_queue is a userspace library providing an API to packets
31        that have been queued by the kernel packet filter. It is is part of a system
32        that deprecates the old ip_queue / libipq mechanism.
33endef
34
35TARGET_CFLAGS += $(FPIC)
36
37CONFIGURE_ARGS += \
38        --enable-static \
39        --enable-shared \
40        LIBNFNETLINK_CFLAGS="-I$(STAGING_DIR)/usr/include" \
41        LIBNFNETLINK_LIBS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
42
43MAKE_FLAGS += \
44        CFLAGS="$(TARGET_CFLAGS)"
45
46
47define Build/Compile
48        $(MAKE) -C $(PKG_BUILD_DIR) \
49                CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
50                LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
51                DESTDIR="$(PKG_INSTALL_DIR)" \
52                all install
53endef
54
55
56define Build/InstallDev
57        $(INSTALL_DIR) $(1)/usr/include/libnetfilter_queue
58        $(INSTALL_DATA) \
59                $(PKG_INSTALL_DIR)/usr/include/libnetfilter_queue/*.h \
60                $(1)/usr/include/libnetfilter_queue/
61
62        $(INSTALL_DIR) $(1)/usr/lib
63        $(INSTALL_DATA) \
64                $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue*.{so.*,la} \
65                $(1)/usr/lib/
66
67        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
68        $(INSTALL_DATA) \
69                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
70                $(1)/usr/lib/pkgconfig/
71endef
72
73define Package/libnetfilter-queue/install
74        $(INSTALL_DIR) $(1)/usr/lib
75        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue*.{so.*,a} $(1)/usr/lib/
76endef
77
78$(eval $(call BuildPackage,libnetfilter-queue))
Note: See TracBrowser for help on using the repository browser.