# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # This ebuild come from http://www.dangerdeep.net - The site http://gentoo.zugaina.org/ only host a copy. inherit eutils toolchain-funcs games DESCRIPTION="a World War II German submarine simulation" HOMEPAGE="http://www.dangerdeep.net/" SRC_URI="mirror://sourceforge/${PN}/dangerdeep-${PV}.tar.gz mirror://sourceforge/${PN}/dangerdeep-data-${PV}.zip" LICENSE="GPL-2 dangerdeep-artwork" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="sse" RDEPEND="virtual/opengl virtual/glu sci-libs/fftw media-libs/libsdl media-libs/sdl-mixer media-libs/sdl-image media-libs/sdl-net" DEPEND="${RDEPEND} dev-util/scons" src_unpack() { unpack ${A} mv ${WORKDIR}/data ${S} cd "${S}" } src_compile() { local sse=-1 if use sse ; then use amd64 && sse=3 || sse=1 fi tc-export CXX addwrite /usr/include/GL:/usr/include/SDL:/usr/X11R6/lib scons \ ${MAKEOPTS} \ usex86sse=${sse} \ datadir="${GAMES_DATADIR}"/${PN} \ DESTDIR=${D} \ --cache-disable \ || die "scons failed" } src_install() { dogamesbin build/linux/${PN} || die "dogamesbin failed" insinto "${GAMES_DATADIR}"/${PN} doins -r data/* || die "doins failed" newicon logo.xpm ${PN}.xpm make_desktop_entry ${PN} "Danger from the Deep" ${PN}.xpm dodoc ChangeLog CREDITS README doman doc/man/${PN}.6 prepgamesdirs }