mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Merged in Begasus/haikuports_games/lgeneral (pull request #216)
lgeneral new recipe and patch file for version 1.2.3
This commit is contained in:
66
games-puzzle/lgeneral/lgeneral-1.2.3.recipe
Normal file
66
games-puzzle/lgeneral/lgeneral-1.2.3.recipe
Normal file
@@ -0,0 +1,66 @@
|
||||
SUMMARY="LGeneral is a turn-based strategy engine "
|
||||
DESCRIPTION="LGeneral is a turn-based strategy engine heavily inspired by Panzer General. \
|
||||
You play single scenarios or whole campaigns turn by turn against a human \
|
||||
player or the AI. Entrenchment, rugged defense, defensive fire, surprise \
|
||||
contacts, surrender, unit supply, weather influence, reinforcements and other \
|
||||
implementations contribute to the tactical and strategic depth of the game."
|
||||
HOMEPAGE="http://lgames.sourceforge.net/"
|
||||
SRC_URI="http://downloads.sourceforge.net/project/lgeneral/lgeneral/lgeneral-1.2.3.tar.gz"
|
||||
CHECKSUM_SHA256="55d17bb173c956c705b94bc8a6399d5311b3ec82c9f1821a97fe9ec45da0d9a1"
|
||||
SRC_URI_2="http://prdownloads.sourceforge.net/lgeneral/pg-data.tar.gz"
|
||||
CHECKSUM_SHA256_2="cc6fa5d263d1d5824d706517958b1bb09b405ba0ed21e63e4a4d38e2727d7a04"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="Michael Speck, Leo Savernik, Peter Ivanyi"
|
||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
|
||||
PATCHES="lgeneral-1.2.3.patch"
|
||||
|
||||
PROVIDES="
|
||||
lgeneral = $portVersion
|
||||
cmd:lgeneral = $portVersion
|
||||
cmd:lgc_pg = $portVersion
|
||||
cmd:lged = $portVersion
|
||||
cmd:ltrextract = $portVersion
|
||||
cmd:shptool = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
lib:libsdl
|
||||
lib:libsdl_mixer
|
||||
lib:libsdl_net
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
devel:libsdl
|
||||
devel:libsdl_mixer
|
||||
devel:libsdl_net
|
||||
devel:libintl
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:libtoolize
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
runConfigure ./configure --disable-nls
|
||||
|
||||
mkdir -p pg-data
|
||||
cp ../../sources-2/pg-data/* ./pg-data/
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
$binDir/lgc-pg -s ./pg-data
|
||||
addAppDeskbarSymlink $binDir/lgeneral LGeneral
|
||||
}
|
||||
20
games-puzzle/lgeneral/patches/lgeneral-1.2.3.patch
Normal file
20
games-puzzle/lgeneral/patches/lgeneral-1.2.3.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
--- lgeneral-1.2.3/configure.org 2012-04-20 20:50:03.000000000 +0200
|
||||
+++ lgeneral-1.2.3/configure 2014-07-14 16:31:39.049283072 +0200
|
||||
@@ -5314,7 +5314,7 @@
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-lm $LIBS"
|
||||
+LIBS="$LIBS"
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
@@ -5368,7 +5368,7 @@
|
||||
#define HAVE_LIBM 1
|
||||
_ACEOF
|
||||
|
||||
- LIBS="-lm $LIBS"
|
||||
+ LIBS="$LIBS"
|
||||
|
||||
else
|
||||
{ { echo "$as_me:$LINENO: error: maths library is needed" >&5
|
||||
Reference in New Issue
Block a user