dreamchess-0.3.0.recipe revision 92b3f147
1SUMMARY="XBoard-compatible 3D chess interface and engine" 2DESCRIPTION="DreamChess is an open source chess game. Our primary target platforms are Windows, \ 3Mac OS X and Linux. DreamChess features 3D OpenGL graphics and provides various chess board sets, \ 4ranging from classic wooden to flat figurines. 5 6A moderately strong chess engine is included: Dreamer. However, should this engine be too weak \ 7for you, then you can use any other XBoard-compatible chess engine, including the popular Crafty \ 8and GNU Chess. 9 10Other features include music, sound effects, on-screen move lists using SAN notation, undo \ 11functionality, and savegames in PGN format. 12 13The DreamChess team currently consists of only a handful of people. We could use help in many \ 14areas, such as programming, graphics, sound and testing. If you���re interested in helping out, \ 15please send an email to feedback at dreamchess.org." 16HOMEPAGE="https://www.dreamchess.org/" 17COPYRIGHT="2003-2007 Andrew Ball, Annie Kirkpatrick, Brandon May, Kris McAulay, \ 18Walter van Niftrik, Rogier van Schaijk, Lawrence Sebald, Matthew P. Smith 19 1991-1993 The Regents of the University of California 20 1998-2005 Gilles Vollant" 21LICENSE="GNU GPL v3" 22REVISION="2" 23SOURCE_URI="https://github.com/dreamchess/dreamchess/archive/$portVersion.tar.gz" 24CHECKSUM_SHA256="b070a34acf69ed92e523902683d104abb295d78b6f37663f4668e929b9e90470" 25PATCHES="dreamchess-$portVersion.patchset" 26ADDITIONAL_FILES="dreamchess.rdef.in" 27 28ARCHITECTURES="!x86_gcc2 x86_64" 29SECONDARY_ARCHITECTURES="x86" 30 31PROVIDES=" 32 dreamchess$secondaryArchSuffix = $portVersion 33 app:DreamChess$secondaryArchSuffix 34 " 35REQUIRES=" 36 haiku$secondaryArchSuffix 37 lib:libexpat$secondaryArchSuffix 38 lib:libGL$secondaryArchSuffix 39 lib:libGLU$secondaryArchSuffix 40 lib:libglew$secondaryArchSuffix 41 lib:libmxml$secondaryArchSuffix 42 lib:libSDL2_2.0$secondaryArchSuffix 43 lib:libSDL2_image_2.0$secondaryArchSuffix 44 lib:libSDL2_mixer_2.0$secondaryArchSuffix 45 lib:libz$secondaryArchSuffix 46 " 47 48BUILD_REQUIRES=" 49 haiku${secondaryArchSuffix}_devel 50 devel:libexpat$secondaryArchSuffix 51 devel:libGL$secondaryArchSuffix 52 devel:libGLU$secondaryArchSuffix 53 devel:libglew$secondaryArchSuffix 54 devel:libmxml$secondaryArchSuffix 55 devel:libSDL2$secondaryArchSuffix 56 devel:libSDL2_image$secondaryArchSuffix 57 devel:libSDL2_mixer$secondaryArchSuffix 58 devel:libz$secondaryArchSuffix 59 " 60BUILD_PREREQUIRES=" 61 cmd:awk 62 cmd:bison 63 cmd:cmake 64 cmd:find 65 cmd:flex 66 cmd:gcc$secondaryArchSuffix 67 cmd:ld$secondaryArchSuffix 68 cmd:make 69 " 70 71BUILD() 72{ 73 mkdir -p build 74 cd build 75 cmake .. \ 76 -DCMAKE_BUILD_TYPE=Release \ 77 -DCMAKE_INSTALL_PREFIX=$appsDir/DreamChess \ 78 -DCMAKE_INSTALL_BINDIR=$appsDir/DreamChess \ 79 -DCMAKE_INSTALL_MANDIR=$appsDir/DreamChess/man \ 80 -DCMAKE_INSTALL_DOCDIR=$appsDir/DreamChess/doc \ 81 -DCMAKE_INSTALL_FULL_DATADIR=$appsDir/DreamChess/data \ 82 -DCMAKE_INSTALL_DATAROOTDIR=$appsDir/DreamChess/data \ 83 -DCMAKE_INSTALL_DATADIR=$appsDir/DreamChess/data 84 make $jobArgs 85} 86 87INSTALL() 88{ 89 cd build 90 make install 91 92 mv $appsDir/DreamChess/dreamchess $appsDir/DreamChess/DreamChess 93 rm -rf $appsDir/DreamChess/{man,data/applications,data/icons} 94 95 local APP_SIGNATURE="application/x-vnd.DreamChess" 96 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 97 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 98 local MINOR="`echo "$portVersion" | cut -d. -f3`" 99 local LONG_INFO="$SUMMARY" 100 sed \ 101 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 102 -e "s|@MAJOR@|$MAJOR|" \ 103 -e "s|@MIDDLE@|$MIDDLE|" \ 104 -e "s|@MINOR@|$MINOR|" \ 105 -e "s|@LONG_INFO@|$LONG_INFO|" \ 106 $portDir/additional-files/dreamchess.rdef.in > dreamchess.rdef 107 108 addResourcesToBinaries dreamchess.rdef $appsDir/DreamChess/DreamChess 109 addAppDeskbarSymlink $appsDir/DreamChess/DreamChess DreamChess 110} 111