[mupen64plus-video-glide64mk2] 59/60: Use pkg-config to find GLESv2 library

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:16:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-video-glide64mk2.

commit 1d0aa2ea3db9c760157894d7afa22232c201c125
Author: Sven Eckelmann <sven at narfation.org>
Date:   Sun May 10 15:29:57 2015 +0200

    Use pkg-config to find GLESv2 library
---
 debian/changelog                                   |  2 ++
 .../Use-pkg-config-to-find-GLESv2-library.patch    | 39 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 42 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index c640d57..68e1fda 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ mupen64plus-video-glide64mk2 (2.5-2) UNRELEASED; urgency=medium
 
   * debian/patches:
     - Move patches to alternative DEP-3 format and manage them with gbp pq
+    - Add Use-pkg-config-to-find-GLESv2-library.patch, Use pkg-config to
+      find GLESv2 library
 
  -- Sven Eckelmann <sven at narfation.org>  Thu, 28 May 2015 22:02:45 +0200
 
diff --git a/debian/patches/Use-pkg-config-to-find-GLESv2-library.patch b/debian/patches/Use-pkg-config-to-find-GLESv2-library.patch
new file mode 100644
index 0000000..7a32a46
--- /dev/null
+++ b/debian/patches/Use-pkg-config-to-find-GLESv2-library.patch
@@ -0,0 +1,39 @@
+From: Sven Eckelmann <sven at narfation.org>
+Date: Sun, 10 May 2015 15:29:57 +0200
+Subject: Use pkg-config to find GLESv2 library
+
+---
+ projects/unix/Makefile | 11 ++++++-----
+ 1 file changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/projects/unix/Makefile b/projects/unix/Makefile
+index 05ae91b..39e7166 100755
+--- a/projects/unix/Makefile
++++ b/projects/unix/Makefile
+@@ -214,7 +214,7 @@ LDLIBS += $(LIBPNG_LDLIBS)
+ # search for OpenGL libraries
+ ifeq ($(USE_GLES), 1)
+   CFLAGS += -DUSE_GLES
+-  GL_LDLIBS = -lGLESv2
++  GL_NAME = glesv2
+ endif
+ ifeq ($(OS), OSX)
+   GL_LDLIBS = -framework OpenGL
+@@ -222,12 +222,13 @@ endif
+ ifeq ($(OS), MINGW)
+   GL_LDLIBS = -lopengl32
+ endif
++GL_NAME ?= gl
+ ifeq ($(origin GL_CFLAGS) $(origin GL_LDLIBS), undefined undefined)
+-  ifeq ($(shell $(PKG_CONFIG) --modversion gl 2>/dev/null),)
+-    $(error No OpenGL development libraries found!)
++  ifeq ($(shell $(PKG_CONFIG) --modversion $(GL_NAME) 2>/dev/null),)
++    $(error No $(GL_NAME) development libraries found!)
+   endif
+-  GL_CFLAGS += $(shell $(PKG_CONFIG) --cflags gl)
+-  GL_LDLIBS +=  $(shell $(PKG_CONFIG) --libs gl)
++  GL_CFLAGS += $(shell $(PKG_CONFIG) --cflags $(GL_NAME))
++  GL_LDLIBS +=  $(shell $(PKG_CONFIG) --libs $(GL_NAME))
+ endif
+ CFLAGS += $(GL_CFLAGS)
+ LDLIBS += $(GL_LDLIBS)
diff --git a/debian/patches/series b/debian/patches/series
index e2e585a..e8959f3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 Remove-forced-flto-jobserver-on-linux.patch
 Fix-negative-frame_buffer-indices.patch
 Fix-segfault-when-loading-with-4bCI-texture-with-neg.patch
+Use-pkg-config-to-find-GLESv2-library.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-video-glide64mk2.git



More information about the Pkg-games-commits mailing list