mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
60 lines
1.6 KiB
Bash
60 lines
1.6 KiB
Bash
SUMMARY="A third-person shooting DOS game"
|
|
DESCRIPTION="In this game, you get guns to shoot zombies and cyborgs. \
|
|
For a DOS game, the graphics are pretty good. It also comes with a map editor."
|
|
HOMEPAGE="https://github.com/lmartinking/cdogs-sdl"
|
|
COPYRIGHT="2008-2010 Lucas Martin-King"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
srcGitRev="7f9f4d98b5c8ed38dd73ca210aaa6bd22c8f8562"
|
|
SOURCE_URI="https://github.com/lmartinking/cdogs-sdl/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="6645be46d9266d74b29886b7505b99236991f449d3a51470e0c071ffcd176ce1"
|
|
SOURCE_FILENAME="cdogs-sdl-$srcGitRev.zip"
|
|
SOURCE_DIR="cdogs-sdl-$srcGitRev/src"
|
|
srcGitRev2="0871f4f9c83d0ab416d88a17e0a79b16e26df392"
|
|
SOURCE_URI_2="https://github.com/lmartinking/cdogs-sdl-data/archive/$srcGitRev2.tar.gz"
|
|
CHECKSUM_SHA256_2="d63728f042ecd3ca401c500181385ac962da5e631014f87a5364ab22d67807c0"
|
|
SOURCE_FILENAME_2="cdogs-sdl-data-$srcGitRev2.zip"
|
|
|
|
ARCHITECTURES="?all x86_gcc2"
|
|
|
|
PROVIDES="
|
|
cyberdogs_sdl = $portVersion
|
|
cmd:cdogs_sdl
|
|
cmd:cdogs_sdl_editor
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libSDL_1.2
|
|
lib:libSDL_mixer_1.2
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
devel:libSDL
|
|
devel:libSDL_mixer
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p $sourceDir/data
|
|
cp -r $sourceDir2/cdogs-sdl-data-$srcGitRev2/* $sourceDir/data
|
|
make $jobArgs cdogs-sdl cdogs-sdl-editor \
|
|
BINDIR=$binDir DATADIR=$dataDir/cdogs_sdl \
|
|
I_AM_CONFIGURED=yes
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $binDir
|
|
cp cdogs-sdl $binDir
|
|
cp cdogs-sdl-editor $binDir
|
|
mkdir -p $dataDir/cdogs_sdl
|
|
cp -r data/* $dataDir/cdogs_sdl
|
|
cp -r missions/* $dataDir/cdogs_sdl/missions
|
|
addAppDeskbarSymlink $binDir/cdogs-sdl Cyberdogs-sdl
|
|
}
|