/[gentoo-x86]/games-fps/quakeforge/quakeforge-0.5.5-r2.ebuild
Gentoo

Contents of /games-fps/quakeforge/quakeforge-0.5.5-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sat Jun 23 10:59:05 2012 UTC (2 years, 3 months ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +2 -2 lines
ppc stable wrt #418411

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

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/quakeforge/quakeforge-0.5.5-r2.ebuild,v 1.11 2012/06/19 02:19:25 jdhore Exp $
4
5 EAPI=2
6 inherit base eutils autotools games
7
8 DESCRIPTION="A new 3d engine based off of id Softwares's legendary Quake and QuakeWorld game engine"
9 HOMEPAGE="http://www.quakeforge.net/"
10 SRC_URI="mirror://sourceforge/quake/${P}.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ppc x86"
15 IUSE="cdinstall debug fbcon opengl sdl svga X ncurses vorbis zlib ipv6 xv dga alsa oss"
16 RESTRICT="userpriv"
17
18 RDEPEND="
19 opengl? ( virtual/opengl )
20 sdl? ( media-libs/libsdl )
21 svga? ( media-libs/svgalib )
22 X? (
23 x11-libs/libX11
24 x11-libs/libXext
25 x11-libs/libXxf86vm
26 )
27 ncurses? ( sys-libs/ncurses )
28 vorbis? ( media-libs/libogg media-libs/libvorbis )
29 zlib? ( sys-libs/zlib )
30 xv? (
31 x11-libs/libX11
32 x11-libs/libXext
33 x11-libs/libXxf86vm
34 )
35 dga? ( x11-libs/libXxf86dga )
36 alsa? ( media-libs/alsa-lib )"
37 DEPEND="${RDEPEND}
38 cdinstall? ( games-fps/quake1-data )
39 sys-devel/bison
40 sys-devel/flex"
41
42 PATCHES=(
43 "${FILESDIR}"/${P}-no-page-size.patch
44 "${FILESDIR}"/${PV}-ipv6.patch
45 "${FILESDIR}"/${P}-gcc41.patch
46 "${FILESDIR}"/${P}-keys.patch
47 "${FILESDIR}"/${P}-amd64.patch
48 "${FILESDIR}"/${P}-noWerror.patch
49 "${FILESDIR}"/${P}-gcc46.patch
50 "${FILESDIR}"/${P}-zlib-1.2.6.patch
51 "${FILESDIR}"/${P}-libc.patch
52 )
53
54 src_prepare() {
55 base_src_prepare
56 eautoreconf
57 }
58
59 src_configure() {
60 #i should do this at some point :x ... i guess if you disable all shared stuff
61 #and enable all the static options explicitly, static works ... (or so ive been told)
62 #if ! use static ; then
63 # myconf="${myconf} --enable-shared=yes --enable-static=no"
64 #else
65 # myconf="${myconf} --enable-shared=no --enable-static=yes"
66 #fi
67
68 local debugopts
69 use debug \
70 && debugopts="--enable-debug --disable-optimize --enable-profile" \
71 || debugopts="--disable-debug --disable-profile"
72
73 local clients=${QF_CLIENTS}
74 use fbcon && clients="${clients},fbdev"
75 use opengl && clients="${clients},glx"
76 use sdl && clients="${clients},sdl,sdl32"
77 use sdl && use opengl && clients="${clients},sgl"
78 use svga && clients="${clients},svga"
79 use X && clients="${clients},x11"
80 use X && use opengl && clients="${clients},wgl"
81 [ "${clients:0:1}" == "," ] && clients=${clients:1}
82
83 local servers=${QF_SERVERS:-master,nq,qw,qtv}
84
85 local tools=${QF_TOOLS:-all}
86
87 local svgaconf # use old school way for broken conf opts
88 use svga \
89 && svgaconf="--with-svga=/usr" \
90 || svgaconf="--without-svga"
91
92 addpredict "$(games_get_libdir)"
93 egamesconf \
94 $(use_enable ncurses curses) \
95 $(use_enable vorbis) \
96 $(use_enable zlib) \
97 $(use_with ipv6) \
98 $(use_with fbcon fbdev) \
99 ${svgaconf} \
100 $(use_with X x) \
101 $(use_enable xv vidmode) \
102 $(use_enable dga) \
103 $(use_enable sdl) \
104 --disable-xmms \
105 $(use_enable alsa) \
106 $(use_enable oss) \
107 --enable-sound \
108 --disable-optimize \
109 ${debugopts} \
110 --with-global-cfg="${GAMES_SYSCONFDIR}"/quakeforge.conf \
111 --with-sharepath="${GAMES_DATADIR}"/quake1 \
112 --with-clients=${clients} \
113 --with-servers=${servers} \
114 --with-tools=${tools}
115 }
116
117 src_install() {
118 emake DESTDIR="${D}" install || die "install failed"
119 mv "${D}/${GAMES_PREFIX}"/include "${D}"/usr/
120 dodoc ChangeLog NEWS TODO doc/*txt
121 prepgamesdirs
122 }
123
124 pkg_postinst() {
125 # same warning used in quake1 / quakeforge / nprquake-sdl
126 games_pkg_postinst
127 echo
128 elog "Before you can play, you must make sure"
129 elog "${PN} can find your Quake .pak files"
130 elog
131 elog "You have 2 choices to do this"
132 elog "1 Copy pak*.pak files to ${GAMES_DATADIR}/quake1/id1"
133 elog "2 Symlink pak*.pak files in ${GAMES_DATADIR}/quake1/id1"
134 elog
135 elog "Example:"
136 elog "my pak*.pak files are in /mnt/secondary/Games/Quake/Id1/"
137 elog "ln -s /mnt/secondary/Games/Quake/Id1/pak0.pak ${GAMES_DATADIR}/quake1/id1/pak0.pak"
138 elog
139 elog "You only need pak0.pak to play the demo version,"
140 elog "the others are needed for registered version"
141 }

  ViewVC Help
Powered by ViewVC 1.1.20