blob: eec4eef96b0c32acf71a985b478a9b64ddb2d2bb (
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
51
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/avp/avp-20070130-r1.ebuild,v 1.5 2012/05/03 03:23:09 jdhore Exp $
EAPI=2
inherit eutils games
DESCRIPTION="Linux port of Aliens vs Predator"
HOMEPAGE="http://www.icculus.org/avp/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="AvP"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""
RDEPEND="virtual/opengl
media-libs/openal
media-libs/libsdl
amd64? ( app-emulation/emul-linux-x86-sdl )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/${PN}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-gcc42.patch \
"${FILESDIR}"/${P}-glibc2.10.patch
sed -i \
-e '/^CC /s:=:?=:' \
-e '/^CXX /s:=:?=:' \
-e "/^CFLAGS/s/-g.*/${CFLAGS}/" \
-e "/^LDLIBS/s/$/${LDFLAGS}/" \
-e 's:openal-config:pkg-config openal:' \
Makefile \
|| die "sed failed"
}
src_install() {
newgamesbin AvP.bin AvP || die "newgamesbin failed"
dodoc README TODO
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
elog "please follow the instructions in"
elog "/usr/share/doc/${PF}"
elog "to install the rest of the game"
}
|