Merge pull request #3444 from lrusak/intel-gpu-tools

xorg-intel-gpu-tools: add package
This commit is contained in:
CvH 2019-05-08 20:50:07 +02:00 committed by GitHub
commit e9ce9667ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 10 deletions

View File

@ -0,0 +1,23 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="xorg-intel-gpu-tools"
PKG_VERSION="504367d33b787de2ba8e007a5b620cfd6f0b3074"
PKG_SHA256="3e118ce6ab58b506de88ab158e9e630b3db9ab75b14cd0c4a8019548d2d0c320"
PKG_LICENSE="GPL"
PKG_DEPENDS_TARGET="toolchain cairo procps-ng"
PKG_SITE="https://github.com/freedesktop/xorg-intel-gpu-tools"
PKG_URL="https://github.com/freedesktop/xorg-intel-gpu-tools/archive/$PKG_VERSION.tar.gz"
PKG_LONGDESC="Test suite and tools for DRM/KMS drivers"
PKG_TOOLCHAIN="meson"
PKG_MESON_OPTS_TARGET="-Dbuild_overlay=false \
-Dbuild_man=false \
-Dwith_valgrind=false \
-Dbuild_audio=false \
-Dbuild_chamelium=false \
-Dbuild_docs=false \
-Dbuild_tests=true
-Dwith_libdrm=auto \
-Dwith_libunwind=false \
-Dbuild_runner=false"

View File

@ -30,8 +30,7 @@ if [ "$DISPLAYSERVER" = "x11" ]; then
--disable-glesv2 \ --disable-glesv2 \
--disable-egl \ --disable-egl \
--with-x" --with-x"
else
elif [ "$DISPLAYSERVER" = "weston" ]; then
PKG_CAIRO_CONFIG="--disable-xlib \ PKG_CAIRO_CONFIG="--disable-xlib \
--disable-xlib-xrender \ --disable-xlib-xrender \
--disable-gl \ --disable-gl \
@ -39,14 +38,6 @@ elif [ "$DISPLAYSERVER" = "weston" ]; then
--enable-glesv2 \ --enable-glesv2 \
--enable-egl \ --enable-egl \
--without-x" --without-x"
else
PKG_CAIRO_CONFIG="--disable-xlib \
--disable-xlib-xrender \
--disable-gl \
--disable-glx \
--disable-glesv2 \
--disable-egl \
--without-x"
fi fi
PKG_CONFIGURE_OPTS_TARGET="$PKG_CAIRO_CONFIG \ PKG_CONFIGURE_OPTS_TARGET="$PKG_CAIRO_CONFIG \

View File

@ -9,6 +9,7 @@ PKG_SITE="https://gitlab.com/procps-ng/procps"
PKG_URL="$SOURCEFORGE_SRC/$PKG_NAME/Production/$PKG_NAME-$PKG_VERSION.tar.xz" PKG_URL="$SOURCEFORGE_SRC/$PKG_NAME/Production/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain ncurses" PKG_DEPENDS_TARGET="toolchain ncurses"
PKG_LONGDESC="Command line and full screen utilities for browsing procfs." PKG_LONGDESC="Command line and full screen utilities for browsing procfs."
PKG_BUILD_FLAGS="+pic"
PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_malloc_0_nonnull=yes \ PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_malloc_0_nonnull=yes \
ac_cv_func_realloc_0_nonnull=yes \ ac_cv_func_realloc_0_nonnull=yes \
@ -16,7 +17,13 @@ PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_malloc_0_nonnull=yes \
--disable-modern-top \ --disable-modern-top \
--enable-static" --enable-static"
PKG_MAKE_OPTS_TARGET="top/top proc/libprocps.la proc/libprocps.pc"
PKG_MAKEINSTALL_OPTS_TARGET="install-libLTLIBRARIES install-pkgconfigDATA"
makeinstall_target() { makeinstall_target() {
mkdir -p $INSTALL/usr/bin mkdir -p $INSTALL/usr/bin
cp -P $PKG_BUILD/.$TARGET_NAME/top/top $INSTALL/usr/bin cp -P $PKG_BUILD/.$TARGET_NAME/top/top $INSTALL/usr/bin
make DESTDIR=$SYSROOT_PREFIX -j1 $PKG_MAKEINSTALL_OPTS_TARGET
} }