1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools eutils games
7 DESCRIPTION="BSP nodebuilder for DooM engine games."
8 HOMEPAGE="http://games.moria.org.uk/doom/bsp/"
9 SRC_URI="http://games.moria.org.uk/doom/bsp/download/${P}.tar.bz2"
14 IUSE="debug dmalloc profile"
16 DEPEND="dmalloc? ( dev-libs/dmalloc )"
22 # The configure script clobbers CFLAGS and doesn't handle
23 # --enable-{debug,profile} correctly. Fix it.
25 -e '/^CFLAGS="-O2 -fomit-frame-pointer"$/d' \
26 -e '/^AC_C_COMPILE_FLAGS(.*)$/d' \
27 -e 's:^CFLAGS="-g"$:if test "${enableval}" = "yes"; then CFLAGS="${CFLAGS} -g"; fi:' \
28 -e 's:^CFLAGS="-pg"$:if test "${enableval}" = "yes"; then CFLAGS="${CFLAGS} -pg"; fi:' \
29 configure.in || die "sed configure.in failed"
30 # We want documentation to be installed only through dodoc
33 -e '/^doc_DATA =.*/d' \
34 Makefile.am || die "sed Makefile.am failed"
42 $(use_enable dmalloc) \
43 $(use_enable profile) \
44 || die "egamesconf failed"
45 emake || die "emake failed"
49 emake DESTDIR="${D}" install || die "emake install failed"
50 dodoc AUTHORS NEWS README visplane.txt