summaryrefslogtreecommitdiff
path: root/games/briquolo/patches
diff options
context:
space:
mode:
authorRonny Schmatzler <schmatzler@hirnschwund.net>2012-06-02 20:03:30 -0400
committerErik Hanson <erik@slackbuilds.org>2012-06-03 15:21:15 -0500
commit9a5d642f2eef58ecf7fd35d358ba26a0dc530cbc (patch)
tree91beb96ef2cd9625a3390a48dcbc5af87ee1a97a /games/briquolo/patches
parent31d9fa9e0f73864b71a2997c4276b21cda0aa939 (diff)
downloadslackbuilds-9a5d642f2eef58ecf7fd35d358ba26a0dc530cbc.tar.gz
games/briquolo: Added (breakout with 3D based on OpenGL)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/briquolo/patches')
-rw-r--r--games/briquolo/patches/desktop-entry.patch34
-rw-r--r--games/briquolo/patches/fix_ati_crash.patch22
-rw-r--r--games/briquolo/patches/gcc-fixes.patch88
-rw-r--r--games/briquolo/patches/libpng14.patch24
4 files changed, 168 insertions, 0 deletions
diff --git a/games/briquolo/patches/desktop-entry.patch b/games/briquolo/patches/desktop-entry.patch
new file mode 100644
index 0000000000..46b1f936dd
--- /dev/null
+++ b/games/briquolo/patches/desktop-entry.patch
@@ -0,0 +1,34 @@
+--- briquolo-0.5.7/desktop/briquolo.desktop 2006-03-07 21:31:26.000000000 +0100
++++ briquolo.desktop 2012-05-21 23:00:50.000000000 +0200
+@@ -1,22 +1,12 @@
+ [Desktop Entry]
+-Version=1.0
+ Encoding=UTF-8
+ Name=Briquolo
+-Name[fr]=Briquolo
+-
+-Comment=An OpenGL breakout
+-Comment[fr]=Un casse brique OpenGL
+-
+-Type=Application
+-Categories=ArcadeGame;Game;
+-
+-TryExec=briquolo
+-Exec=briquolo
+-FilePattern=briquolo
+-
+-Icon=briquolo.svg
++Icon=/usr/share/pixmaps/briquolo.svg
++GenericName=An OpenGL breakout clone
++GenericName[de_DE]=Ein OpenGL Breakout-Klon
++Exec=/usr/bin/briquolo
+ Terminal=false
+-
+-GenericName=BreakOut
+-GenericName[fr]=Casse Briques
+-Categories=Application;Game;
++StartupNotify=false
++Type=Application
++TryExec=/usr/bin/supertuxkart
++Categories=Game;ArcadeGame;
+\ Kein Zeilenumbruch am Dateiende.
diff --git a/games/briquolo/patches/fix_ati_crash.patch b/games/briquolo/patches/fix_ati_crash.patch
new file mode 100644
index 0000000000..f3caee1a44
--- /dev/null
+++ b/games/briquolo/patches/fix_ati_crash.patch
@@ -0,0 +1,22 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_fix_ati_crash.dpatch by Bradley Smith <brad@brad-smith.co.uk>
+##
+## DP: Fixes crash on ati cards
+
+@DPATCH@
+
+diff -Naur briquolo-0.5.7.orig/src/MOGL/MOGL_Fenetre.cpp briquolo-0.5.7/src/MOGL/MOGL_Fenetre.cpp
+--- briquolo-0.5.7.orig/src/MOGL/MOGL_Fenetre.cpp 2008-03-24 13:23:07.000000000 +0000
++++ briquolo-0.5.7/src/MOGL/MOGL_Fenetre.cpp 2008-03-29 19:41:40.000000000 +0000
+@@ -168,6 +168,11 @@
+ // On recommence donc !
+ _NbBitParPixel = 24;
+ _SurfaceSDL = _CreerFenetre(_NbBitParPixel, flags);
++ if(_SurfaceSDL == NULL)
++ {
++ _NbBitParPixel = 16;
++ _SurfaceSDL = _CreerFenetre(_NbBitParPixel, flags);
++ }
+ }
+ }
+ if (_SurfaceSDL == NULL)
diff --git a/games/briquolo/patches/gcc-fixes.patch b/games/briquolo/patches/gcc-fixes.patch
new file mode 100644
index 0000000000..161b6329d2
--- /dev/null
+++ b/games/briquolo/patches/gcc-fixes.patch
@@ -0,0 +1,88 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_gcc-4.3-fixes.dpatch by <ansgar@43-1.org>
+## Refreshed by <brad@brad-smith.co.uk>
+##
+## DP: Fix compliation with gcc-4.3
+
+@DPATCH@
+
+diff -Naur briquolo-0.5.7.orig/src/Constante.cpp briquolo-0.5.7/src/Constante.cpp
+--- briquolo-0.5.7.orig/src/Constante.cpp 2008-03-22 09:40:33.000000000 +0000
++++ briquolo-0.5.7/src/Constante.cpp 2008-03-29 18:47:44.000000000 +0000
+@@ -20,6 +20,7 @@
+ *
+ *****************************************************************************/
+ #include "Constante.h"
++#include <cstdlib>
+
+ #ifdef HAVE_CONFIG_H
+ #include "config.h"
+diff -Naur briquolo-0.5.7.orig/src/I18n.cpp briquolo-0.5.7/src/I18n.cpp
+--- briquolo-0.5.7.orig/src/I18n.cpp 2006-03-07 20:31:24.000000000 +0000
++++ briquolo-0.5.7/src/I18n.cpp 2008-03-29 18:47:44.000000000 +0000
+@@ -22,6 +22,7 @@
+ #include "I18n.h"
+ #include <iostream>
+ #include "Constante.h"
++#include <cstdlib>
+
+ #ifdef WIN32
+ #include <windows.h>
+diff -Naur briquolo-0.5.7.orig/src/MOGL/MOGL_EnsembleObjet.cpp briquolo-0.5.7/src/MOGL/MOGL_EnsembleObjet.cpp
+--- briquolo-0.5.7.orig/src/MOGL/MOGL_EnsembleObjet.cpp 2008-03-24 13:12:36.000000000 +0000
++++ briquolo-0.5.7/src/MOGL/MOGL_EnsembleObjet.cpp 2008-03-29 18:47:44.000000000 +0000
+@@ -24,7 +24,8 @@
+ #include "MOGL_Armature.h"
+ #include "MOGL_Peau.h"
+ //#include
+-#include <stdio.h>
++#include <cstdio>
++#include <cstring>
+
+ //#include <mmsystem.h>
+
+diff -Naur briquolo-0.5.7.orig/src/MOGL/MOGL_GestionnaireObjet.cpp briquolo-0.5.7/src/MOGL/MOGL_GestionnaireObjet.cpp
+--- briquolo-0.5.7.orig/src/MOGL/MOGL_GestionnaireObjet.cpp 2008-03-24 12:56:13.000000000 +0000
++++ briquolo-0.5.7/src/MOGL/MOGL_GestionnaireObjet.cpp 2008-03-29 18:47:44.000000000 +0000
+@@ -21,6 +21,7 @@
+ *****************************************************************************/
+ #include "../I18n.h"
+ #include "MOGL_GestionnaireObjet.h"
++#include <cstring>
+
+ bool MOGL_GestionnaireObjet::ChargerObjetASCTriangle(const char * p_NomFichier, const MOGL_GestionnaireTexture & p_GM,
+ MOGL_Objet & p_Objet)
+diff -Naur briquolo-0.5.7.orig/src/MOGL/MOGL_GestionnaireObjet.h briquolo-0.5.7/src/MOGL/MOGL_GestionnaireObjet.h
+--- briquolo-0.5.7.orig/src/MOGL/MOGL_GestionnaireObjet.h 2006-03-07 20:31:24.000000000 +0000
++++ briquolo-0.5.7/src/MOGL/MOGL_GestionnaireObjet.h 2008-03-29 18:47:44.000000000 +0000
+@@ -24,7 +24,7 @@
+
+ #include <vector>
+ #include <iostream>
+-#include <stdio.h>
++#include <cstdio>
+
+ #include "MOGL_Triangle.h"
+ #include "MOGL_Objet.h"
+diff -Naur briquolo-0.5.7.orig/src/MOGL/MOGL_Objet.cpp briquolo-0.5.7/src/MOGL/MOGL_Objet.cpp
+--- briquolo-0.5.7.orig/src/MOGL/MOGL_Objet.cpp 2006-03-07 20:31:24.000000000 +0000
++++ briquolo-0.5.7/src/MOGL/MOGL_Objet.cpp 2008-03-29 18:47:44.000000000 +0000
+@@ -20,6 +20,7 @@
+ *
+ *****************************************************************************/
+ #include "MOGL_Objet.h"
++#include <cstdlib>
+
+ //MOGL_Objet::MOGL_Objet(): MOGL_ObjetAbstrait(), MOGL_ElementArbre()
+ MOGL_Objet::MOGL_Objet(): MOGL_Noeud(), _ModifieTriangle(true), _ModifieStrip(true),
+diff -Naur briquolo-0.5.7.orig/src/MOGL/MOGL_Peau.cpp briquolo-0.5.7/src/MOGL/MOGL_Peau.cpp
+--- briquolo-0.5.7.orig/src/MOGL/MOGL_Peau.cpp 2006-03-07 20:31:24.000000000 +0000
++++ briquolo-0.5.7/src/MOGL/MOGL_Peau.cpp 2008-03-29 18:47:44.000000000 +0000
+@@ -20,6 +20,7 @@
+ *
+ *****************************************************************************/
+ #include "MOGL_Peau.h"
++#include <cstdlib>
+
+ MOGL_Peau::MOGL_Peau(): MOGL_Noeud(), _ModifieTriangle(true)
+ {
diff --git a/games/briquolo/patches/libpng14.patch b/games/briquolo/patches/libpng14.patch
new file mode 100644
index 0000000000..caacb9ecec
--- /dev/null
+++ b/games/briquolo/patches/libpng14.patch
@@ -0,0 +1,24 @@
+# Copyright © José Luis Lara Carrascal 2010-2011 <manualinux@yahoo.es>
+# <http://manualinux.freehostia.com> <http://manualinux.exofire.net> <http://manualinux.heliohost.org>
+# Este parche se distribuye bajo la Licencia General GNU
+
+diff -ruN briquolo-0.5.7/src/MOGL/MOGL_Image.cpp briquolo-0.5.7a/src/MOGL/MOGL_Image.cpp
+--- briquolo-0.5.7/src/MOGL/MOGL_Image.cpp 2006-03-07 21:53:33.000000000 +0100
++++ briquolo-0.5.7a/src/MOGL/MOGL_Image.cpp 2010-07-16 16:27:11.000000000 +0200
+@@ -26,6 +26,7 @@
+ using namespace std;
+
+ #define PNG_BYTES_TO_CHECK 8
++#define png_infopp_NULL (png_infopp)NULL
+
+ MOGL_Image::MOGL_Image(bool p_AutoriserTrou)
+ : _Image(NULL), _AutoriserTrou(p_AutoriserTrou), _R(0), _G(0), _B(0), _TypeImage(NON_DEFINI)
+@@ -235,7 +236,7 @@
+ /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */
+ if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
+ {
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+ }
+
+ /* Expand paletted or RGB images with transparency to full alpha channels