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