/[gentoo-x86]/games-fps/avp/avp-20031110.ebuild
Gentoo

Contents of /games-fps/avp/avp-20031110.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Aug 9 16:47:13 2006 UTC (13 years, 6 months ago) by wolf31o2
Branch: MAIN
Changes since 1.3: +4 -2 lines
Added patch from Tristan Heaven <tristanheaven@gmail.com> and closing bug #133497.
(Portage version: 2.1.1_pre4-r4)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-fps/avp/avp-20031110.ebuild,v 1.3 2006/06/08 19:51:47 wolf31o2 Exp $
4
5 #ECVS_SERVER="icculus.org:/cvs/cvsroot"
6 ECVS_PASS="anonymous"
7 ECVS_MODULE="avp"
8 #inherit eutils cvs games
9 inherit eutils multilib games
10
11 DESCRIPTION="Linux port of Aliens vs Predator"
12 HOMEPAGE="http://www.icculus.org/avp/"
13 SRC_URI="mirror://gentoo/avp-${PV}.tar.bz2"
14
15 LICENSE="AvP"
16 SLOT="0"
17 KEYWORDS="x86"
18 IUSE=""
19
20 DEPEND="media-libs/openal
21 media-libs/libsdl"
22
23 S=${WORKDIR}/${ECVS_MODULE}
24
25 pkg_setup() {
26 games_pkg_setup
27 if has_version 'media-video/nvidia-glx' && has_version '<media-video/nvidia-glx-1.0.5328' ; then
28 ewarn "Your version of OpenGL may not allow this package to compile."
29 ewarn "You need either X11 OpenGL or nvidia-glx at least version 1.0.5328."
30 fi
31 }
32
33 src_unpack() {
34 # if [ "${ECVS_SERVER}" == "offline" ] ; then
35 unpack ${A}
36 # else
37 # cvs_src_unpack
38 # fi
39
40 cd "${S}"
41
42 sed -i '/alut.h/d' openal.c || die "sed openal.c failed"
43 sed -i \
44 -e "s:-lopenal:/usr/$(get_libdir)/libopenal.a:" \
45 -e "/^CFLAGS =/s:=.*:=${CFLAGS}:" Makefile \
46 || die "sed Makefile failed"
47 epatch "${FILESDIR}/${P}-gcc34.patch"
48 }
49
50 src_install() {
51 dogamesbin AvP || die "dogamesbin failed"
52 dodoc README TODO
53 prepgamesdirs
54 }
55
56 pkg_postinst() {
57 games_pkg_postinst
58 einfo "please follow the instructions in"
59 einfo "/usr/share/doc/${PF}/README.gz"
60 einfo "to install the rest of the game"
61 }

  ViewVC Help
Powered by ViewVC 1.1.20