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. ftp://ftp.netfilter.org/pub/libnfnetlink/ \
  15. http://mirrors.evolva.ro/netfilter.org/libnfnetlink/
  16. PKG_MD5SUM:=98927583d2016a9fb1936fed992e2c5e
  17. PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
  18. PKG_LICENSE:=GPL-2.0+
  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. 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. TARGET_CFLAGS += $(FPIC)
  35. CONFIGURE_ARGS += \
  36. --enable-static \
  37. --enable-shared
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include/libnfnetlink
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/include/libnfnetlink/{libnfnetlink,linux_nfnetlink,linux_nfnetlink_compat}.h \
  42. $(1)/usr/include/libnfnetlink/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.{a,so*} \
  46. $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnfnetlink.pc \
  50. $(1)/usr/lib/pkgconfig/
  51. endef
  52. define Package/libnfnetlink/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) \
  55. $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.so.* \
  56. $(1)/usr/lib/
  57. endef
  58. $(eval $(call BuildPackage,libnfnetlink))