| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-fps/avp/avp-20070130-r1.ebuild,v 1.4 2009/06/13 16:25:34 nyhm Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
inherit eutils games
|
| 7 |
|
| 8 |
DESCRIPTION="Linux port of Aliens vs Predator"
|
| 9 |
HOMEPAGE="http://www.icculus.org/avp/"
|
| 10 |
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
| 11 |
|
| 12 |
LICENSE="AvP"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="~amd64 x86"
|
| 15 |
IUSE=""
|
| 16 |
|
| 17 |
RDEPEND="virtual/opengl
|
| 18 |
media-libs/openal
|
| 19 |
media-libs/libsdl
|
| 20 |
amd64? ( app-emulation/emul-linux-x86-sdl )"
|
| 21 |
DEPEND="${RDEPEND}
|
| 22 |
virtual/pkgconfig"
|
| 23 |
|
| 24 |
S=${WORKDIR}/${PN}
|
| 25 |
|
| 26 |
src_prepare() {
|
| 27 |
epatch \
|
| 28 |
"${FILESDIR}"/${P}-gcc42.patch \
|
| 29 |
"${FILESDIR}"/${P}-glibc2.10.patch
|
| 30 |
sed -i \
|
| 31 |
-e '/^CC /s:=:?=:' \
|
| 32 |
-e '/^CXX /s:=:?=:' \
|
| 33 |
-e "/^CFLAGS/s/-g.*/${CFLAGS}/" \
|
| 34 |
-e "/^LDLIBS/s/$/${LDFLAGS}/" \
|
| 35 |
-e 's:openal-config:pkg-config openal:' \
|
| 36 |
Makefile \
|
| 37 |
|| die "sed failed"
|
| 38 |
}
|
| 39 |
|
| 40 |
src_install() {
|
| 41 |
newgamesbin AvP.bin AvP || die "newgamesbin failed"
|
| 42 |
dodoc README TODO
|
| 43 |
prepgamesdirs
|
| 44 |
}
|
| 45 |
|
| 46 |
pkg_postinst() {
|
| 47 |
games_pkg_postinst
|
| 48 |
elog "please follow the instructions in"
|
| 49 |
elog "/usr/share/doc/${PF}"
|
| 50 |
elog "to install the rest of the game"
|
| 51 |
}
|