1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils autotools games
7 MY_MUSIC="${PN}-music-1.0.run"
9 DESCRIPTION="3D OpenGL moderately-strong chess engine"
10 HOMEPAGE="http://www.dreamchess.org/"
11 SRC_URI="mirror://berlios/${PN}/${P}.tar.gz
12 sound? ( music? ( mirror://berlios/${PN}/${MY_MUSIC}.tar ) )"
19 RDEPEND="virtual/opengl
22 sound? ( media-libs/sdl-mixer )
29 epatch "${FILESDIR}/${P}-configure.ac.patch"
33 "${WORKDIR}/${MY_MUSIC}" --tar xf
35 ewarn "You need to enable the sound use flag to play music."
41 egamesconf $( use_with sound mixer-sdl )
42 emake || die "emake failed"
46 emake DESTDIR="${D}" install || die "emake install"
47 dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
48 newicon data/icon.png ${PN}.png || die "newicon failed"
49 make_desktop_entry ${PN} "DreamChess" ${PN}.png