From 1585987481b2f300df7ea60fa3060aa4fb7ce159 Mon Sep 17 00:00:00 2001 From: begasus Date: Mon, 25 Aug 2014 20:42:15 +0200 Subject: [PATCH] lgeneral new recipe and patch file for version 1.2.3 --- games-puzzle/lgeneral/lgeneral-1.2.3.recipe | 66 +++++++++++++++++++ .../lgeneral/patches/lgeneral-1.2.3.patch | 20 ++++++ 2 files changed, 86 insertions(+) create mode 100644 games-puzzle/lgeneral/lgeneral-1.2.3.recipe create mode 100644 games-puzzle/lgeneral/patches/lgeneral-1.2.3.patch diff --git a/games-puzzle/lgeneral/lgeneral-1.2.3.recipe b/games-puzzle/lgeneral/lgeneral-1.2.3.recipe new file mode 100644 index 000000000..e985dde37 --- /dev/null +++ b/games-puzzle/lgeneral/lgeneral-1.2.3.recipe @@ -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 +} diff --git a/games-puzzle/lgeneral/patches/lgeneral-1.2.3.patch b/games-puzzle/lgeneral/patches/lgeneral-1.2.3.patch new file mode 100644 index 000000000..1719eb095 --- /dev/null +++ b/games-puzzle/lgeneral/patches/lgeneral-1.2.3.patch @@ -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