summaryrefslogtreecommitdiff
blob: 5741ae25de238f2544ce597c5fbcd1b10a00aea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/emilia-pinball/emilia-pinball-0.3.0.ebuild,v 1.8 2004/06/24 22:04:32 agriffis Exp $

inherit games

MY_PN=${PN/emilia-/}
MY_P=${MY_PN}-${PV}
DESCRIPTION="SDL OpenGL pinball game"
HOMEPAGE="http://pinball.sourceforge.net/"
SRC_URI="mirror://sourceforge/pinball/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 alpha"
IUSE=""

RDEPEND="virtual/opengl
	virtual/x11
	media-libs/libsdl
	media-libs/sdl-image
	media-libs/sdl-mixer"
DEPEND="${RDEPEND}
	>=sys-devel/autoconf-2.58"

S=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}
	export WANT_AUTOCONF=2.5
	cd ${S}/libltdl
	autoconf || die
}

src_compile() {
	egamesconf \
		--with-x \
		--with-buildroot-prefix=${D} \
		|| die
	make CXXFLAGS="${CXXFLAGS}" || die
}

src_install() {
	dodoc AUTHORS Changelog INSTALL NEWS README
	make DESTDIR=${D} install || die
	dosym ${GAMES_BINDIR}/pinball ${GAMES_BINDIR}/emilia-pinball
	rm -rf ${D}/${GAMES_PREFIX}/include
	rm -f ${D}/${GAMES_BINDIR}/pinball-config
	prepgamesdirs
}