distribution/packages/devel/libtraceevent/package.mk
2023-06-13 13:52:17 +00:00

34 lines
1.1 KiB
Makefile

# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2023-present Fewtarius
PKG_NAME="libtraceevent"
PKG_VERSION="1.7.2"
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"
PKG_DEPENDS_TARGET="toolchain libtraceevent:host linux:host"
PKG_LONGDESC="Provides APIs to access kernel tracepoint events."
PKG_BUILD_FLAGS="+pic"
makeinstall_host() {
mkdir -p ${TOOLCHAIN}/lib
cp lib/${PKG_NAME}.a ${TOOLCHAIN}/lib
mkdir -p ${TOOLCHAIN}/include/traceevent
cp include/traceevent/* ${TOOLCHAIN}/include/traceevent
mkdir -p ${TOOLCHAIN}/lib/pkgconfig
cp ${PKG_NAME}.pc ${TOOLCHAIN}/lib/pkgconfig
}
makeinstall_target() {
mkdir -p ${SYSROOT_PREFIX}/usr/lib
cp lib/${PKG_NAME}.a ${SYSROOT_PREFIX}/usr/lib
mkdir -p ${SYSROOT_PREFIX}/usr/include/traceevent
cp include/traceevent/* ${SYSROOT_PREFIX}/usr/include/traceevent
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
cp ${PKG_NAME}.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
}