Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libnetfilter_acct
  9. PKG_VERSION:=1.0.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:= \
  13. http://www.netfilter.org/projects/libnetfilter_acct/files/ \
  14. ftp://ftp.netfilter.org/pub/libnetfilter_acct/ \
  15. http://mirrors.evolva.ro/netfilter.org/libnetfilter_acct/
  16. PKG_MD5SUM:=2118d9514c079839ebd9cb3144ad2ad7
  17. PKG_LICENSE:=LGPL-2.1+
  18. PKG_LICENSE_FILES:=COPYING
  19. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  20. PKG_FIXUP:=autoreconf
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libnetfilter-acct
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=API to extended accounting infrastructure
  27. URL:=http://www.netfilter.org/projects/libnetfilter_acct/
  28. DEPENDS:=+libmnl
  29. endef
  30. define Package/libnetfilter-acct/description
  31. libnetfilter_acct is a userspace library providing a programming interface
  32. (API) to the extended accounting infrastructure.
  33. endef
  34. TARGET_CFLAGS += $(FPIC)
  35. CONFIGURE_ARGS += \
  36. --enable-static \
  37. --enable-shared \
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_acct \
  42. $(1)/usr/include/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_acct*.{so*,a,la} \
  46. $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_acct.pc \
  50. $(1)/usr/lib/pkgconfig/
  51. endef
  52. define Package/libnetfilter-acct/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_acct.so.* $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,libnetfilter-acct))