1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit games cmake-utils subversion
9 DESCRIPTION="Enhanced OpenGL port of the official DOOM source code that also supports Heretic, Hexen, and Strife"
10 HOMEPAGE="http://grafzahl.drdteam.org/"
11 ESVN_REPO_URI="http://mancubus.net/svn/hosted/gzdoom/trunk/"
13 LICENSE="DOOMLIC BUILDLIC BSD"
16 IUSE="mmx gtk fluidsynth"
19 fluidsynth? ( media-sound/fluidsynth )
20 gtk? ( x11-libs/gtk+:2 )
27 mmx? ( || ( dev-lang/nasm dev-lang/yasm ) )"
30 # Use default game data path
32 -e "s:/usr/local/share/:${GAMES_DATADIR}/doom-data/:" \
33 src/sdl/i_system.h || die
38 $(cmake-utils_use_no mmx ASM)
39 $(cmake-utils_use_no gtk GTK)
40 -DFMOD_INCLUDE_DIR=/opt/fmodex/api/inc/
41 -DFMOD_LIBRARY=/opt/fmodex/api/lib/libfmodex.so
44 cmake-utils_src_configure
48 dodoc docs/*.{txt,TXT} || die
49 dohtml docs/console*.{css,html} || die
51 cd "${CMAKE_BUILD_DIR}" || die
52 dogamesbin ${PN} || die
54 insinto "${GAMES_DATADIR}/doom-data"
55 doins ${PN}.pk3 || die
63 elog "Copy or link wad files into ${GAMES_DATADIR}/doom-data/"
64 elog "(the files must be readable by the 'games' group)."
66 elog "To play, simply run:"
69 if use fluidsynth && ! has_version media-sound/fluid-soundfont; then
70 ewarn "You may need to install media-sound/fluid-soundfont"
71 ewarn "for fluidsynth to play music, depending on your sound card."
73 elog "See /usr/share/doc/${P}/zdoom.txt.* for more info"