1 |
commit: 697582508d33a926eea7239ec64ab6617c0b1016 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 29 16:45:45 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 29 17:13:09 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69758250 |
7 |
|
8 |
games-fps/darkplaces: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
games-fps/darkplaces/darkplaces-20140513.ebuild | 186 ------------------------ |
13 |
1 file changed, 186 deletions(-) |
14 |
|
15 |
diff --git a/games-fps/darkplaces/darkplaces-20140513.ebuild b/games-fps/darkplaces/darkplaces-20140513.ebuild |
16 |
deleted file mode 100644 |
17 |
index 1e154b7074f..00000000000 |
18 |
--- a/games-fps/darkplaces/darkplaces-20140513.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,186 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=5 |
25 |
-inherit unpacker eutils flag-o-matic games |
26 |
- |
27 |
-# Latest versions are in http://icculus.org/twilight/darkplaces/files/ |
28 |
-MY_PV=${PV/_beta/beta} |
29 |
-MY_ENGINE="${PN}engine${MY_PV}.zip" |
30 |
- |
31 |
-# Different Quake 1 engines expect the lights in different directories |
32 |
-# http://www.fuhquake.net/download.html and http://www.kgbsyndicate.com/romi/ |
33 |
-MY_LIGHTS="fuhquake-lits.rar" |
34 |
- |
35 |
-DESCRIPTION="Enhanced engine for iD Software's Quake 1" |
36 |
-HOMEPAGE="http://icculus.org/twilight/darkplaces/" |
37 |
-SRC_URI="http://icculus.org/twilight/${PN}/files/${MY_ENGINE} |
38 |
- lights? ( |
39 |
- http://www.fuhquake.net/files/extras/${MY_LIGHTS} |
40 |
- http://www.kgbsyndicate.com/romi/id1.pk3 )" |
41 |
- |
42 |
-LICENSE="GPL-2" |
43 |
-SLOT="0" |
44 |
-KEYWORDS="~amd64 ~x86" |
45 |
-IUSE="alsa cdinstall cdsound debug dedicated demo lights opengl oss sdl textures" |
46 |
- |
47 |
-UIRDEPEND="virtual/jpeg:0 |
48 |
- media-libs/libogg |
49 |
- media-libs/libvorbis |
50 |
- virtual/opengl |
51 |
- alsa? ( media-libs/alsa-lib ) |
52 |
- sdl? ( media-libs/libsdl ) |
53 |
- x11-libs/libX11 |
54 |
- x11-libs/libXpm |
55 |
- x11-libs/libXxf86dga |
56 |
- x11-libs/libXxf86vm" |
57 |
-UIDEPEND="x11-proto/xextproto |
58 |
- x11-proto/xf86dgaproto |
59 |
- x11-proto/xf86vidmodeproto |
60 |
- x11-proto/xproto" |
61 |
-RDEPEND="net-misc/curl |
62 |
- cdinstall? ( games-fps/quake1-data ) |
63 |
- demo? ( games-fps/quake1-demodata ) |
64 |
- textures? ( >=games-fps/quake1-textures-20050820 ) |
65 |
- opengl? ( ${UIRDEPEND} ) |
66 |
- !opengl? ( sdl? ( ${UIRDEPEND} ) ) |
67 |
- !opengl? ( !sdl? ( !dedicated? ( ${UIRDEPEND} ) ) )" |
68 |
-DEPEND="lights? ( || ( |
69 |
- app-arch/unrar |
70 |
- app-arch/rar ) ) |
71 |
- opengl? ( |
72 |
- ${UIRDEPEND} |
73 |
- ${UIDEPEND} ) |
74 |
- !opengl? ( sdl? ( |
75 |
- ${UIRDEPEND} |
76 |
- ${UIDEPEND} ) ) |
77 |
- !opengl? ( !sdl? ( !dedicated? ( |
78 |
- ${UIRDEPEND} |
79 |
- ${UIDEPEND} ) ) ) |
80 |
- virtual/pkgconfig |
81 |
- app-arch/unzip" |
82 |
- |
83 |
-S=${WORKDIR}/${PN} |
84 |
-dir=${GAMES_DATADIR}/quake1 |
85 |
- |
86 |
-opengl_client() { use opengl || ( ! use dedicated && ! use sdl ) } |
87 |
- |
88 |
-src_unpack() { |
89 |
- if use lights ; then |
90 |
- unpack "${MY_LIGHTS}" |
91 |
- unpack_zip "${DISTDIR}"/id1.pk3 |
92 |
- mv *.lit maps/ || die |
93 |
- mv ReadMe.txt rtlights.txt |
94 |
- fi |
95 |
- unpack "${MY_ENGINE}" |
96 |
- unpack ./${PN}*.zip |
97 |
-} |
98 |
- |
99 |
-src_prepare() { |
100 |
- rm "${WORKDIR}"/README-SDL.txt |
101 |
- cd "${S}" |
102 |
- rm mingw_note.txt |
103 |
- |
104 |
- strip-flags |
105 |
- |
106 |
- # Only additional CFLAGS optimization is the -march flag |
107 |
- local march=$(get-flag -march) |
108 |
- sed -i \ |
109 |
- -e "s:-lasound:$(pkg-config --libs alsa):" \ |
110 |
- -e "/^CPUOPTIMIZATIONS/d" \ |
111 |
- -e '/^OPTIM_RELEASE/s/=.*/=$(CFLAGS)/' \ |
112 |
- -e '/^OPTIM_DEBUG/s/=.*/=$(CFLAGS)/' \ |
113 |
- -e '/^LDFLAGS_DEBUG/s/$/ $(LDFLAGS)/' \ |
114 |
- -e '/^LDFLAGS_RELEASE/s/$/ $(LDFLAGS)/' \ |
115 |
- -e "s:strip:true:" \ |
116 |
- makefile.inc || die |
117 |
- |
118 |
- if ! use cdsound ; then |
119 |
- # Turn the CD accesses off |
120 |
- sed -i \ |
121 |
- -e "s:/dev/cdrom:/dev/null:" \ |
122 |
- cd_linux.c || die |
123 |
- sed -i \ |
124 |
- -e 's:COM_CheckParm("-nocdaudio"):1:' \ |
125 |
- cd_shared.c || die |
126 |
- fi |
127 |
-} |
128 |
- |
129 |
-src_compile() { |
130 |
- local opts="DP_FS_BASEDIR=\"${dir}\" DP_LINK_TO_LIBJPEG=1" |
131 |
- |
132 |
- # Preferred sound is alsa |
133 |
- local sound_api="NULL" |
134 |
- use oss && sound_api="OSS" |
135 |
- use alsa && sound_api="ALSA" |
136 |
- opts="${opts} DP_SOUND_API=${sound_api}" |
137 |
- |
138 |
- local type="release" |
139 |
- use debug && type="debug" |
140 |
- |
141 |
- # Only compile a maximum of 1 client |
142 |
- if use sdl ; then |
143 |
- emake ${opts} "sdl-${type}" |
144 |
- elif opengl_client ; then |
145 |
- emake ${opts} "cl-${type}" |
146 |
- fi |
147 |
- |
148 |
- if use dedicated ; then |
149 |
- emake ${opts} "sv-${type}" |
150 |
- fi |
151 |
-} |
152 |
- |
153 |
-src_install() { |
154 |
- if opengl_client || use sdl ; then |
155 |
- local type=glx |
156 |
- |
157 |
- use sdl && type=sdl |
158 |
- |
159 |
- # darkplaces executable is needed, even just for demo |
160 |
- newgamesbin "${PN}-${type}" ${PN} |
161 |
- newicon darkplaces72x72.png ${PN}.png |
162 |
- |
163 |
- if use demo ; then |
164 |
- # Install command-line for demo, even if not desktop entry |
165 |
- games_make_wrapper ${PN}-demo "${PN} -game demo" |
166 |
- fi |
167 |
- |
168 |
- if use demo && ! use cdinstall ; then |
169 |
- make_desktop_entry ${PN}-demo "Dark Places (Demo)" |
170 |
- else |
171 |
- # Full version takes precedence over demo |
172 |
- make_desktop_entry ${PN} "Dark Places" |
173 |
- fi |
174 |
- fi |
175 |
- |
176 |
- if use dedicated ; then |
177 |
- newgamesbin ${PN}-dedicated ${PN}-ded |
178 |
- fi |
179 |
- |
180 |
- dodoc *.txt ChangeLog todo "${WORKDIR}"/*.txt |
181 |
- |
182 |
- if use lights ; then |
183 |
- insinto "${dir}"/id1 |
184 |
- doins -r "${WORKDIR}"/{cubemaps,maps} |
185 |
- if use demo ; then |
186 |
- # Set up symlinks, for the demo levels to include the lights |
187 |
- local d |
188 |
- for d in cubemaps maps ; do |
189 |
- dosym "${dir}/id1/${d}" "${dir}/demo/${d}" |
190 |
- done |
191 |
- fi |
192 |
- fi |
193 |
- prepgamesdirs |
194 |
-} |
195 |
- |
196 |
-pkg_postinst() { |
197 |
- games_pkg_postinst |
198 |
- |
199 |
- if ! use cdinstall && ! use demo ; then |
200 |
- elog "Place pak0.pak and pak1.pak in ${dir}/id1" |
201 |
- fi |
202 |
- |
203 |
- if use sdl ; then |
204 |
- ewarn "Select opengl with alsa, instead of sdl USE flag, for better audio latency." |
205 |
- fi |
206 |
-} |