mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
Haiku SDL port recipe. It build and run, but have minor problems.
This commit is contained in:
74
games-strategy/homeworld_sdl/homeworld_sdl-0.6.recipe
Normal file
74
games-strategy/homeworld_sdl/homeworld_sdl-0.6.recipe
Normal file
@@ -0,0 +1,74 @@
|
||||
SUMMARY="Homeworld is a space real-time strategy computer game."
|
||||
DESCRIPTION="
|
||||
Homeworld is a real-time strategy computer \
|
||||
game, set and played in a 3D space environment. \
|
||||
Developed by Relic Entertainment, it was released \
|
||||
for the PC in 1998 to worldwide acclaim, winning \
|
||||
multiple awards for its novel gameplay and strong \
|
||||
single-player story. Relic Entertainment later released \
|
||||
the source code to the public under licence.
|
||||
"
|
||||
HOMEPAGE="http://www.homeworldsdl.org/"
|
||||
COPYRIGHT="1999-2000 Sierra On-Line, Inc."
|
||||
LICENSE="RE-INC-EULA"
|
||||
SRC_URI="git+https://bitbucket.org/extrowerk/homeworld-sdl-haiku.git"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
homeworld_sdl$secondaryArchSuffix = $portVersion
|
||||
app:homeworld_sdl$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
#lib:mesa_swrast
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libsdl$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:autoconf
|
||||
cmd:aclocal
|
||||
cmd:libtool
|
||||
cmd:yacc$secondaryArchSuffix
|
||||
cmd:flex
|
||||
"
|
||||
|
||||
SOURCE_DIR="homeworld-sdl-haiku"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd Haiku
|
||||
echo "Bootstrapping Homewold_SDL"
|
||||
bash ./bootstrap
|
||||
echo "Configuring Homeworld_SDL"
|
||||
runConfigure ../configure -C --bindir=$appsDir/Homeworld_SDL
|
||||
echo "Building Homeworld_SDL"
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd Haiku/src
|
||||
echo "Striping debug symbols"
|
||||
strip homeworld
|
||||
echo "Creating bin directory for packaging Homeworld_SDL"
|
||||
mkdir -p $appsDir/Homeworld_SDL
|
||||
echo "Moving binary into the bin directory"
|
||||
cp homeworld $appsDir/Homeworld_SDL/homeworld_sdl
|
||||
cd ..
|
||||
unzip ./Haiku_Extra/Homeworld_Haiku_Start.sh.zip
|
||||
cp Homeworld_Haiku_Start.sh $appsDir/Homeworld_SDL/Start_Homeworld_SDL.sh
|
||||
echo "Adding Homeworld_SDL to the Deskbar"
|
||||
addAppDeskbarSymlink $appsDir/Start_Homeworld_SDL.sh Homeworld_SDL
|
||||
}
|
||||
Reference in New Issue
Block a user