1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit games cmake-utils 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 SRC_URI="http://omploader.org/vNjdnZw/${P}.tar.bz2"
13 LICENSE="DOOMLIC BUILDLIC BSD"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="mmx gtk fluidsynth"
18 RDEPEND="gtk? ( x11-libs/gtk+:2 )
19 fluidsynth? ( media-sound/fluidsynth )
28 mmx? ( || ( dev-lang/nasm dev-lang/yasm ) )"
31 # Use default game data path"
33 -e "s:/usr/local/share/:${GAMES_DATADIR}/doom-data/:" \
34 src/sdl/i_system.h || die
35 epatch "${FILESDIR}/${PN}-respect-fluidsynth-useflag.patch"
36 epatch "${FILESDIR}/${P}-fix-new-fmod.patch"
41 $(cmake-utils_use_no mmx ASM)
42 $(cmake-utils_use_no gtk GTK)
43 $(cmake-utils_use_use fluidsynth FLUIDSYNTH)
46 cmake-utils_src_configure
50 dodoc docs/*.{txt,TXT} || die
51 dohtml docs/console*.{css,html} || die
53 cd "${CMAKE_BUILD_DIR}" || die
54 dogamesbin ${PN} || die
56 insinto "${GAMES_DATADIR}/doom-data"
57 doins ${PN}.pk3 || die
65 elog "Copy or link wad files into ${GAMES_DATADIR}/doom-data/"
66 elog "(the files must be readable by the 'games' group)."
68 elog "To play, simply run:"
71 if use fluidsynth && ! has_version media-sound/fluid-soundfont; then
72 ewarn "You may need to install media-sound/fluid-soundfont"
73 ewarn "for fluidsynth to play music, depending on your sound card."
75 elog "See /usr/share/doc/${P}/zdoom.txt.bz2 for more info"