diff options
Diffstat (limited to 'repo/supertux')
-rw-r--r-- | repo/supertux/missing-include-for-FLT_EPSILON.patch | 13 | ||||
-rw-r--r-- | repo/supertux/supertux.xibuild | 33 |
2 files changed, 46 insertions, 0 deletions
diff --git a/repo/supertux/missing-include-for-FLT_EPSILON.patch b/repo/supertux/missing-include-for-FLT_EPSILON.patch new file mode 100644 index 0000000..44bc370 --- /dev/null +++ b/repo/supertux/missing-include-for-FLT_EPSILON.patch @@ -0,0 +1,13 @@ +diff --git a/src/supertux/game_session.cpp b/src/supertux/game_session.cpp +index 41de52e..a8ebfc9 100644 +--- a/src/supertux/game_session.cpp ++++ b/src/supertux/game_session.cpp +@@ -14,6 +14,8 @@ + // You should have received a copy of the GNU General Public License + // along with this program. If not, see <http://www.gnu.org/licenses/>. + ++#include <cfloat> ++ + #include "supertux/game_session.hpp" + + #include "audio/sound_manager.hpp" diff --git a/repo/supertux/supertux.xibuild b/repo/supertux/supertux.xibuild new file mode 100644 index 0000000..f45766c --- /dev/null +++ b/repo/supertux/supertux.xibuild @@ -0,0 +1,33 @@ +#!/bin/sh + +NAME="supertux" +DESC="Open-source classic 2D jump'n run sidescroller game" + +MAKEDEPS="boost cmake curl freetype2 glew libpng libvorbis openal-soft physfs sdl2 glm sdl2-image" + +PKG_VER=0.6.3 +SOURCE="https://github.com/SuperTux/supertux/releases/download/v$PKG_VER/SuperTux-v$PKG_VER-Source.tar.gz" + +ADDITIONAL=" +missing-include-for-FLT_EPSILON.patch +" + +prepare () { + apply_patches +} + +build() { + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DINSTALL_SUBDIR_BIN=bin + cmake --build build +} + +package() { + DESTDIR="$PKG_DEST" cmake --build build --target install +} |