new package: virglrenderer

This commit is contained in:
Tee KOBAYASHI 2021-12-22 14:28:27 +09:00 committed by Yaksh Bariya
parent 46b2475a43
commit d1f1cc2bf6
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
3 changed files with 33 additions and 0 deletions

View 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"

View 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"

View 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