1
0

Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. # Copyright (C) 2007-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:=libnfnetlink
  9. PKG_VERSION:=1.0.1
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:= \
  13. http://www.netfilter.org/projects/libnfnetlink/files/ \
  14. ftp://ftp.netfilter.org/pub/libnfnetlink/
  15. PKG_HASH:=f270e19de9127642d2a11589ef2ec97ef90a649a74f56cf9a96306b04817b51a
  16. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  17. PKG_LICENSE:=GPL-2.0+
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libnfnetlink
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=A low-level library for netfilter related kernel/userspace communication
  25. URL:=http://netfilter.org/projects/libnfnetlink/
  26. ABI_VERSION:=0
  27. endef
  28. define Package/libnfnetlink/description
  29. libnfnetlink is is the low-level library for netfilter related kernel/userspace communication.
  30. It provides a generic messaging infrastructure for in-kernel netfilter subsystems
  31. (such as nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their respective users
  32. and/or management tools in userspace.
  33. endef
  34. CONFIGURE_ARGS += \
  35. --enable-static \
  36. --enable-shared
  37. CONFIGURE_VARS += \
  38. lt_prog_compiler_pic=$(FPIC)
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include/libnfnetlink
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/include/libnfnetlink/{libnfnetlink,linux_nfnetlink,linux_nfnetlink_compat}.h \
  43. $(1)/usr/include/libnfnetlink/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.{a,so*} \
  47. $(1)/usr/lib/
  48. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  49. $(CP) \
  50. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnfnetlink.pc \
  51. $(1)/usr/lib/pkgconfig/
  52. endef
  53. define Package/libnfnetlink/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) \
  56. $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.so.* \
  57. $(1)/usr/lib/
  58. endef
  59. $(eval $(call BuildPackage,libnfnetlink))