mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
dopewars, bump version (#5551)
This commit is contained in:
@@ -1,73 +0,0 @@
|
||||
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="2"
|
||||
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_1.2
|
||||
devel:libSDL_mixer_1.2
|
||||
"
|
||||
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"
|
||||
}
|
||||
87
games-strategy/dopewars/dopewars-1.6.1.recipe
Normal file
87
games-strategy/dopewars/dopewars-1.6.1.recipe
Normal file
@@ -0,0 +1,87 @@
|
||||
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/
|
||||
https://github.com/benmwebb/dopewars"
|
||||
COPYRIGHT="1999-2020 dopewars developers"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/dopewars/dopewars-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="83127903a61d81cda251a022f9df150d11e27bdd040e858c09c57927cc0edea6"
|
||||
PATCHES="dopewars-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandBinDir=$binDir
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
var/dopewars.sco keep-old
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
dopewars$secondaryArchSuffix = $portVersion
|
||||
cmd:dopewars$commandSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcurl$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libncurses$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcurl$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libncurses$secondaryArchSuffix
|
||||
devel:libSDL2_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:awk
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -vfi
|
||||
runConfigure --omit-dirs "binDir dataRootDir docDir" \
|
||||
./configure \
|
||||
--bindir=$commandBinDir
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
install -m 755 -d "$docDir"
|
||||
mv $prefix/share/doc/dopewars/* "$docDir"
|
||||
rm -rf "$dataDir/gnome" "$dataDir/pixmaps" "$prefix/share"
|
||||
}
|
||||
22
games-strategy/dopewars/patches/dopewars-1.6.1.patchset
Normal file
22
games-strategy/dopewars/patches/dopewars-1.6.1.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From ee69cb2b466a05c9cb586a4aa794e8f6e643534c Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Fri, 1 Jan 2021 11:07:14 +0000
|
||||
Subject: Add search for libnetwork
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 8b9f0a5..ca3867e 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -375,7 +375,7 @@ else
|
||||
dnl Check for socket and select even if networking gets manually
|
||||
dnl disabled below, since select is used if available for
|
||||
dnl millisecond sleeping
|
||||
- AC_SEARCH_LIBS(socket,socket)
|
||||
+ AC_SEARCH_LIBS(socket,socket network)
|
||||
AC_SEARCH_LIBS(gethostbyname,nsl socket)
|
||||
AC_CHECK_FUNCS(socket gethostbyname select)
|
||||
if test "$ac_cv_func_select" = "yes" ; then
|
||||
--
|
||||
2.28.0
|
||||
|
||||
Reference in New Issue
Block a user