[trigger-rally] 66/103: * add a rough patch to link against the system libglew instead of the internal copy. * b-d on libglew1.5-dev.
Bertrand Marc
bbk-guest at moszumanska.debian.org
Sun May 22 12:21:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
bbk-guest pushed a commit to branch master
in repository trigger-rally.
commit d19db9cb63ee6d2e2a92e7e05b954fd157bcdba6
Author: Stefan Potyra <sistpoty at ubuntu.com>
Date: Sun Mar 28 14:13:49 2010 +0000
* add a rough patch to link against the system libglew instead of the
internal copy.
* b-d on libglew1.5-dev.
---
debian/changelog | 5 ++-
debian/control | 3 +-
debian/patches/10_system_glew.patch | 85 +++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
4 files changed, 92 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1ecbcb6..fdd8cab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,8 +15,11 @@ trigger-rally (0.5.2.1-2) UNRELEASED; urgency=low
* debian/control: wrap build-dependencies and Uploaders.
* debian/control: Add DM-Upload-Allowed: yes.
* debian/README.source: dropped, doesn't use a patch system any longer.
+ * debian/control: Add libglew1.5-dev to build-depends.
+ * debian/patches/10_system_glew.patch: Don't link against the internal
+ copy of libglew, but rather use the system libglew.
- -- Stefan Potyra <sistpoty at ubuntu.com> Sun, 28 Mar 2010 15:44:02 +0200
+ -- Stefan Potyra <sistpoty at ubuntu.com> Sun, 28 Mar 2010 15:56:02 +0200
trigger-rally (0.5.2.1-1) unstable; urgency=low
diff --git a/debian/control b/debian/control
index 9c2a4e3..a57a980 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,8 @@ Build-Depends: debhelper (>= 5.0.0),
libphysfs-dev,
libsdl-image1.2-dev,
docbook-to-man,
- automake (>= 1.9)
+ automake (>= 1.9),
+ libglew1.5-dev
Standards-Version: 3.8.3
Uploaders: Stefan Potyra <sistpoty at ubuntu.com>,
Alexander Reichle-Schmehl <tolimar at debian.org>,
diff --git a/debian/patches/10_system_glew.patch b/debian/patches/10_system_glew.patch
new file mode 100644
index 0000000..9fa904c
--- /dev/null
+++ b/debian/patches/10_system_glew.patch
@@ -0,0 +1,85 @@
+# Description: trigger-rally ships an internal copy of glew. This patch forces
+# trigger to use the system glew library.
+# .
+# It's not clean enough yet to be committed upstream, I'll work on this.
+# Author: Stefan Potyra <sistpoty at ubuntu.com>
+Index: trigger-rally-0.5.2.1/autogen.sh
+===================================================================
+--- trigger-rally-0.5.2.1.orig/autogen.sh 2010-03-28 15:52:27.155526849 +0200
++++ trigger-rally-0.5.2.1/autogen.sh 2010-03-28 15:49:28.356327937 +0200
+@@ -18,6 +18,7 @@
+ # seems autoconf --trace misses some things :-/
+ echo 'INSTALL ?= "@INSTALL@" ;' >> Jamconfig.in
+ echo 'JAMCONFIG_READ = yes ;' >> Jamconfig.in
++echo 'HAVE_GLEW = "@HAVE_GLEW@" ;' >> Jamconfig.in
+
+ # autoheader/config.h not used by trigger yet
+ autoheader
+Index: trigger-rally-0.5.2.1/configure.ac
+===================================================================
+--- trigger-rally-0.5.2.1.orig/configure.ac 2010-03-28 15:52:26.705514097 +0200
++++ trigger-rally-0.5.2.1/configure.ac 2010-03-28 15:49:08.525590227 +0200
+@@ -123,6 +123,12 @@
+ AC_MSG_ERROR([Couldn't find GLU library and headers])
+ fi
+
++# FIXME ugly.
++HAVE_GLEW=1
++AC_DEFINE([HAVE_GLEW])
++AC_SUBST([HAVE_GLEW])
++AC_SEARCH_LIBS([__glewActiveTextureARB], [GLEW])
++
+ # Um, can't get this to substitute [app]datadir :/
+ #AC_DEFINE([DATADIR], [$(datadir)], [comment])
+
+Index: trigger-rally-0.5.2.1/src/Jamfile
+===================================================================
+--- trigger-rally-0.5.2.1.orig/src/Jamfile 2010-03-28 15:52:26.975526812 +0200
++++ trigger-rally-0.5.2.1/src/Jamfile 2010-03-28 15:50:28.346233037 +0200
+@@ -7,7 +7,10 @@
+ C++FLAGS += -DDATADIR='\"$(datadir)\"' ;
+
+
+-SubInclude TOP src glew ;
++if ! $(HAVE_GLEW) {
++ SubInclude TOP src glew ;
++}
++
+ SubInclude TOP src pengine ;
+ SubInclude TOP src psim ;
+ SubInclude TOP src trigger ;
+Index: trigger-rally-0.5.2.1/src/pengine/Jamfile
+===================================================================
+--- trigger-rally-0.5.2.1.orig/src/pengine/Jamfile 2010-03-28 15:52:26.805523301 +0200
++++ trigger-rally-0.5.2.1/src/pengine/Jamfile 2010-03-28 15:52:19.539998764 +0200
+@@ -4,6 +4,8 @@
+ Library pengine : [ Wildcard *.c *.cpp *.h ]
+ [ Wildcard GL : *.h ] ;
+ ExternalLibs pengine : SDL SDLIMAGE AUDIOLIB GL GLU PHYSFS ;
+-LinkWith pengine : glew ;
+
+-IncludeDir pengine : ../glew ;
++if ! $(HAVE_GLEW) {
++ LinkWith pengine : glew ;
++ IncludeDir pengine : ../glew ;
++}
+Index: trigger-rally-0.5.2.1/src/pengine/pengine.h
+===================================================================
+--- trigger-rally-0.5.2.1.orig/src/pengine/pengine.h 2010-03-28 15:52:26.875527960 +0200
++++ trigger-rally-0.5.2.1/src/pengine/pengine.h 2010-03-28 15:51:25.717564253 +0200
+@@ -30,11 +30,12 @@
+ // The PhysicsFS game file system
+ #include <physfs.h>
+
+-
+-// This is a slightly modified GLEW for internal build
++#ifdef HAVE_GLEW_H
++#include <GL/glew.h>
++#else /* use statically shipped version */
+ #define GLEW_STATIC
+ #include "GL/glew.h"
+-
++#endif
+
+ // TinyXML is built into the pengine library
+ #include "tinyxml.h"
diff --git a/debian/patches/series b/debian/patches/series
index 78fbfc1..c31ecc7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
05_Makefile.am.patch
+10_system_glew.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/trigger-rally.git
More information about the Pkg-games-commits
mailing list