mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
WIP recipe for VCMI.
This will need some fixes to boost.
This commit is contained in:
31
games-strategy/vcmi/patches/vcmi_x86-0.94.patchset
Normal file
31
games-strategy/vcmi/patches/vcmi_x86-0.94.patchset
Normal file
@@ -0,0 +1,31 @@
|
||||
From fc69e8dc4e2287cef93857a29d80b8930b90baa9 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sun, 5 Jan 2014 23:14:13 +0100
|
||||
Subject: Support thread renaming.
|
||||
|
||||
|
||||
diff --git a/lib/CThreadHelper.cpp b/lib/CThreadHelper.cpp
|
||||
index 3774c4b..b0aca56 100644
|
||||
--- a/lib/CThreadHelper.cpp
|
||||
+++ b/lib/CThreadHelper.cpp
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
+#elif defined(__HAIKU__)
|
||||
+ #include <OS.h>
|
||||
#elif !defined(__APPLE__)
|
||||
#include <sys/prctl.h>
|
||||
#endif
|
||||
@@ -80,6 +82,8 @@ void setThreadName(const std::string &name)
|
||||
//not supported
|
||||
#endif
|
||||
|
||||
+#elif defined(__HAIKU__)
|
||||
+ rename_thread(find_thread(NULL), name.c_str());
|
||||
#elif defined(__linux__)
|
||||
prctl(PR_SET_NAME, name.c_str(), 0, 0, 0);
|
||||
#endif
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
77
games-strategy/vcmi/vcmi-0.94.recipe
Normal file
77
games-strategy/vcmi/vcmi-0.94.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="VCMI is an open source engine for Heroes or Migh and Magic III"
|
||||
DESCRIPTION="
|
||||
We want to rewrite the entire H3 engine (VCMI is NOT another mod) giving it
|
||||
new possibilities. Few years of intensive work resulted in creating application
|
||||
with impressive amount of features.
|
||||
|
||||
You require the original game files to use this port
|
||||
"
|
||||
HOMEPAGE="http://vcmi.eu"
|
||||
SRC_URI="http://download.vcmi.eu/vcmi-0.94.tar.gz"
|
||||
CHECKSUM_MD5="faaf52b539c20455e198f58401eef645"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 x86_64"
|
||||
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"
|
||||
|
||||
PATCHES="vcmi-0.94.patchset"
|
||||
PROVIDES="
|
||||
vcmi$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
lib:libSDL$secondaryArchSuffix
|
||||
lib:libsdl_mixer$secondaryArchSuffix
|
||||
lib:libsdl_image$secondaryArchSuffix
|
||||
lib:libsdl_ttf$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libavcodec$secondaryArchSuffix
|
||||
lib:libboost_program_options$secondaryArchSuffix
|
||||
lib:libboost_filesystem$secondaryArchSuffix
|
||||
lib:libboost_system$secondaryArchSuffix
|
||||
lib:libboost_thread$secondaryArchSuffix
|
||||
lib:libboost_unit_test_framework$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libSDL$secondaryArchSuffix
|
||||
devel:libsdl_mixer$secondaryArchSuffix
|
||||
devel:libsdl_image$secondaryArchSuffix
|
||||
devel:libsdl_ttf$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libavcodec$secondaryArchSuffix
|
||||
devel:libboost_program_options$secondaryArchSuffix
|
||||
devel:libboost_filesystem$secondaryArchSuffix
|
||||
devel:libboost_system$secondaryArchSuffix
|
||||
devel:libboost_thread$secondaryArchSuffix
|
||||
devel:libboost_unit_test_framework$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:as$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake ..
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
|
||||
COPYRIGHT="2005-2013 VCMI Team"
|
||||
LICENSE="GNU GPL v2"
|
||||
Reference in New Issue
Block a user