summaryrefslogtreecommitdiff
blob: 27c3a0237e2238227481ee57df8c45af7a00bc81 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-gui/sdl-gui-0.10.3.ebuild,v 1.7 2009/10/21 12:16:52 maekke Exp $

inherit eutils toolchain-funcs

MY_P="SDL_gui-${PV}"
DESCRIPTION="Graphical User Interface library that utilizes SDL"
HOMEPAGE="http://rhk.dataslab.com/SDL_gui"
SRC_URI="http://rhk.dataslab.com/SDL_gui/${MY_P}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND=">=media-libs/libsdl-1.1.4
	>=media-libs/sdl-image-1.0.9
	>=media-libs/sdl-ttf-1.2.1"
RDEPEND="${DEPEND}"

S=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/${P}-gcc4.patch"
	sed -i -e s/-Werror// configure
}

src_compile() {
	RANLIB="$(tc-getRANLIB)" CXX="$(tc-getCXX)" CC="$(tc-getCC)" \
	LD="$(tc-getLD)" AR="$(tc-getAR)" \
		econf
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc README TODO
}