procd: update to the latest version
[openwrt/openwrt.git] / package / libs / libnetfilter-cttimeout / Makefile
1 #
2 # Copyright (C) 2009-2013 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:=libnetfilter_cttimeout
11 PKG_VERSION:=1.0.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:= \
16 http://www.netfilter.org/projects/libnetfilter_cttimeout/files/ \
17 ftp://ftp.netfilter.org/pub/libnetfilter_cttimeout/
18 PKG_MD5SUM:=7697437fc9ebb6f6b83df56a633db7f9
19
20 PKG_FIXUP:=autoreconf
21 PKG_LICENSE:=GPL-2.0+
22
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libnetfilter-cttimeout
28 SECTION:=libs
29 CATEGORY:=Libraries
30 DEPENDS:=+libmnl
31 TITLE:=API to the in-kernel connection tracking timeout infrastructure
32 URL:=http://www.netfilter.org/projects/libnetfilter_cttimeout/
33 endef
34
35 define Package/libnetfilter-cttimeout/description
36 libnetfilter_cttimeout is a userspace library providing a programming
37 interface (API) to the in-kernel connection tracking timeout handling.
38 This library is currently used by conntrack-tools.
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42
43 CONFIGURE_ARGS += \
44 --enable-static \
45 --enable-shared \
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include/libnetfilter_cttimeout
49 $(CP) \
50 $(PKG_INSTALL_DIR)/usr/include/libnetfilter_cttimeout/*.h \
51 $(1)/usr/include/libnetfilter_cttimeout/
52
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cttimeout.{so*,a,la} \
56 $(1)/usr/lib/
57
58 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_cttimeout.pc \
61 $(1)/usr/lib/pkgconfig/
62 endef
63
64 define Package/libnetfilter-cttimeout/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) \
67 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cttimeout.so.* \
68 $(1)/usr/lib/
69 endef
70
71 $(eval $(call BuildPackage,libnetfilter-cttimeout))