1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-22 01:06:30 +00:00
Lakka-LibreELEC/packages/devel/libaio/package.mk
2023-01-18 21:26:33 +01:00

36 lines
1.2 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2017 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="libaio"
PKG_VERSION="0.3.113"
PKG_SHA256="716c7059703247344eb066b54ecbc3ca2134f0103307192e6c2b7dab5f9528ab"
PKG_LICENSE="GPL"
PKG_SITE="https://pagure.io/libaio"
PKG_URL="https://pagure.io/${PKG_NAME}/archive/${PKG_NAME}-${PKG_VERSION}/${PKG_NAME}-${PKG_NAME}-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="Kernel Asynchronous I/O (AIO) Support for Linux."
make_target() {
make -C src
}
makeinstall_target() {
mkdir -p ${SYSROOT_PREFIX}/usr/lib
cp -PR src/libaio.a ${SYSROOT_PREFIX}/usr/lib
if [ "${DISTRO}" = "Lakka" ]; then
cp -PR src/libaio.so* ${SYSROOT_PREFIX}/usr/lib
ln -s libaio.so.1.0.2 ${SYSROOT_PREFIX}/usr/lib/libaio.so.1
ln -s libaio.so.1.0.2 ${SYSROOT_PREFIX}/usr/lib/libaio.so
mkdir -p ${INSTALL}/usr/lib
cp -PR src/libaio.so.1.0.2 ${INSTALL}/usr/lib
ln -s libaio.so.1.0.2 ${INSTALL}/usr/lib/libaio.so.1
ln -s libaio.so.1.0.2 ${INSTALL}/usr/lib/libaio.so
fi
mkdir -p ${SYSROOT_PREFIX}/usr/include
cp -PR src/libaio.h ${SYSROOT_PREFIX}/usr/include
}