2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2023-06-03 10:00:49 +00:00
|
|
|
|
|
|
|
PKG_NAME="libtracefs"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="1.7.0"
|
2023-06-03 10:00:49 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://git.kernel.org/pub/scm/libs/libtrace/${PKG_NAME}.git/log/"
|
|
|
|
PKG_URL="https://git.kernel.org/pub/scm/libs/libtrace/${PKG_NAME}.git/snapshot/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
|
|
|
PKG_DEPENDS_HOST="ccache:host libtraceevent:host"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain libtraceevent"
|
|
|
|
PKG_LONGDESC="Provides APIs to access kernel trace file system."
|
|
|
|
PKG_BUILD_FLAGS="+pic"
|
|
|
|
|
|
|
|
makeinstall_host() {
|
|
|
|
mkdir -p ${TOOLCHAIN}/lib
|
2023-08-24 09:53:35 +00:00
|
|
|
cp src/${PKG_NAME}.a ${TOOLCHAIN}/lib
|
2023-06-03 10:00:49 +00:00
|
|
|
|
|
|
|
mkdir -p ${TOOLCHAIN}/include
|
2023-08-24 09:53:35 +00:00
|
|
|
cp ${PKG_BUILD}/include/* ${TOOLCHAIN}/include
|
2023-06-03 10:00:49 +00:00
|
|
|
|
|
|
|
mkdir -p ${TOOLCHAIN}/lib/pkgconfig
|
2023-08-24 09:53:35 +00:00
|
|
|
cp meson-private/${PKG_NAME}.pc ${TOOLCHAIN}/lib/pkgconfig
|
2023-06-03 10:00:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib
|
2023-08-24 09:53:35 +00:00
|
|
|
cp src/${PKG_NAME}.a ${SYSROOT_PREFIX}/usr/lib
|
2023-06-03 10:00:49 +00:00
|
|
|
|
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/include
|
2023-08-24 09:53:35 +00:00
|
|
|
cp ${PKG_BUILD}/include/* ${SYSROOT_PREFIX}/usr/include
|
2023-06-03 10:00:49 +00:00
|
|
|
|
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
2023-08-24 09:53:35 +00:00
|
|
|
cp meson-private/${PKG_NAME}.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
2023-06-03 10:00:49 +00:00
|
|
|
}
|