1
0

Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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_queue
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL=http://git.netfilter.org/libnetfilter_queue
  12. PKG_SOURCE_DATE:=2016-07-03
  13. PKG_SOURCE_VERSION:=981025e103d887fb6a9c9bb49c74ec323108d098
  14. PKG_MIRROR_HASH:=85c124be0e19162e1ebd1aba6e7e86bb4106e9dab4267baaf66d3ccb48d56e3f
  15. PKG_FIXUP:=autoreconf
  16. PKG_LICENSE:=GPL-2.0+
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libnetfilter-queue
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. DEPENDS:=+libmnl +libnfnetlink
  23. TITLE:=API to the in-kernel connection tracking queue infrastructure
  24. URL:=http://www.netfilter.org/projects/libnetfilter_queue/
  25. endef
  26. define Package/libnetfilter-queue/description
  27. libnetfilter_queue is a userspace library providing a programming
  28. interface (API) to the in-kernel connection tracking state table.
  29. This library is currently used by conntrack-tools.
  30. endef
  31. TARGET_CFLAGS += $(FPIC) -D_GNU_SOURCE=1
  32. CONFIGURE_ARGS += \
  33. --enable-static \
  34. --enable-shared \
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_queue
  37. $(CP) \
  38. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_queue/*.h \
  39. $(1)/usr/include/libnetfilter_queue/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue.{so*,a,la} \
  43. $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_queue.pc \
  47. $(1)/usr/lib/pkgconfig/
  48. endef
  49. define Package/libnetfilter-queue/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue.so.* \
  53. $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,libnetfilter-queue))