Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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_cthelper
  9. PKG_VERSION:=1.0.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:= \
  13. http://www.netfilter.org/projects/libnetfilter_cthelper/files/ \
  14. ftp://ftp.netfilter.org/pub/libnetfilter_cthelper/
  15. PKG_HASH:=07618e71c4d9a6b6b3dc1986540486ee310a9838ba754926c7d14a17d8fccf3d
  16. PKG_FIXUP:=autoreconf
  17. PKG_LICENSE:=GPL-2.0+
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libnetfilter-cthelper
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+libmnl
  24. TITLE:=API to the in-kernel connection tracking helper infrastructure
  25. URL:=http://www.netfilter.org/projects/libnetfilter_cthelper/
  26. ABI_VERSION:=0
  27. endef
  28. define Package/libnetfilter-cthelper/description
  29. libnetfilter_cthelper is a userspace library providing a programming
  30. interface (API) to the in-kernel connection tracking helpers.
  31. This library is currently used by conntrack-tools.
  32. endef
  33. TARGET_CFLAGS += $(FPIC)
  34. CONFIGURE_ARGS += \
  35. --enable-static \
  36. --enable-shared \
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_cthelper
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_cthelper/*.h \
  41. $(1)/usr/include/libnetfilter_cthelper/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cthelper.{so*,a,la} \
  45. $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_cthelper.pc \
  49. $(1)/usr/lib/pkgconfig/
  50. endef
  51. define Package/libnetfilter-cthelper/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cthelper.so.* \
  55. $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libnetfilter-cthelper))