From c12dcc8ea53d7f437630f588efe8ba4791351ba3 Mon Sep 17 00:00:00 2001 From: Suhan G Paradkar <76830230+suhan-paradkar@users.noreply.github.com> Date: Tue, 6 Jul 2021 18:35:48 +0530 Subject: [PATCH] new package: gl4es (#373) --- x11-packages/gl4es/build.sh | 8 ++++++ x11-packages/gl4es/framebuffers.c.patch | 36 +++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 x11-packages/gl4es/build.sh create mode 100644 x11-packages/gl4es/framebuffers.c.patch diff --git a/x11-packages/gl4es/build.sh b/x11-packages/gl4es/build.sh new file mode 100644 index 000000000..21fa9778b --- /dev/null +++ b/x11-packages/gl4es/build.sh @@ -0,0 +1,8 @@ +TERMUX_PKG_HOMEPAGE=http://ptitseb.github.io/gl4es/ +TERMUX_PKG_DESCRIPTION="OpenGL driver for GLES devices" +TERMUX_PKG_LICENSE="MIT" +TERMUX_PKG_MAINTAINER="@suhan-paradkar" +TERMUX_PKG_VERSION=1.1.4 +TERMUX_PKG_SRCURL=https://github.com/ptitSeb/gl4es.git +TERMUX_PKG_DEPENDS="libandroid-shmem, libexpat, libdrm, libx11, libxdamage, libxext, libxml2, libxshmfence, zlib" + diff --git a/x11-packages/gl4es/framebuffers.c.patch b/x11-packages/gl4es/framebuffers.c.patch new file mode 100644 index 000000000..fcaaf7169 --- /dev/null +++ b/x11-packages/gl4es/framebuffers.c.patch @@ -0,0 +1,36 @@ +diff -uNr gl4es/src/CMakeLists.txt gl4es.mod/src/CMakeLists.txt +--- gl4es/src/CMakeLists.txt 2021-06-21 07:53:58.734942738 +0000 ++++ gl4es.mod/src/CMakeLists.txt 2021-06-21 08:02:39.158267430 +0000 +@@ -211,10 +211,10 @@ + endif() + install(TARGETS GL + LIBRARY +- DESTINATION "/usr/lib/gl4es/" ++ DESTINATION "@TERMUX_PREFIX@/lib/gl4es/" + ) + install(FILES "../include/gl4esinit.h" "../include/gl4eshint.h" +- DESTINATION "/usr/include/gl4es/" ++ DESTINATION "@TERMUX_PREFIX@/include/gl4es/" + ) + endif() + +diff -uNr gl4es/src/gl/framebuffers.c gl4es.mod/src/gl/framebuffers.c +--- gl4es/src/gl/framebuffers.c 2021-06-21 07:53:58.742943357 +0000 ++++ gl4es.mod/src/gl/framebuffers.c 2021-06-21 07:55:02.829910677 +0000 +@@ -1,6 +1,6 @@ + #include "framebuffers.h" + +-#if !defined(ANDROID) && !defined(AMIGAOS4) && !defined(__EMSCRIPTEN__) && !defined(__APPLE__) ++#if !defined(__ANDROID__) && !defined(AMIGAOS4) && !defined(__EMSCRIPTEN__) && !defined(__APPLE__) + #include + #endif + #include "../glx/hardext.h" +diff -uNr gl4es/src/gl/init.c gl4es.mod/src/gl/init.c +--- gl4es/src/gl/init.c 2021-06-21 07:53:58.743943435 +0000 ++++ gl4es.mod/src/gl/init.c 2021-06-21 07:57:22.429734941 +0000 +@@ -1,4 +1,4 @@ +-#if !defined(ANDROID) && !defined(AMIGAOS4) && !defined(__EMSCRIPTEN__) && !defined(__APPLE__) ++#if !defined(__ANDROID__) && !defined(AMIGAOS4) && !defined(__EMSCRIPTEN__) && !defined(__APPLE__) + #include + #endif + #include