Merge pull request #629 from brooksytech/dev3

Add Mesa Utils / Demos
This commit is contained in:
fewtarius 2022-10-18 06:53:52 -04:00 committed by GitHub
commit 8a3f4d21d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,22 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="mesa-demos"
PKG_VERSION="8.5.0"
PKG_ARCH="any"
PKG_LICENSE="OSS"
PKG_SITE="http://www.mesa3d.org/"
PKG_URL="ftp://ftp.freedesktop.org/pub/mesa/demos/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
PKG_DEPENDS_TARGET="toolchain libX11 mesa glu glew"
PKG_LONGDESC="Mesa 3D demos - installed are the well known glxinfo and glxgears."
PKG_TOOLCHAIN="autotools"
PKG_BUILD_FLAGS="-sysroot"
PKG_CONFIGURE_OPTS_TARGET="--without-glut --enable-autotools"
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp -P src/xdemos/glxdemo ${INSTALL}/usr/bin
cp -P src/xdemos/glxgears ${INSTALL}/usr/bin
cp -P src/xdemos/glxinfo ${INSTALL}/usr/bin
}

View file

@ -34,6 +34,13 @@ PKG_COMPAT=""
PKG_TOOLS="i2c-tools rclone jslisten evtest tailscale"
### Tools for mainline devices
case "${DEVICE}" in
handheld|RG552)
PKG_TOOLS+=" mesa-demos"
;;
esac
PKG_MULTIMEDIA="ffmpeg mpv vlc"
PKG_EXPERIMENTAL=""