1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit games cmake-utils subversion eutils
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 )
29 mmx? ( || ( dev-lang/nasm dev-lang/yasm ) )"
32 # Use default game data path
34 -e "s:/usr/local/share/:${GAMES_DATADIR}/doom-data/:" \
35 src/sdl/i_system.h || die
36 epatch "${FILESDIR}/${PN}-respect-fluidsynth-useflag.patch"
37 # epatch "${FILESDIR}/${P}-fix-new-fmod.patch"
42 $(cmake-utils_use_no mmx ASM)
43 $(cmake-utils_use_no gtk GTK)
44 $(cmake-utils_use_use fluidsynth FLUIDSYNTH)
45 -DFMOD_INCLUDE_DIR=/opt/fmodex/api/inc/
46 -DFMOD_LIBRARY=/opt/fmodex/api/lib/libfmodex.so
49 cmake-utils_src_configure
53 dodoc docs/*.{txt,TXT} || die
54 dohtml docs/console*.{css,html} || die
56 cd "${CMAKE_BUILD_DIR}" || die
57 dogamesbin ${PN} || die
59 insinto "${GAMES_DATADIR}/doom-data"
60 doins ${PN}.pk3 || die
68 elog "Copy or link wad files into ${GAMES_DATADIR}/doom-data/"
69 elog "(the files must be readable by the 'games' group)."
71 elog "To play, simply run:"
74 if use fluidsynth && ! has_version media-sound/fluid-soundfont; then
75 ewarn "You may need to install media-sound/fluid-soundfont"
76 ewarn "for fluidsynth to play music, depending on your sound card."
78 elog "See /usr/share/doc/${P}/zdoom.txt.* for more info"