mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Add recipe for Plee the Bear.
Not working yet, fails at runtime with: Could not resolve symbol '_Unwind_GetRegionStart'
This commit is contained in:
129
games-arcade/plee_the_bear/patches/plee_the_bear-0.7.0.patchset
Normal file
129
games-arcade/plee_the_bear/patches/plee_the_bear-0.7.0.patchset
Normal file
@@ -0,0 +1,129 @@
|
||||
From 03033c51349e01d5d06ee74545a15a534525d785 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sun, 6 Apr 2014 14:54:36 +0200
|
||||
Subject: Fix search paths for SDL2 header files.
|
||||
|
||||
|
||||
diff --git a/bear/cmake-helper/FindSDL2.cmake b/bear/cmake-helper/FindSDL2.cmake
|
||||
index 7665a55..bcd3050 100644
|
||||
--- a/bear/cmake-helper/FindSDL2.cmake
|
||||
+++ b/bear/cmake-helper/FindSDL2.cmake
|
||||
@@ -70,7 +70,7 @@
|
||||
find_path(SDL2_INCLUDE_DIR SDL.h
|
||||
HINTS
|
||||
ENV SDL2DIR
|
||||
- PATH_SUFFIXES include/SDL2 include
|
||||
+ PATH_SUFFIXES include/SDL2 include SDL2
|
||||
)
|
||||
|
||||
# SDL2-1.1 is the name used by FreeBSD ports...
|
||||
diff --git a/bear/cmake-helper/FindSDL2_mixer.cmake b/bear/cmake-helper/FindSDL2_mixer.cmake
|
||||
index 59ed911..d795965 100644
|
||||
--- a/bear/cmake-helper/FindSDL2_mixer.cmake
|
||||
+++ b/bear/cmake-helper/FindSDL2_mixer.cmake
|
||||
@@ -40,7 +40,7 @@ find_path(SDL2_MIXER_INCLUDE_DIR SDL_mixer.h
|
||||
HINTS
|
||||
ENV SDL2MIXERDIR
|
||||
ENV SDL2DIR
|
||||
- PATH_SUFFIXES include/SDL2 include
|
||||
+ PATH_SUFFIXES include/SDL2 include SDL2
|
||||
)
|
||||
|
||||
if(NOT SDL2_MIXER_LIBRARY AND SDL2MIXER_LIBRARY)
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
|
||||
From 4a4404ab5a5b9c67925ec6d910ddc5f47fb1b910 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sun, 6 Apr 2014 17:02:35 +0200
|
||||
Subject: Link libintl on haiku.
|
||||
|
||||
|
||||
diff --git a/bear/bear-engine/running_bear/CMakeLists.txt b/bear/bear-engine/running_bear/CMakeLists.txt
|
||||
index 8b04d89..4fffd94 100644
|
||||
--- a/bear/bear-engine/running_bear/CMakeLists.txt
|
||||
+++ b/bear/bear-engine/running_bear/CMakeLists.txt
|
||||
@@ -38,7 +38,7 @@ set(
|
||||
${CLAW_APPLICATION_LIBRARIES}
|
||||
)
|
||||
|
||||
-if(WIN32)
|
||||
+if(WIN32 OR HAIKU)
|
||||
set(
|
||||
RUNNING_BEAR_LINK_LIBRARIES
|
||||
${RUNNING_BEAR_LINK_LIBRARIES}
|
||||
diff --git a/plee-the-bear/launcher/src/CMakeLists.txt b/plee-the-bear/launcher/src/CMakeLists.txt
|
||||
index 9ed5d32..ff88206 100644
|
||||
--- a/plee-the-bear/launcher/src/CMakeLists.txt
|
||||
+++ b/plee-the-bear/launcher/src/CMakeLists.txt
|
||||
@@ -121,7 +121,7 @@ set(
|
||||
${CLAW_APPLICATION_LIBRARIES}
|
||||
)
|
||||
|
||||
-if(WIN32)
|
||||
+if(WIN32 OR HAIKU)
|
||||
set(
|
||||
PTB_LAUNCHER_LINK_LIBRARIES
|
||||
${PTB_LAUNCHER_LINK_LIBRARIES}
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
|
||||
From 415c83accad83bf6677dd3d578ab6712582910b9 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sun, 6 Apr 2014 19:41:58 +0200
|
||||
Subject: Fix install directories.
|
||||
|
||||
|
||||
diff --git a/bear/cmake-helper/bear-config.cmake b/bear/cmake-helper/bear-config.cmake
|
||||
index e66d79e..b483445 100644
|
||||
--- a/bear/cmake-helper/bear-config.cmake
|
||||
+++ b/bear/cmake-helper/bear-config.cmake
|
||||
@@ -47,7 +47,7 @@ if( NOT BEAR_ENGINE_INSTALL_LIBRARY_DIR )
|
||||
"${BEAR_ENGINE_INSTALL_EXECUTABLE_DIR}"
|
||||
)
|
||||
else( WIN32 )
|
||||
- set( BEAR_ENGINE_INSTALL_LIBRARY_DIR lib )
|
||||
+ set( BEAR_ENGINE_INSTALL_LIBRARY_DIR lib${CMAKE_HAIKU_SECONDARY_ARCH_SUBDIR} )
|
||||
endif( WIN32 )
|
||||
endif( NOT BEAR_ENGINE_INSTALL_LIBRARY_DIR )
|
||||
|
||||
diff --git a/bear/cmake-module/CMakeLists.txt b/bear/cmake-module/CMakeLists.txt
|
||||
index e182689..24c2113 100644
|
||||
--- a/bear/cmake-module/CMakeLists.txt
|
||||
+++ b/bear/cmake-module/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
project(bear:cmake-modules)
|
||||
|
||||
if( NOT BEAR_CMAKE_MODULES_INSTALL_PATH )
|
||||
- set( BEAR_CMAKE_MODULES_INSTALL_PATH "share/cmake/bear-engine" )
|
||||
+ set( BEAR_CMAKE_MODULES_INSTALL_PATH "data/cmake/bear-engine" )
|
||||
endif( NOT BEAR_CMAKE_MODULES_INSTALL_PATH )
|
||||
|
||||
set( BEAR_CMAKE_MODULES
|
||||
diff --git a/plee-the-bear/CMakeLists.txt b/plee-the-bear/CMakeLists.txt
|
||||
index 6a123d9..9bc8df3 100644
|
||||
--- a/plee-the-bear/CMakeLists.txt
|
||||
+++ b/plee-the-bear/CMakeLists.txt
|
||||
@@ -23,7 +23,7 @@ include( docbook-to-man )
|
||||
#-------------------------------------------------------------------------------
|
||||
# where the game resources are installed
|
||||
if( NOT PTB_INSTALL_DATA_DIR )
|
||||
- set( PTB_INSTALL_DATA_DIR share/plee-the-bear )
|
||||
+ set( PTB_INSTALL_DATA_DIR data/plee-the-bear )
|
||||
endif( NOT PTB_INSTALL_DATA_DIR )
|
||||
|
||||
# where the game executables are installed
|
||||
@@ -154,7 +154,7 @@ subdirs(
|
||||
|
||||
install(
|
||||
DIRECTORY "lib/item-description"
|
||||
- DESTINATION "share/bear-factory/plee-the-bear"
|
||||
+ DESTINATION "data/bear-factory/plee-the-bear"
|
||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE
|
||||
GROUP_READ
|
||||
WORLD_READ
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
109
games-arcade/plee_the_bear/plee_the_bear-0.7.0.recipe
Normal file
109
games-arcade/plee_the_bear/plee_the_bear-0.7.0.recipe
Normal file
@@ -0,0 +1,109 @@
|
||||
SUMMARY="A platform game in which you play an angry bear whose son has been kidnapped by god."
|
||||
HOMEPAGE="http://www.stuff-o-matic.com/plee-the-bear/"
|
||||
LICENSE="GNU GPL v3"
|
||||
COPYRIGHT="2012 Stuff O Matic"
|
||||
SRC_URI="http://www.stuff-o-matic.com/plee-the-bear/download/file.php?platform=source"
|
||||
CHECKSUM_SIZE="74496396"
|
||||
CHECKSUM_RMD160="4f7648c345b5f3445581530c9c45dfcc44512a53"
|
||||
CHECKSUM_SHA512="6d8942b69a01ce122851371bd5a0179093706bc37eb0e051d775f0856fa2a3561c93e940c091b4e3126ec939c7030bafb6c28e0907add66a65d9cea745e1a39e"
|
||||
|
||||
REVISION="1"
|
||||
ARCHITECTURES="?x86"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
plee_the_bear = $portVersion
|
||||
cmd:plee_the_bear = $portVersion
|
||||
lib:libbear_audio$secondaryArchSuffix
|
||||
lib:libbear_communication$secondaryArchSuffix
|
||||
lib:libbear_debug$secondaryArchSuffix
|
||||
lib:libbear_engine$secondaryArchSuffix
|
||||
lib:libbear_expr$secondaryArchSuffix
|
||||
lib:libbear_generic_items$secondaryArchSuffix
|
||||
lib:libbear_gui$secondaryArchSuffix
|
||||
lib:libbear_input$secondaryArchSuffix
|
||||
lib:libbear_net$secondaryArchSuffix
|
||||
lib:libbear_text_interface$secondaryArchSuffix
|
||||
lib:libbear_time$secondaryArchSuffix
|
||||
lib:libbear_universe$secondaryArchSuffix
|
||||
lib:libbear_visual$secondaryArchSuffix
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libstdc++$secondaryArchSuffix
|
||||
lib:libsdl2$secondaryArchSuffix
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
lib:libsdl2_mixer$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libclaw_dynamic_library$secondaryArchSuffix
|
||||
lib:libclaw_graphic$secondaryArchSuffix
|
||||
lib:libclaw_net$secondaryArchSuffix
|
||||
lib:libclaw_tween$secondaryArchSuffix
|
||||
lib:libboost_system$secondaryArchSuffix
|
||||
lib:libboost_thread$secondaryArchSuffix
|
||||
lib:libboost_filesystem$secondaryArchSuffix
|
||||
lib:libboost_regex$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
devel:libsdl2$secondaryArchSuffix
|
||||
devel:libsdl2_mixer$secondaryArchSuffix
|
||||
devel:libsdl$secondaryArchSuffix
|
||||
devel:sdl_mixer$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libclaw_application$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
boost_devel${secondaryArchSuffix}
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:cmake >= 3.0
|
||||
"
|
||||
|
||||
SOURCE_DIR="plee-the-bear-0.7.0-light"
|
||||
PATCHES="plee_the_bear-$portVersion.patchset"
|
||||
BUILD()
|
||||
{
|
||||
cmake . -DBEAR_EDITORS_ENABLED=FALSE -DCMAKE_INSTALL_PREFIX=$prefix
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
rm -r $prefix/share
|
||||
|
||||
addAppDeskbarSymlink $binDir/plee_the_bear "Plee the Bear"
|
||||
}
|
||||
|
||||
# ----- DESCRIPTION -----------------------------------------------------------
|
||||
|
||||
DESCRIPTION="
|
||||
Plee the Bear is a platform game in which you play an angry bear whose son has
|
||||
been kidnapped by god. Here is a guy hard to brave! Jump in this amazing journey
|
||||
to find and rescue your son. Because you want to rescue him, don't you? Or to
|
||||
slap him? Maybe both….
|
||||
|
||||
With three levels of the storyline and four mini-games, Plee the Bear did
|
||||
received very positive criticisms. The players loved the fun, the graphics and
|
||||
the music; the community around the free software movement appreciated the
|
||||
overall process and the quality of the resources, remarkable for a free game;
|
||||
and the indie gaming community was pleasantly surprised by the technical skills
|
||||
and the details of the game.
|
||||
"
|
||||
Reference in New Issue
Block a user