dreamchess-0.3.0.recipe revision 3ad49e50
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="1"
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"
29
30PROVIDES="
31	dreamchess
32	app:DreamChess
33	"
34REQUIRES="
35	haiku
36	lib:libexpat
37	lib:libGL
38	lib:libGLU
39	lib:libglew
40	lib:libmxml
41	lib:libSDL2_2.0
42	lib:libSDL2_image_2.0
43	lib:libSDL2_mixer_2.0
44	lib:libz
45	"
46
47BUILD_REQUIRES="
48	haiku_devel
49	devel:libexpat
50	devel:libGL
51	devel:libGLU
52	devel:libglew
53	devel:libmxml
54	devel:libSDL2
55	devel:libSDL2_image
56	devel:libSDL2_mixer
57	devel:libz
58	"
59BUILD_PREREQUIRES="
60	cmd:awk
61	cmd:bison
62	cmd:cmake
63	cmd:find
64	cmd:flex
65	cmd:gcc
66	cmd:make
67	"
68
69BUILD()
70{
71	mkdir -p build
72	cd build
73	cmake .. \
74		-DCMAKE_BUILD_TYPE=Release \
75		-DCMAKE_INSTALL_PREFIX=$appsDir/DreamChess \
76		-DCMAKE_INSTALL_BINDIR=$appsDir/DreamChess \
77		-DCMAKE_INSTALL_MANDIR=$appsDir/DreamChess/man \
78		-DCMAKE_INSTALL_DOCDIR=$appsDir/DreamChess/doc \
79		-DCMAKE_INSTALL_FULL_DATADIR=$appsDir/DreamChess/data \
80		-DCMAKE_INSTALL_DATAROOTDIR=$appsDir/DreamChess/data \
81		-DCMAKE_INSTALL_DATADIR=$appsDir/DreamChess/data
82	make $jobArgs
83}
84
85INSTALL()
86{
87	cd build
88	make install
89	
90	mv $appsDir/DreamChess/dreamchess $appsDir/DreamChess/DreamChess
91	rm -rf $appsDir/DreamChess/{man,data/applications,data/icons}
92
93	local APP_SIGNATURE="application/x-vnd.DreamChess"
94	local MAJOR="`echo "$portVersion" | cut -d. -f1`"
95	local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
96	local MINOR="`echo "$portVersion" | cut -d. -f3`"
97	local LONG_INFO="$SUMMARY"
98	sed \
99		-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
100		-e "s|@MAJOR@|$MAJOR|" \
101		-e "s|@MIDDLE@|$MIDDLE|" \
102		-e "s|@MINOR@|$MINOR|" \
103		-e "s|@LONG_INFO@|$LONG_INFO|" \
104		$portDir/additional-files/dreamchess.rdef.in > dreamchess.rdef
105
106	addResourcesToBinaries dreamchess.rdef $appsDir/DreamChess/DreamChess
107	addAppDeskbarSymlink $appsDir/DreamChess/DreamChess DreamChess
108}
109