/[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.1 - (hide annotations) (download)
Tue Jun 6 14:11:25 2006 UTC (13 years, 8 months ago) by wolf31o2
Branch: MAIN
Moved from games-fps/avp-cvs to games-fps/avp.

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

  ViewVC Help
Powered by ViewVC 1.1.20