Skip to content

Commit

Permalink
Merge pull request LibreELEC#3444 from lrusak/intel-gpu-tools
Browse files Browse the repository at this point in the history
 xorg-intel-gpu-tools: add package
  • Loading branch information
CvH authored May 8, 2019
2 parents 4a82fd0 + 5cd2918 commit e9ce966
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
23 changes: 23 additions & 0 deletions packages/debug/xorg-intel-gpu-tools/package.mk
Original file line number Diff line number Diff line change
@@ -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"
11 changes: 1 addition & 10 deletions packages/graphics/cairo/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,14 @@ if [ "$DISPLAYSERVER" = "x11" ]; then
--disable-glesv2 \
--disable-egl \
--with-x"

elif [ "$DISPLAYSERVER" = "weston" ]; then
else
PKG_CAIRO_CONFIG="--disable-xlib \
--disable-xlib-xrender \
--disable-gl \
--disable-glx \
--enable-glesv2 \
--enable-egl \
--without-x"
else
PKG_CAIRO_CONFIG="--disable-xlib \
--disable-xlib-xrender \
--disable-gl \
--disable-glx \
--disable-glesv2 \
--disable-egl \
--without-x"
fi

PKG_CONFIGURE_OPTS_TARGET="$PKG_CAIRO_CONFIG \
Expand Down
7 changes: 7 additions & 0 deletions packages/tools/procps-ng/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,21 @@ PKG_SITE="https://gitlab.com/procps-ng/procps"
PKG_URL="$SOURCEFORGE_SRC/$PKG_NAME/Production/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain ncurses"
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 \
ac_cv_func_realloc_0_nonnull=yes \
--disable-shared \
--disable-modern-top \
--enable-static"

PKG_MAKE_OPTS_TARGET="top/top proc/libprocps.la proc/libprocps.pc"

PKG_MAKEINSTALL_OPTS_TARGET="install-libLTLIBRARIES install-pkgconfigDATA"

makeinstall_target() {
mkdir -p $INSTALL/usr/bin
cp -P $PKG_BUILD/.$TARGET_NAME/top/top $INSTALL/usr/bin

make DESTDIR=$SYSROOT_PREFIX -j1 $PKG_MAKEINSTALL_OPTS_TARGET
}

0 comments on commit e9ce966

Please sign in to comment.