Games/Brainparty

From Maemo Leste Wiki
Revision as of 08:44, 25 December 2019 by Wizzup (talk | contribs) (Created page with "http://maemo.org/packages/view/brainparty/ Requires sdlgles from http://git.maemo.org/git/?p=sdlhildon;a=summary Requires brainparty-data from http://maemo.org/packages/view/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

http://maemo.org/packages/view/brainparty/

Requires sdlgles from http://git.maemo.org/git/?p=sdlhildon;a=summary Requires brainparty-data from http://maemo.org/packages/view/brainparty-data

Someone did a harmattan port: https://github.com/harmattan/brainparty/commits/master

This patch will make it at least start, but it might make more sense to look at the harmattan port.

From cfd0f4da38f1db8f73114990f206b7585e4af54d Mon Sep 17 00:00:00 2001
From: Merlijn Wajer <merlijn@wizzup.org>
Date: Wed, 25 Dec 2019 09:44:04 +0100
Subject: [PATCH] initial fixes

---
 BPList.h       | 4 ++--
 Makefile       | 2 +-
 WordList.h     | 2 +-
 debian/control | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/BPList.h b/BPList.h
index 5c986cb..7c47044 100644
--- a/BPList.h
+++ b/BPList.h
@@ -138,7 +138,7 @@ public:
        ~BPPList();
        void Add(T item);
        bool Contains(T item);
-       void Clear(bool safe_delete);
+       void Clear(bool safe_delete = true);
        int IndexOf(T item);
        void Insert(int pos, T item);
        void Remove(T item);
@@ -171,7 +171,7 @@ bool BPPList<T>::Contains(T item) {
 }

 template <class T>
-void BPPList<T>::Clear(bool safe_delete = true) {
+void BPPList<T>::Clear(bool safe_delete) {
        if (safe_delete) {
                for (int i = data.size() - 1; i >= 0; --i) {
                        T item = data[i];
diff --git a/Makefile b/Makefile
index ae75393..aaaa42e 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ ifeq ($(MACHINE),Darwin)
        OSXCOMPAT = SDLMain.m
 else
        INCLUDES = `sdl-config --cflags` -I/usr/X11R6/include
-       LIBS = `sdl-config --libs` -lGLES_CM -lSDL_gles -lSDL_mixer -lSDL_ttf -lSDL_gfx -lSDL_image
+       LIBS = `sdl-config --libs` -lGLESv1_CM -lSDL_gles -lSDL_mixer -lSDL_ttf -lSDL_gfx -lSDL_image
        CXXFLAGS = -O2 -c -Wno-deprecated
        OSXCOMPAT =
 endif
diff --git a/WordList.h b/WordList.h
index 972764f..6b7bbab 100644
--- a/WordList.h
+++ b/WordList.h
@@ -35,7 +35,7 @@ namespace __gnu_cxx
        };
 }

-typedef hash_set<string, hash<string> > string_hash_set;
+typedef hash_set<string> string_hash_set;

 class WordList {
 private:
diff --git a/debian/control b/debian/control
index 7d33aed..6e094be 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: brainparty
 Section: user/games
 Priority: extra
 Maintainer: Thomas Perl <thp@thpinfo.com>
-Build-Depends: debhelper (>= 5), libsdl-gles1.2-dev, libsdl-ttf2.0-dev, libsdl-mixeroggwav1.2-dev, libsdl-image1.2-dev, libsdl-gfx1.2-dev, libsdl1.2-dev, libgles1-sgx-img-dev
+Build-Depends: debhelper (>= 5), libsdl-ttf2.0-dev, libsdl-mixeroggwav1.2-dev, libsdl-image1.2-dev, libsdl-gfx1.2-dev, libsdl1.2-dev, libgles1-mesa-dev, libsdl-mixer1.2-dev, libsdl-ttf2.0-dev, libsdl-gfx1.2-dev
 Standards-Version: 3.7.2
 XSB-Homepage: http://tuxradar.com/brainparty
 XSBC-Bugtracker: mailto:thp@thpinfo.com
--
2.23.0