From fd5345c707828098ed62c789cd79aaca0701f32d Mon Sep 17 00:00:00 2001 From: begasus Date: Sat, 23 Aug 2014 10:41:28 +0200 Subject: [PATCH] Tetris clone ltris for gcc2 and gcc4 --- games-puzzle/ltris/ltris-1.0.19.recipe | 60 +++++++++++++++++++ games-puzzle/ltris/patches/ltris-1.0.19.patch | 11 ++++ 2 files changed, 71 insertions(+) create mode 100644 games-puzzle/ltris/ltris-1.0.19.recipe create mode 100644 games-puzzle/ltris/patches/ltris-1.0.19.patch diff --git a/games-puzzle/ltris/ltris-1.0.19.recipe b/games-puzzle/ltris/ltris-1.0.19.recipe new file mode 100644 index 000000000..64dff2c43 --- /dev/null +++ b/games-puzzle/ltris/ltris-1.0.19.recipe @@ -0,0 +1,60 @@ +SUMMARY="LTris as a tetris clone" +DESCRIPTION="LTris as a tetris clone: differently shaped blocks are falling down the \ +rectangular playing field and can be moved sideways or rotated by 90 degree \ +units with the aim of building lines without gaps which then disappear \ +(causing any block above the deleted line to fall down)." +HOMEPAGE="http://lgames.sourceforge.net/" +SRC_URI="http://sourceforge.net/projects/lgames/files/ltris/ltris-1.0.19.tar.gz" +REVISION="1" +LICENSE="GNU GPL v2" +COPYRIGHT="2002-2011 Michael Speck" +CHECKSUM_SHA256="8f6a9e7719d22004aee153db29ffd9ca41c7a6cd87fc791591994eecc2e625a1" +ARCHITECTURES="x86_gcc2 x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + ltris$secondaryArchSuffix = $portVersion + cmd:ltris$secondaryArchSuffix = $portVersion +" + +PATCHES="ltris-1.0.19.patch" + + +GLOBAL_WRITABLE_FILES="var/ltris.hscr keep-old" + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libsdl$secondaryArchSuffix + lib:libsdl_mixer$secondaryArchSuffix + lib:libintl$secondaryArchSuffix +" + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libsdl${secondaryArchSuffix} + devel:libsdl_mixer${secondaryArchSuffix} + devel:libintl${secondaryArchSuffix} +" + +BUILD_PREREQUIRES=" + cmd:make + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize +" + +BUILD() +{ + libtoolize --force --copy --install + runConfigure ./configure + + make $jobArgs +} +INSTALL() +{ + make install + + addAppDeskbarSymlink $binDir/ltris LTris + mkdir -p $appsDir + ln -s $binDir/ltris $appsDir/LTris +} diff --git a/games-puzzle/ltris/patches/ltris-1.0.19.patch b/games-puzzle/ltris/patches/ltris-1.0.19.patch new file mode 100644 index 000000000..370003116 --- /dev/null +++ b/games-puzzle/ltris/patches/ltris-1.0.19.patch @@ -0,0 +1,11 @@ +--- ltris-1.0.19/src/Makefile.in.org 2014-08-20 20:58:25.546308096 +0000 ++++ ltris-1.0.19/src/Makefile.in 2014-08-20 20:49:15.268697600 +0000 +@@ -167,7 +167,7 @@ + LIBICONV = @LIBICONV@ + LIBINTL = @LIBINTL@ + LIBOBJS = @LIBOBJS@ +-LIBS = @LIBS@ ++LIBS = @LIBS@ -lintl + LTLIBICONV = @LTLIBICONV@ + LTLIBINTL = @LTLIBINTL@ + LTLIBOBJS = @LTLIBOBJS@