mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
Openxcom: Added recipe, patches and icon for 1.0
Running OpenXcom in Haiku requires a workaround as there is system locale problem which causes game to crash with an error: terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Abort Abort The problem is only happening when there is no config file generated to fix it, game has to be run once like this: LC_ALL=C exec /system/apps/OpenXcom Then game creates config and can be run from menu. I am not including the fix in recipe as this would hide this system locale bug. Also the game data subfolders (GEODATA, GEOGRAPH, MAPS, ROUTES, SOUND, TERRAIN, UFOGRAPH, UFOINTRO, UNITS) should be provided to /settings/OpenXcom.
This commit is contained in:
69
games-strategy/openxcom/openxcom-1.0.recipe
Normal file
69
games-strategy/openxcom/openxcom-1.0.recipe
Normal file
@@ -0,0 +1,69 @@
|
||||
SUMMARY="Open-source clone of the original X-Com"
|
||||
DESCRIPTION="OpenXcom is an open-source clone of the original UFO: Enemy \
|
||||
Unknown (X-Com: UFO Defense in USA), licensed under the GPL and written in \
|
||||
C++ / SDL. It was originally founded by SupSuper in February 2010, and has \
|
||||
since grown into a small development team surrounded by a very supporting \
|
||||
community."
|
||||
HOMEPAGE="http://openxcom.org/"
|
||||
COPYRIGHT="2010-2014 OpenXcom Developers"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://codeload.github.com/SupSuper/OpenXcom/tar.gz/v$portVersion"
|
||||
CHECKSUM_SHA256="45acb280010a01d60506b1c5f2951ae501c012cc6161aac470bd15c1e6981246"
|
||||
SOURCE_DIR="OpenXcom-$portVersion"
|
||||
PATCHES="openxcom-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="openxcom.rdef"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86_64 ?x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
openxcom = $portVersion
|
||||
app:OpenXcom
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
lib:libsdl_gfx$secondaryArchSuffix
|
||||
lib:libsdl_image$secondaryArchSuffix
|
||||
lib:libsdl_mixer$secondaryArchSuffix
|
||||
lib:libyaml_cpp$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libgl$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libsdl$secondaryArchSuffix
|
||||
devel:libsdl_gfx$secondaryArchSuffix
|
||||
devel:libsdl_image$secondaryArchSuffix
|
||||
devel:libsdl_mixer$secondaryArchSuffix
|
||||
devel:libyaml_cpp$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/OpenXcom directory keep-old
|
||||
"
|
||||
BUILD()
|
||||
{
|
||||
cmake .
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir
|
||||
mkdir -p $settingsDir
|
||||
cp $sourceDir/bin/openxcom $appsDir/OpenXcom
|
||||
cp -r $sourceDir/bin/data $settingsDir/OpenXcom
|
||||
addResourcesToBinaries $portDir/additional-files/openxcom.rdef $appsDir/OpenXcom
|
||||
addAppDeskbarSymlink $appsDir/OpenXcom OpenXcom
|
||||
}
|
||||
Reference in New Issue
Block a user