1 # Copyright 1999-2011 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"
40 $(cmake-utils_use_no mmx ASM)
41 $(cmake-utils_use_no gtk GTK)
42 $(cmake-utils_use_use fluidsynth FLUIDSYNTH)
45 cmake-utils_src_configure
49 dodoc docs/*.{txt,TXT} || die
50 dohtml docs/console*.{css,html} || die
52 cd "${CMAKE_BUILD_DIR}" || die
53 dogamesbin ${PN} || die
55 insinto "${GAMES_DATADIR}/doom-data"
56 doins ${PN}.pk3 || die
64 elog "Copy or link wad files into ${GAMES_DATADIR}/doom-data/"
65 elog "(the files must be readable by the 'games' group)."
67 elog "To play, simply run:"
70 if use fluidsynth && ! has_version media-sound/fluid-soundfont; then
71 ewarn "You may need to install media-sound/fluid-soundfont"
72 ewarn "for fluidsynth to play music, depending on your sound card."
74 elog "See /usr/share/doc/${P}/zdoom.txt.bz2 for more info"