WIP recipe for Ur-Quan Masters

Not working (fails to link libnetwork despite trying to add it in
several places), and I got bored with their custom buildsystem. Feel
free to improve.
This commit is contained in:
Adrien Destugues
2014-01-16 22:12:56 +01:00
parent 7bfe0c3ccc
commit 848ebd0ffd
2 changed files with 174 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
SUMMARY="a port of Star Control II for modern personal computers and operating systems"
DESCRIPTION="
The project started in August 2002, when Toys For Bob released the partially
ported sources of Star Control 2 3DO version to the fan community. Our goal is
to port this wonderful game to current personal computers and operating systems.
It is and will remain 100% free of charge, and anyone can contribute to the
project and thus help make it even better. For more information, look at our
info page.
"
HOMEPAGE="http://sc2.sourceforge.net/"
SRC_URI="http://prdownloads.sourceforge.net/sc2/uqm-0.7.0-source.tgz"
CHECKSUM_MD5="f9018ea0493d7dac6a9e1006b00af7df"
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="
uqm$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libSDL_1.2$secondaryArchSuffix
lib:libsdl_image$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libpng$secondaryArchSuffix
lib:libvorbisfile$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libmikmod$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libSDL$secondaryArchSuffix
devel:libsdl_image$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libvorbisfile$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libmikmod$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:as$secondaryArchSuffix
cmd:sed
cmd:make
cmd:tr
cmd:pkg_config$secondaryArchSuffix
"
PATCHES="uqm-$portVersion.patchset"
BUILD()
{
sed -i -e"s!PREFIX_HERE!$prefix!" config.state
./build.sh uqm reprocess_config
./build.sh uqm
}
INSTALL()
{
./build.sh uqm install
}
COPYRIGHT="2005-2013 VCMI Team"
LICENSE="GNU GPL v2"