new package: virglrenderer
This commit is contained in:
parent
46b2475a43
commit
d1f1cc2bf6
10
x11-packages/virglrenderer/build.sh
Normal file
10
x11-packages/virglrenderer/build.sh
Normal file
@ -0,0 +1,10 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://virgil3d.github.io/
|
||||
TERMUX_PKG_DESCRIPTION="A virtual 3D GPU for use inside qemu virtual machines"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.9.1
|
||||
TERMUX_PKG_SRCURL=https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${TERMUX_PKG_VERSION}/virglrenderer-virglrenderer-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=dd4a8008ca7bcaaf56666c94fcd738d705cdeda6313a82b3cea78bc3fb1b1ba5
|
||||
TERMUX_PKG_DEPENDS="libdrm, libepoxy"
|
||||
TERMUX_PKG_BUILD_DEPENDS="xorgproto"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-Dplatforms=glx"
|
12
x11-packages/virglrenderer/src-vrend_winsys_gbm.h.patch
Normal file
12
x11-packages/virglrenderer/src-vrend_winsys_gbm.h.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- a/src/vrend_winsys_gbm.h
|
||||
+++ b/src/vrend_winsys_gbm.h
|
||||
@@ -25,7 +25,8 @@
|
||||
#ifndef VIRGL_GBM_H
|
||||
#define VIRGL_GBM_H
|
||||
|
||||
-#include <gbm.h>
|
||||
+struct gbm_bo;
|
||||
+
|
||||
#include "vrend_iov.h"
|
||||
#include "virglrenderer.h"
|
||||
|
11
x11-packages/virglrenderer/vtest-vtest_protocol.h.patch
Normal file
11
x11-packages/virglrenderer/vtest-vtest_protocol.h.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/vtest/vtest_protocol.h
|
||||
+++ b/vtest/vtest_protocol.h
|
||||
@@ -25,7 +25,7 @@
|
||||
#ifndef VTEST_PROTOCOL
|
||||
#define VTEST_PROTOCOL
|
||||
|
||||
-#define VTEST_DEFAULT_SOCKET_NAME "/tmp/.virgl_test"
|
||||
+#define VTEST_DEFAULT_SOCKET_NAME "@TERMUX_PREFIX@/tmp/.virgl_test"
|
||||
|
||||
#ifdef VIRGL_RENDERER_UNSTABLE_APIS
|
||||
#define VTEST_PROTOCOL_VERSION 3
|
Loading…
Reference in New Issue
Block a user