distribution/packages/devel/libtraceevent/package.mk

35 lines
1.2 KiB
Makefile
Raw Normal View History

2023-06-03 10:00:49 +00:00
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2023-present Fewtarius
PKG_NAME="libtraceevent"
PKG_VERSION="1.7.3"
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"
2023-06-13 11:37:59 +00:00
PKG_DEPENDS_TARGET="toolchain libtraceevent:host linux:host"
2023-06-03 10:00:49 +00:00
PKG_LONGDESC="Provides APIs to access kernel tracepoint events."
2023-06-13 15:01:35 +00:00
#PKG_BUILD_FLAGS="+pic"
2023-06-03 10:00:49 +00:00
makeinstall_host() {
mkdir -p ${TOOLCHAIN}/lib
cp src/${PKG_NAME}.a ${TOOLCHAIN}/lib
2023-06-03 10:00:49 +00:00
2023-06-13 13:52:17 +00:00
mkdir -p ${TOOLCHAIN}/include/traceevent
cp ${PKG_BUILD}/include/traceevent/* ${TOOLCHAIN}/include/traceevent
2023-06-03 14:59:46 +00:00
2023-06-03 10:00:49 +00:00
mkdir -p ${TOOLCHAIN}/lib/pkgconfig
cp meson-private/${PKG_NAME}.pc ${TOOLCHAIN}/lib/pkgconfig
2023-06-13 15:01:35 +00:00
}
2023-06-03 10:00:49 +00:00
makeinstall_target() {
mkdir -p ${SYSROOT_PREFIX}/usr/lib
cp src/${PKG_NAME}.a ${SYSROOT_PREFIX}/usr/lib
2023-06-03 10:00:49 +00:00
2023-06-13 11:37:59 +00:00
mkdir -p ${SYSROOT_PREFIX}/usr/include/traceevent
cp ${PKG_BUILD}/include/traceevent/* ${SYSROOT_PREFIX}/usr/include/traceevent
2023-06-03 14:59:46 +00:00
2023-06-03 10:00:49 +00:00
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
cp meson-private/${PKG_NAME}.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
2023-06-03 10:00:49 +00:00
}