blob: 46df1fb220fec1b7bfb36aea8d32069ef9b72258 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/crack-attack-1.1.10.ebuild,v 1.10 2004/07/16 04:19:04 vapier Exp $
inherit eutils flag-o-matic gcc games
DESCRIPTION="Addictive OpenGL-based block game"
HOMEPAGE="http://aluminumangel.org/attack/"
SRC_URI="http://aluminumangel.org/cgi-bin/download_counter.cgi?attack_linux+attack/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc hppa"
IUSE=""
RDEPEND="media-libs/glut"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
cd ${S}
sed -i \
-e 's:-O6:@CXXFLAGS@:' src/Makefile.in \
|| die "sed src/Makefile.in failed"
epatch ${FILESDIR}/${PV}-gcc34.patch
epatch ${FILESDIR}/${PV}-i865g.patch #53320
epatch ${FILESDIR}/${PV}-GL.patch #48925
}
src_compile() {
append-flags -DGL_GLEXT_LEGACY
[ "$(gcc-fullversion)" == "3.2.3" ] && filter-flags -march=pentium3
egamesconf || die
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
dodoc AUTHORS ChangeLog README
dohtml -A xpm doc/*
prepgamesdirs
}
|