1
0

Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. ftp://ftp.netfilter.org/pub/libnetfilter_conntrack/
  15. PKG_HASH:=efcc08021284e75f4d96d3581c5155a11f08fd63316b1938cbcb269c87f37feb
  16. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  17. PKG_FIXUP:=autoreconf
  18. PKG_LICENSE:=GPL-2.0+
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libnetfilter-conntrack
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. DEPENDS:=+libnfnetlink +kmod-nf-conntrack-netlink +libmnl
  25. TITLE:=API to the in-kernel connection tracking state table
  26. URL:=http://www.netfilter.org/projects/libnetfilter_conntrack/
  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))