Files
haikuports/games-arcade/cyberdogs_sdl/cyberdogs_sdl-0.4.1.recipe
Humdinger 9e09e1e072 De-Linting recipes.
*	apr_util
	Added PATCHES to recipe, some cleaning up.
	Won't build, even though I cleaned out the repository folder:

	"[Errno -2147459069] No such file or directory:
	'/HiQ-Data/sources/haikuports/repository/apr_util-1.3.10.DependencyInfo'"

*	arc
	Improved DESCRIPTION
	Won't build:

	/sources/arc-5.21p/arc.c: In function `main':
	/sources/arc-5.21p/arc.c:231: parse error before `int'
	/sources/arc-5.21p/arc.c:232: `fd' undeclared (first use in this function)
	/sources/arc-5.21p/arc.c:232: (Each undeclared identifier is reported only once
	/sources/arc-5.21p/arc.c:232: for each function it appears in.)

*	bc
	Supply the correct pachset name.
	Improved SUMMARY.
	Minor cosmetics.

*	beshare
	Removed missing patchset which was declared alongside the existing one.
	Minor cosmetics.

*	brexx
	Added PATCHES to the recipe.
	Minor cosmetics.
	Won't build:

	/packages/gcc-2.95.3_2014_10_14-3/.self/develop/tools/i586-pc-haiku/bin/ld: cannot find -lPortManager
	collect2: ld returned 1 exit status
	make[1]: *** [obj/rx] Error 1
	make[1]: Leaving directory `/sources/BeBRexx/src'
	make: [brexx] Error 2 (ignored)
	Collecting files to be packaged ...
	Error: Couldn't access "/sources/BeBRexx/PortManager/obj/PortManager": No such file or directory

*	cd
	Improved SUMMARY.
	Minor cosmetics.
	Won't build:

	Fetching package for devel:libim ...
	*** failed to find a match for "devel:libim": Name not found

*	celestia
	Improved SUMMARY.
	Minor cosmetics.

*	chmlib
	Removed "." from SUMMARY.
	Minor cosmetics.

*	colorcode
	Removed "." from SUMMARY.
	Minor cosmetics.

*	command_not_found
	Removed "(C)" from copyright.
	Created a proper patchset from the provided patch.
	Added PATCHES. Remove manual patching from INSTALL().
	Minor cosmetics.

*	coveredcalc
	Removed "." from SUMMARY.
	Minor cosmetics.
	Added cmd:svn to BUILD_PREREQUIRES.

*	cyberdogs_sdl
	Improved and removed "." from SUMMARY.
	Minor cosmetics.
2015-07-19 10:08:15 +02:00

70 lines
2.1 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"
SOURCE_URI="https://codeload.github.com/lmartinking/cdogs-sdl/zip/master"
SOURCE_URI_2="https://codeload.github.com/lmartinking/cdogs-sdl-data/zip/master"
SOURCE_FILENAME="cdogs-sdl-master.zip"
SOURCE_FILENAME_2="cdogs-sdl-data-master.zip"
CHECKSUM_SHA256="9dca57eb6d73e6ff0bbb97867b2ef1797d1a6899722294951f4f74bcf2c2f1af"
CHECKSUM_SHA256_2="8c71bf2d964f1bc098463abcd795bcd400570bad367fb952206be9e83bcdcb11"
SOURCE_DIR="cdogs-sdl-master/src"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2008-2010 Lucas Martin-King"
ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
Cyberdogs_SDL= $portVersion
app:Cyberdogs_SDL= $portVersion
"
REQUIRES="
haiku
lib:libsdl
lib:libsdl_mixer
"
BUILD_REQUIRES="
haiku_devel
devel:libsdl
devel:libsdl_mixer
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
"
PATCH()
{
sed -i "s|PREFIX := /usr/local|PREFIX := $appsDir/cdogs_sdl|" $sourceDir/Makefile
sed -i "s|:= no|:= yes|" $sourceDir/Makefile
sed -i "s|BINDIR := "'$(PREFIX)'"/games/bin|BINDIR := $appsDir/cdogs_sdl|" $sourceDir/Makefile
sed -i "s|DATADIR := "'$(PREFIX)'"/share/games/cdogs-sdl|DATADIR := $appsDir/cdogs_sdl/data|" $sourceDir/Makefile
sed -i "s|DOCDIR := "'$(PREFIX)'"/share/doc/cdogs-sdl|DOCDIR := $appsDir/cdogs_sdl/docs|" $sourceDir/Makefile
sed -i "s|DATA := ../data|DATA := $appsDir/cdogs_sdl/data|" $sourceDir/Makefile
}
BUILD()
{
mkdir -p $appsDir/cdogs_sdl/doc/
mkdir -p $appsDir/cdogs_sdl/data
mkdir -p $sourceDir/data
mkdir -p $settingsDir/cdogs
cd $sourceDir/data
cp -r $sourceDir2/cdogs-sdl-data-master/* $sourceDir/data
cd $sourceDir
chmod 777 ./install.sh
mkdir -p data
make $jobArgs cdogs-sdl USE_PKGCONFIG=no
make $jobArgs cdogs-sdl-editor USE_PKGCONFIG=no
}
INSTALL()
{
mkdir -p $appsDir/cdogs_sdl
cp cdogs-sdl $appsDir/cdogs_sdl
cp cdogs-sdl-editor $appsDir/cdogs_sdl
cp -r data/* $appsDir/cdogs_sdl/data
addAppDeskbarSymlink $appsDir/cdogs_sdl/cdogs-sdl Cyberdogs-sdl
}