mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
73
games-strategy/dopewars/dopewars-1.5.12.recipe
Normal file
73
games-strategy/dopewars/dopewars-1.5.12.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
SUMMARY="Make a fortune dealing drugs on the streets of New York"
|
||||
DESCRIPTION="dopewars is a free Unix/Win32 rewrite of a game originally based \
|
||||
on \"Drug Wars\" by John E. Dell. The idea of dopewars is to deal in drugs on \
|
||||
the streets of New York, amassing a huge fortune and paying off the loan \
|
||||
shark, while avoiding the ever-annoying police. The Unix/Win32 rewrite, as \
|
||||
featuring a so-called \"antique\" mode which closely follows the original, \
|
||||
introduces new features such as the ability to take part in multi-player \
|
||||
games. dopewars aims to be highly configurable, and what you can't change in \
|
||||
the configuration files you can change by poking around in the source, which \
|
||||
is freely available under the terms of the GNU General Public License.
|
||||
|
||||
ADVISORY: dopewars is not recommended for children below 16 without parental \
|
||||
supervision. We also do not condone real-life drug dealing."
|
||||
HOMEPAGE="https://dopewars.sourceforge.io/"
|
||||
COPYRIGHT="1999-2005 dopewars developers"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/dopewars/dopewars-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="23059dcdea96c6072b148ee21d76237ef3535e5be90b3b2d8239d150feee0c19"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
var/dopewars.sco keep-old
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
dopewars = $portVersion
|
||||
cmd:dopewars
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libglib
|
||||
lib:libiconv
|
||||
lib:libintl
|
||||
lib:libncurses
|
||||
lib:libSDL_1.2
|
||||
lib:libSDL_mixer_1.2
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libglib
|
||||
devel:libiconv
|
||||
devel:libintl
|
||||
devel:libncurses
|
||||
devel:libSDL
|
||||
devel:libSDL_mixer
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i '/ac_lib/ s/socket/network/g' configure
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export LIBS="-lintl -liconv"
|
||||
runConfigure --omit-dirs "dataRootDir docDir" ./configure --build=x86
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
install -m 755 -d "$docDir"
|
||||
mv "$dataDir/doc/dopewars-$portVersion"/* "$docDir"
|
||||
rm -rf "$dataDir/doc" "$dataDir/gnome" "$dataDir/pixmaps" "$libDir"
|
||||
}
|
||||
Reference in New Issue
Block a user