nghttp3: fix pkgconfig file
[feed/packages.git] / libs / libnetfilter-acct / Makefile
1 #
2 # Copyright (C) 2009-2015 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_acct
11 PKG_VERSION:=1.0.3
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://netfilter.org/projects/libnetfilter_acct/files
16 PKG_HASH:=4250ceef3efe2034f4ac05906c3ee427db31b9b0a2df41b2744f4bf79a959a1a
17
18 PKG_LICENSE:=LGPL-2.1-or-later
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libnetfilter-acct
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=API to extended accounting infrastructure
31 URL:=http://www.netfilter.org/projects/libnetfilter_acct/
32 DEPENDS:=+libmnl
33 endef
34
35 define Package/libnetfilter-acct/description
36 libnetfilter_acct is a userspace library providing a programming interface
37 (API) to the extended accounting infrastructure.
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41
42 CONFIGURE_ARGS += \
43 --enable-static \
44 --enable-shared \
45
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include
49 $(CP) \
50 $(PKG_INSTALL_DIR)/usr/include/libnetfilter_acct \
51 $(1)/usr/include/
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) \
54 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_acct*.{so*,a,la} \
55 $(1)/usr/lib/
56 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
57 $(CP) \
58 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_acct.pc \
59 $(1)/usr/lib/pkgconfig/
60 endef
61
62 define Package/libnetfilter-acct/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_acct.so.* $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,libnetfilter-acct))