1
0

Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. # Copyright (C) 2014 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:=libnftnl
  9. PKG_VERSION:=1.0.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=git://git.netfilter.org/libnftnl
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_VERSION:=libnftnl-1.0.6
  14. PKG_MIRROR_HASH:=c9e066e3fd29951cbe96d2898b4d6cdcfe802b3a4f09f8273a508e7a0a20a357
  15. PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
  16. PKG_LICENSE:=GPL-2.0+
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libnftnl
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+libmnl
  24. TITLE:=Low-level netlink library for the nf_tables subsystem
  25. URL:=http://www.netfilter.org/projects/libnftnl
  26. endef
  27. define Package/libnftnl/description
  28. libnftnl is a userspace library providing a low-level netlink
  29. programming interface (API) to the in-kernel nf_tables subsystem.
  30. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. CONFIGURE_ARGS += \
  33. --enable-static \
  34. --enable-shared \
  35. --without-json-parsing \
  36. --without-xml-parsing \
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include/libnftnl
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/include/libnftnl/*.h \
  41. $(1)/usr/include/libnftnl/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/lib/libnftnl.{so*,a,la} \
  45. $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnftnl.pc \
  49. $(1)/usr/lib/pkgconfig/
  50. endef
  51. define Package/libnftnl/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libnftnl.so.* \
  55. $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libnftnl))