You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=liburing
  3. PKG_VERSION:=0.7
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://git.kernel.dk/cgit/liburing/snapshot
  7. PKG_HASH:=05d0cf8493d573c76b11abfcf34aabc7153affebe17ff95f9ae88b0de062a59d
  8. PKG_MAINTAINER:=Christian Lachner <gladiac@gmail.com>
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_INSTALL:=1
  12. PKG_BUILD_PARALLEL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/liburing
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. TITLE:=io_uring library
  18. URL:=https://git.kernel.dk/cgit/liburing
  19. endef
  20. define Package/liburing/description
  21. liburing provides helpers to setup and teardown io_uring instances,
  22. and also a simplified interface for applications that don't need
  23. (or want) to deal with the full kernel side implementation.
  24. For more info on io_uring, please see: https://kernel.dk/io_uring.pdf
  25. endef
  26. CONFIGURE_ARGS:=--prefix=$(CONFIGURE_PREFIX) --cc=${TARGET_CC}
  27. define Build/Compile
  28. $(MAKE) $(PKG_BUILD_DIR) \
  29. DSTROOT="$(PKG_INSTALL_DIR)"
  30. endef
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/include/
  33. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  34. $(INSTALL_DIR) $(1)/usr/lib/
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
  36. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  37. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/liburing.pc $(1)/usr/lib/pkgconfig/
  38. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/liburing.pc
  39. $(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/liburing.pc
  40. endef
  41. define Package/liburing/install
  42. $(INSTALL_DIR) $(1)/usr/lib/
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburing.so $(PKG_INSTALL_DIR)/usr/lib/liburing.so.* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,liburing))