/[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.5 - (hide annotations) (download)
Thu Oct 5 11:24:45 2006 UTC (13 years, 4 months ago) by nyhm
Branch: MAIN
Changes since 1.4: +1 -9 lines
Remove nvidia-glx version check
(Portage version: 2.1.2_pre2-r3)

1 wolf31o2 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 nyhm 1.5 # $Header: /var/cvsroot/gentoo-x86/games-fps/avp/avp-20031110.ebuild,v 1.4 2006/08/09 16:47:13 wolf31o2 Exp $
4 wolf31o2 1.1
5     #ECVS_SERVER="icculus.org:/cvs/cvsroot"
6     ECVS_PASS="anonymous"
7     ECVS_MODULE="avp"
8 wolf31o2 1.2 #inherit eutils cvs games
9 wolf31o2 1.4 inherit eutils multilib games
10 wolf31o2 1.1
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     src_unpack() {
26 wolf31o2 1.3 # if [ "${ECVS_SERVER}" == "offline" ] ; then
27 wolf31o2 1.1 unpack ${A}
28 wolf31o2 1.3 # else
29     # cvs_src_unpack
30     # fi
31 wolf31o2 1.1
32     cd "${S}"
33    
34 wolf31o2 1.4 sed -i '/alut.h/d' openal.c || die "sed openal.c failed"
35 wolf31o2 1.1 sed -i \
36 wolf31o2 1.4 -e "s:-lopenal:/usr/$(get_libdir)/libopenal.a:" \
37 wolf31o2 1.1 -e "/^CFLAGS =/s:=.*:=${CFLAGS}:" Makefile \
38     || die "sed Makefile failed"
39     epatch "${FILESDIR}/${P}-gcc34.patch"
40     }
41    
42     src_install() {
43     dogamesbin AvP || die "dogamesbin failed"
44     dodoc README TODO
45     prepgamesdirs
46     }
47    
48     pkg_postinst() {
49     games_pkg_postinst
50     einfo "please follow the instructions in"
51     einfo "/usr/share/doc/${PF}/README.gz"
52     einfo "to install the rest of the game"
53     }

  ViewVC Help
Powered by ViewVC 1.1.20