1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit cmake-utils eutils subversion games
9 DESCRIPTION="A cross-platform reimplementation of engine for the classic Bullfrog game, Syndicate"
10 HOMEPAGE="http://freesynd.sourceforge.net/"
11 ESVN_REPO_URI="https://${PN}.svn.sourceforge.net/svnroot/${PN}/${PN}/trunk"
18 RDEPEND="media-libs/libogg
20 media-libs/libsdl[X,audio,video]
22 media-libs/sdl-mixer[mp3,vorbis]
23 media-libs/sdl-image[png]"
26 CMAKE_IN_SOURCE_BUILD=1
30 -e "/freesynd_data_dir/s#/usr/share#${GAMES_DATADIR}#" \
31 -e "/freesynd_data_dir/s/#//" \
36 cmake-utils_src_configure
40 dogamesbin src/${PN} || die
41 insinto "${GAMES_DATADIR}"/${PN}
43 newicon icon/sword.png ${PN}.png || die
44 make_desktop_entry ${PN} ${PN} ${PN}
45 dodoc NEWS README INSTALL AUTHORS || die
50 elog "You have to set \"data_dir = /my/path/to/synd-data\""
51 elog "in \"~/.${PN}/${PN}.ini\"."