2
0

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