You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
55 lines
1.2 KiB
10 years ago
|
# Copyright 1999-2014 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/games-fps/avp/avp-20070130-r2.ebuild,v 1.2 2014/07/03 20:29:50 axs Exp $
|
||
|
|
||
|
EAPI=5
|
||
|
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="|| (
|
||
|
(
|
||
|
>=media-libs/openal-1.15.1[abi_x86_32(-)]
|
||
|
>=media-libs/libsdl-1.2.15-r4[video,joystick,opengl,abi_x86_32(-)]
|
||
|
)
|
||
|
amd64? ( app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)] )
|
||
|
)"
|
||
|
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"
|
||
|
}
|