Makefile 2.0 KB

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