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_VERSION:=1.0.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:= \
  13. http://www.netfilter.org/projects/libnetfilter_conntrack/files/ \
  14. PKG_HASH:=efcc08021284e75f4d96d3581c5155a11f08fd63316b1938cbcb269c87f37feb
  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. endef
  27. define Package/libnetfilter-conntrack/description
  28. libnetfilter_conntrack is a userspace library providing a programming
  29. interface (API) to the in-kernel connection tracking state table. The
  30. library libnetfilter_conntrack has been previously known as
  31. libnfnetlink_conntrack and libctnetlink. This library is currently
  32. used by conntrack-tools among many other applications.
  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/libnetfilter_conntrack
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_conntrack/*.h \
  42. $(1)/usr/include/libnetfilter_conntrack/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_conntrack.{so*,a,la} \
  46. $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_conntrack.pc \
  50. $(1)/usr/lib/pkgconfig/
  51. endef
  52. define Package/libnetfilter-conntrack/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) \
  55. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_conntrack.so.* \
  56. $(1)/usr/lib/
  57. endef
  58. $(eval $(call BuildPackage,libnetfilter-conntrack))