[arch-commits] Commit in minetest/trunk (PKGBUILD optional-opengles.patch)

Balló György bgyorgy at nymeria.archlinux.org
Sun Jan 19 17:35:45 UTC 2014


    Date: Sunday, January 19, 2014 @ 18:35:44
  Author: bgyorgy
Revision: 104381

upgpkg: minetest 0.4.9-2

Fix rendering with NVIDIA driver (FS#37918)

Added:
  minetest/trunk/optional-opengles.patch
Modified:
  minetest/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |   17 +++++++++++++----
 optional-opengles.patch |   30 ++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-19 16:46:40 UTC (rev 104380)
+++ PKGBUILD	2014-01-19 17:35:44 UTC (rev 104381)
@@ -4,19 +4,28 @@
 
 pkgname=minetest
 pkgver=0.4.9
-pkgrel=1
+pkgrel=2
 pkgdesc='An Infiniminer/Minecraft inspired game'
 arch=('i686' 'x86_64')
 url='http://minetest.net/'
 license=('GPL')
-depends=('sqlite' 'libxxf86vm' 'openal' 'libvorbis' 'curl' 'irrlicht' 'mesa' 'hicolor-icon-theme')
+depends=('sqlite' 'openal' 'libvorbis' 'curl' 'irrlicht' 'hicolor-icon-theme')
 makedepends=('cmake')
 install=minetest.install
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/minetest/${pkgname}/tarball/${pkgver}
-	${pkgname}_game-${pkgver}.tar.gz::https://github.com/minetest/${pkgname}_game/tarball/${pkgver})
+	${pkgname}_game-${pkgver}.tar.gz::https://github.com/minetest/${pkgname}_game/tarball/${pkgver}
+        optional-opengles.patch)
 md5sums=('2a2629befa86ef72924bcc0e489730c7'
-         '097666443a71988cf2d41ebd9be31ec9')
+         '097666443a71988cf2d41ebd9be31ec9'
+         '116de5a70e13dbd0e2419fc7fb59ee3b')
 
+prepare() {
+  cd "$srcdir"/minetest-minetest-*
+
+  # Fix rendering with NVIDIA driver (FS#37918)
+  patch -Np1 -i "$srcdir"/optional-opengles.patch
+}
+
 build() {
   cd "$srcdir"/minetest-minetest-*
 

Added: optional-opengles.patch
===================================================================
--- optional-opengles.patch	                        (rev 0)
+++ optional-opengles.patch	2014-01-19 17:35:44 UTC (rev 104381)
@@ -0,0 +1,30 @@
+From 160e2b7b7d1edc7630db0eb0ebbd796a66aab89a Mon Sep 17 00:00:00 2001
+From: Sfan5 <sfan5 at live.de>
+Date: Fri, 3 Jan 2014 10:17:01 +0100
+Subject: [PATCH] Add option to link to OpenGL ES, fixes #1051
+
+---
+ src/CMakeLists.txt | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 90f5867..6418b3b 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -170,7 +170,12 @@ endif()
+ 
+ find_package(Sqlite3 REQUIRED)
+ find_package(Json REQUIRED)
+-find_package(OpenGLES2)
++
++option(ENABLE_GLES "Enable OpenGL ES support" 0)
++mark_as_advanced(ENABLE_GLES)
++if(ENABLE_GLES)
++	find_package(OpenGLES2)
++endif(ENABLE_GLES)
+ 
+ if(USE_FREETYPE)
+ 	find_package(Freetype REQUIRED)
+-- 
+1.8.5.1
+




More information about the arch-commits mailing list