1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright (C) 2006-2012 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:=libnl-tiny
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL=$(PROJECT_GIT)/libnl-tiny.git
  12. PKG_SOURCE_DATE:=2023-07-27
  13. PKG_SOURCE_VERSION:=bc92a280186f9becc53c0f17e4e43cfbdeec7e7b
  14. PKG_MIRROR_HASH:=57c5ac75fdb4413e98e525bee7de419fc6cce5f23389581dafd9ffe22321224d
  15. CMAKE_INSTALL:=1
  16. PKG_LICENSE:=LGPL-2.1
  17. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/libnl-tiny
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=netlink socket library
  24. ABI_VERSION:=1
  25. endef
  26. define Package/libnl-tiny/description
  27. This package contains a stripped down version of libnl
  28. endef
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(1)/usr/include/libnl-tiny
  31. $(CP) $(PKG_INSTALL_DIR)/usr/include/libnl-tiny/* $(1)/usr/include/libnl-tiny
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-tiny.so* $(1)/usr/lib/
  33. $(INSTALL_DATA) $(PKG_BUILD_DIR)/libnl-tiny.pc $(1)/usr/lib/pkgconfig
  34. endef
  35. define Package/libnl-tiny/install
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-tiny.so.* $(1)/usr/lib/
  38. endef
  39. $(eval $(call BuildPackage,libnl-tiny))