# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-util/emilia-pinedit/emilia-pinedit-0.3.1.ebuild,v 1.11 2005/06/15 19:23:49 wolf31o2 Exp $ inherit eutils games MY_P=${PN/emilia-/}-${PV} S=${WORKDIR}/${MY_P} DESCRIPTION="A table-editor for the emilia-pinball" HOMEPAGE="http://pinball.sourceforge.net/" SRC_URI="mirror://sourceforge/pinball/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="ppc x86" IUSE="" DEPEND="virtual/opengl virtual/x11 media-libs/libsdl media-libs/sdl-image media-libs/sdl-mixer >=games-arcade/emilia-pinball-0.3.1" src_unpack() { unpack ${A} cd ${S} sed -i \ -e "/^CFLAGS=/s:-g -W -Wall:${CFLAGS}:" \ -e "/^CXXFLAGS=/s:-g -W -Wall:${CXXFLAGS}:" \ configure \ || die "sed configure failed" sed -i \ -e "/^LDFLAGS/s:$:$(pinball-config --libs) @LIBS@ -lSDL -lSDL_image -lSDL_mixer:" \ pinedit/Makefile.in \ || die "sed pinedit/Makefile.in failed" epatch ${FILESDIR}/${PV}-assert.patch } src_compile() { egamesconf || die emake -j1 || die } src_install() { dodoc AUTHORS NEWS README make DESTDIR=${D} install || die "make install failed" rm -rf ${D}/${GAMES_PREFIX}/{include,lib} prepgamesdirs }