# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit eutils flag-o-matic games DESCRIPTION="" HOMEPAGE="http://benny.kramekweb.com/machineball/" SRC_URI="http://benny.kramekweb.com/${PN}/${PN}-src-${PV}-1.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/opengl virtual/glu dev-games/ode >=media-libs/allegro-4.4.1.1[opengl] media-libs/dumb media-libs/aldumb" S=${WORKDIR}/${PN}-src src_prepare() { sed -i \ -e 's:gcc:$(CC) $(LDFLAGS) $(CFLAGS):' \ -e 's:-lagl:-lalleggl:' \ Makefile || die } src_compile() { append-ldflags -Wl,-z,noexecstack emake || die } src_install() { dogamesbin ${PN} || die dodoc README newicon ${PN}-icon-48x48.xpm ${PN}.xpm make_desktop_entry ${PN} ${PN} prepgamesdirs }