Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libnetfilter_conntrack
  9. PKG_RELEASE:=2
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://git.netfilter.org/libnetfilter_conntrack
  12. PKG_SOURCE_DATE:=2018-05-01
  13. PKG_SOURCE_VERSION:=3ccae9f5b2a9564cd63699ba60e54a46bc0d73b6
  14. PKG_MIRROR_HASH:=c978ef0fa5b7379de2909ca5d9c599ac63b4f8166f5971d58f6e074a922d996f
  15. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  16. PKG_FIXUP:=autoreconf
  17. PKG_LICENSE:=GPL-2.0+
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libnetfilter-conntrack
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+libnfnetlink +kmod-nf-conntrack-netlink +libmnl
  24. TITLE:=API to the in-kernel connection tracking state table
  25. URL:=http://www.netfilter.org/projects/libnetfilter_conntrack/
  26. ABI_VERSION:=3
  27. endef
  28. define Package/libnetfilter-conntrack/description
  29. libnetfilter_conntrack is a userspace library providing a programming
  30. interface (API) to the in-kernel connection tracking state table. The
  31. library libnetfilter_conntrack has been previously known as
  32. libnfnetlink_conntrack and libctnetlink. This library is currently
  33. used by conntrack-tools among many other applications.
  34. endef
  35. TARGET_CFLAGS += $(FPIC)
  36. CONFIGURE_ARGS += \
  37. --enable-static \
  38. --enable-shared \
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_conntrack
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_conntrack/*.h \
  43. $(1)/usr/include/libnetfilter_conntrack/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_conntrack.{so*,a,la} \
  47. $(1)/usr/lib/
  48. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  49. $(CP) \
  50. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_conntrack.pc \
  51. $(1)/usr/lib/pkgconfig/
  52. endef
  53. define Package/libnetfilter-conntrack/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) \
  56. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_conntrack.so.* \
  57. $(1)/usr/lib/
  58. endef
  59. $(eval $(call BuildPackage,libnetfilter-conntrack))