1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit games autotools
7 DESCRIPTION="Doom port designed to act identically to the original game"
8 HOMEPAGE="http://www.chocolate-doom.org/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
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"
41 --disable-dependency-tracking \
42 || die "egamesconf failed"
44 emake || die "emake failed"
48 dogamesbin "src/${PN}" || die "dogamesbin ${PN} failed"
49 dogamesbin setup/chocolate-setup || die "dogamesbin chocolate-setup failed"
51 dogamesbin src/chocolate-server || die "dogamesbin chocolate-server failed"
54 newicon data/doom.png "${PN}.png" || die "doicon failed"
55 make_desktop_entry "${PN}" "Chocolate Doom"
56 newicon data/setup.png chocolate-setup.png || die "doicon failed"
57 make_desktop_entry chocolate-setup "Chocolate Doom Setup" chocolate-setup.png
59 doman man/*.{5,6} || die "doman failed"
60 dodoc AUTHORS BUGS CMDLINE ChangeLog NEWS README TODO || die "dodoc failed"
62 dodir "${GAMES_DATADIR}/doom-data" || die "dodir failed"
71 elog "To play the original Doom levels, place doom.wad and/or doom2.wad"
72 elog "into "${GAMES_DATADIR}"/doom-data, then run: ${PN}"
74 elog "To configure game options run: chocolate-setup"