Files
haikuports/games-strategy/homeworld_sdl/homeworld_sdl-0.6.recipe
Humdinger f28c2ddf1a Minor fixes pointeed out by waddlesplash.
*	gcc
	Use ${effectiveTargetMachineTriple} as in the SUMMARY
	Better DESCRIPTION, "The standard compiler..."

*	hdialog
	Fix typo, "g++"

*	homeworld
	Fix typo, "license"

*	gnutls
	Move PATCHES below CHECKSUM.

*	gptfdisk
	Added CHECKSUM_SHA256
	Corrected patch file name.

*	iozone
	Fixed typo.
	Removed comma after copyright year.
	Moved PATCHES down.

*	isl, m, iup, kdelibs4, gnutls, farfbuzz, htmltidy, ftgl
	Re-order the _devel blocks
2015-07-20 17:12:50 +02:00

70 lines
1.9 KiB
Bash

SUMMARY="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 license. "
HOMEPAGE="http://www.homeworldsdl.org/"
COPYRIGHT="1999-2000 Sierra On-Line, Inc."
LICENSE="RE-INC-EULA"
SOURCE_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
lib:libsdl$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libglu$secondaryArchSuffix
#lib:mesa_swrast
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
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
}