1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools subversion games
7 DESCRIPTION="Doom port designed to act identically to the original game"
8 HOMEPAGE="http://www.chocolate-doom.org/"
9 ESVN_REPO_URI="https://chocolate-doom.svn.sourceforge.net/svnroot/${PN}/trunk/${PN}"
16 DEPEND=">=media-libs/libsdl-1.1.3
25 # Change default search path for IWAD
27 -e "s:/usr/share/games/doom:${GAMES_DATADIR}/doom-data:" \
28 src/d_iwad.c || die "sed main.c failed"
31 -e "s:^gamesdir =.*:gamesdir = ${GAMES_BINDIR}:" \
32 setup/Makefile.am || die "sed Makefile.am failed"
40 --disable-dependency-tracking \
41 || die "egamesconf failed"
43 emake || die "emake failed"
47 dogamesbin "src/${PN}" || die "dogamesbin ${PN} failed"
48 dogamesbin setup/chocolate-setup || die "dogamesbin chocolate-setup failed"
50 dogamesbin src/chocolate-server || die "dogamesbin chocolate-server failed"
53 newicon data/doom.png "${PN}.png" || die "doicon failed"
54 make_desktop_entry "${PN}" "Chocolate Doom"
55 newicon data/setup.png chocolate-setup.png || die "doicon failed"
56 make_desktop_entry chocolate-setup "Chocolate Doom Setup" chocolate-setup.png
58 doman man/*.{5,6} || die "doman failed"
59 dodoc AUTHORS BUGS CMDLINE ChangeLog NEWS README TODO || die "dodoc failed"
61 dodir "${GAMES_DATADIR}/doom-data" || die "dodir failed"
70 einfo "To play the original Doom levels, place doom.wad and/or doom2.wad"
71 einfo "into "${GAMES_DATADIR}"/doom-data, then run: ${PN}"
73 einfo "To configure game options run: chocolate-setup"