1
0

Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:= \
  13. http://www.netfilter.org/projects/libnfnetlink/files/ \
  14. http://mirrors.evolva.ro/netfilter.org/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. endef
  27. define Package/libnfnetlink/description
  28. libnfnetlink is is the low-level library for netfilter related kernel/userspace communication.
  29. It provides a generic messaging infrastructure for in-kernel netfilter subsystems
  30. (such as nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their respective users
  31. and/or management tools in userspace.
  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/libnfnetlink
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/include/libnfnetlink/{libnfnetlink,linux_nfnetlink,linux_nfnetlink_compat}.h \
  41. $(1)/usr/include/libnfnetlink/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.{a,so*} \
  45. $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnfnetlink.pc \
  49. $(1)/usr/lib/pkgconfig/
  50. endef
  51. define Package/libnfnetlink/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.so.* \
  55. $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libnfnetlink))