1 |
commit: aa71ca8eced04dcc312153689650ac8a7318ee78 |
2 |
Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 4 15:22:46 2019 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 7 14:30:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa71ca8e |
7 |
|
8 |
games-engines/odamex: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.73, Repoman-2.3.17 |
11 |
Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com> |
12 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
13 |
|
14 |
games-engines/odamex/Manifest | 1 - |
15 |
.../files/1-odamex-0.7.0-install-rules.patch | 89 ----------------- |
16 |
.../files/2-odamex-0.7.0-cmake-options.patch | 110 --------------------- |
17 |
.../files/3-odamex-0.7.0-wad-search-path.patch | 67 ------------- |
18 |
.../4-odamex-0.7.0-odalauncher-bin-path.patch | 58 ----------- |
19 |
games-engines/odamex/files/odamex-0.7.0-gcc6.patch | 39 -------- |
20 |
.../odamex/files/odamex-0.7.0-miniupnpc.patch | 35 ------- |
21 |
.../odamex/files/odamex-0.7.0-miniupnpc20.patch | 28 ------ |
22 |
games-engines/odamex/odamex-0.7.0-r1.ebuild | 109 -------------------- |
23 |
9 files changed, 536 deletions(-) |
24 |
|
25 |
diff --git a/games-engines/odamex/Manifest b/games-engines/odamex/Manifest |
26 |
index 722a82bbe72..26a10f206ce 100644 |
27 |
--- a/games-engines/odamex/Manifest |
28 |
+++ b/games-engines/odamex/Manifest |
29 |
@@ -1,2 +1 @@ |
30 |
-DIST odamex-src-0.7.0.tar.bz2 8435860 BLAKE2B 9720efdf262047074fed593360b0c38864d5d0f9c076a45d6df9aaf362cba35f41eeafab968338be0911681726872c33e3625934176f75068ca4933655876f7b SHA512 410f3c2588e4d57006e5bb50eaa0f6c1a83cf197ce40daabb958667483eb6c85138206ac74b8aee64c4208c4360415ad16d1698534be5c7abec1493a0f91aa8b |
31 |
DIST odamex-src-0.8.1.tar.bz2 8520197 BLAKE2B 9744460f2a2bff375cbf80416a38212e7576a4ef6874d2647c1371dc66b464666d67dd69ac61c918c51bee6da0150cbb70799eb81fc2fd7ff62edaec332241a5 SHA512 5cdd05df9683c9b26cac5e2947f5365405b0c6239890d89ab962f4ac088788148bb1eabc15e80b0f13fca0dea69bffcd9e80e8aa80c6ac0a5d7e63b0bd983642 |
32 |
|
33 |
diff --git a/games-engines/odamex/files/1-odamex-0.7.0-install-rules.patch b/games-engines/odamex/files/1-odamex-0.7.0-install-rules.patch |
34 |
deleted file mode 100644 |
35 |
index 618f9fd87c2..00000000000 |
36 |
--- a/games-engines/odamex/files/1-odamex-0.7.0-install-rules.patch |
37 |
+++ /dev/null |
38 |
@@ -1,89 +0,0 @@ |
39 |
-From 1352b633388dd9d82b8cb7e3d11932d0b569da4e Mon Sep 17 00:00:00 2001 |
40 |
-From: hasufell <hasufell@g.o> |
41 |
-Date: Thu, 27 Mar 2014 21:07:37 +0100 |
42 |
-Subject: [PATCH 1/4] make install destinations modifiable |
43 |
- |
44 |
---- |
45 |
- CMakeLists.txt | 5 +++-- |
46 |
- client/CMakeLists.txt | 2 +- |
47 |
- master/CMakeLists.txt | 4 ++++ |
48 |
- odalaunch/CMakeLists.txt | 2 +- |
49 |
- server/CMakeLists.txt | 2 +- |
50 |
- 5 files changed, 10 insertions(+), 5 deletions(-) |
51 |
- |
52 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
53 |
-index 11e52d1..262e3db 100644 |
54 |
---- a/CMakeLists.txt |
55 |
-+++ b/CMakeLists.txt |
56 |
-@@ -1,4 +1,5 @@ |
57 |
- include(CMakeDependentOption) |
58 |
-+include(GNUInstallDirs) |
59 |
- |
60 |
- project(Odamex) |
61 |
- cmake_minimum_required(VERSION 2.8) |
62 |
-@@ -113,10 +114,10 @@ if(NOT APPLE) |
63 |
- set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) |
64 |
- else() |
65 |
- install(FILES odamex.wad LICENSE README |
66 |
-- DESTINATION share/odamex |
67 |
-+ DESTINATION ${CMAKE_INSTALL_DATADIR}/odamex |
68 |
- COMPONENT common) |
69 |
- install(FILES ${CONFIG_SAMPLES} |
70 |
-- DESTINATION share/odamex/config-samples |
71 |
-+ DESTINATION ${CMAKE_INSTALL_DATADIR}/odamex/config-samples |
72 |
- COMPONENT common) |
73 |
- |
74 |
- option(ODAMEX_COMPONENT_PACKAGES "Create several rpm/deb packages for repository maintainers." OFF) |
75 |
-diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt |
76 |
-index 510b820..3f73ab5 100644 |
77 |
---- a/client/CMakeLists.txt |
78 |
-+++ b/client/CMakeLists.txt |
79 |
-@@ -228,7 +228,7 @@ if(SDL_FOUND AND SDLMIXER_FOUND) |
80 |
- COMPONENT client) |
81 |
- else() |
82 |
- install(TARGETS odamex |
83 |
-- RUNTIME DESTINATION bin |
84 |
-+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
85 |
- COMPONENT client) |
86 |
- endif() |
87 |
- endif() |
88 |
-diff --git a/master/CMakeLists.txt b/master/CMakeLists.txt |
89 |
-index 7fc386b..5bdc048 100644 |
90 |
---- a/master/CMakeLists.txt |
91 |
-+++ b/master/CMakeLists.txt |
92 |
-@@ -14,3 +14,7 @@ if(WIN32) |
93 |
- elseif(SOLARIS) |
94 |
- target_link_libraries(odamast socket nsl) |
95 |
- endif() |
96 |
-+ |
97 |
-+if(UNIX) |
98 |
-+ install( TARGETS odamast DESTINATION ${CMAKE_INSTALL_BINDIR} ) |
99 |
-+endif() |
100 |
-diff --git a/odalaunch/CMakeLists.txt b/odalaunch/CMakeLists.txt |
101 |
-index 4ca5920..0b134ef 100644 |
102 |
---- a/odalaunch/CMakeLists.txt |
103 |
-+++ b/odalaunch/CMakeLists.txt |
104 |
-@@ -71,7 +71,7 @@ if(wxWidgets_FOUND) |
105 |
- COMPONENT odalaunch) |
106 |
- else() |
107 |
- install(TARGETS odalaunch |
108 |
-- RUNTIME DESTINATION bin |
109 |
-+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
110 |
- COMPONENT odalaunch) |
111 |
- endif() |
112 |
- |
113 |
-diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt |
114 |
-index b046714..d33b974 100644 |
115 |
---- a/server/CMakeLists.txt |
116 |
-+++ b/server/CMakeLists.txt |
117 |
-@@ -73,6 +73,6 @@ elseif(WIN32) |
118 |
- COMPONENT server) |
119 |
- else() |
120 |
- install(TARGETS odasrv |
121 |
-- RUNTIME DESTINATION bin |
122 |
-+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
123 |
- COMPONENT server) |
124 |
- endif() |
125 |
--- |
126 |
-1.9.1 |
127 |
- |
128 |
|
129 |
diff --git a/games-engines/odamex/files/2-odamex-0.7.0-cmake-options.patch b/games-engines/odamex/files/2-odamex-0.7.0-cmake-options.patch |
130 |
deleted file mode 100644 |
131 |
index 1de50271140..00000000000 |
132 |
--- a/games-engines/odamex/files/2-odamex-0.7.0-cmake-options.patch |
133 |
+++ /dev/null |
134 |
@@ -1,110 +0,0 @@ |
135 |
-From 851bc58a74eadd89838c924167f27df1b9d3be37 Mon Sep 17 00:00:00 2001 |
136 |
-From: hasufell <hasufell@g.o> |
137 |
-Date: Thu, 27 Mar 2014 21:14:20 +0100 |
138 |
-Subject: [PATCH 2/4] add various cmake options |
139 |
- |
140 |
---- |
141 |
- CMakeLists.txt | 26 ++++++++++++++++++++++---- |
142 |
- client/CMakeLists.txt | 34 ++++++++++++++++++++-------------- |
143 |
- 2 files changed, 42 insertions(+), 18 deletions(-) |
144 |
- |
145 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
146 |
-index 262e3db..91d5c50 100644 |
147 |
---- a/CMakeLists.txt |
148 |
-+++ b/CMakeLists.txt |
149 |
-@@ -1,6 +1,13 @@ |
150 |
- include(CMakeDependentOption) |
151 |
- include(GNUInstallDirs) |
152 |
- |
153 |
-+# options |
154 |
-+option(BUILD_CLIENT "Build client target" 1) |
155 |
-+option(BUILD_SERVER "Build server target" 1) |
156 |
-+option(BUILD_MASTER "Build master server target" 1) |
157 |
-+cmake_dependent_option( BUILD_ODALAUNCH "Build odalaunch target" 1 BUILD_CLIENT 0 ) |
158 |
-+cmake_dependent_option( ENABLE_PORTMIDI "Enable portmidi support" 1 BUILD_CLIENT 0 ) |
159 |
-+ |
160 |
- project(Odamex) |
161 |
- cmake_minimum_required(VERSION 2.8) |
162 |
- |
163 |
-@@ -73,10 +80,21 @@ if(USE_INTREE_PORTMIDI) |
164 |
- endif() |
165 |
- |
166 |
- # Subdirectories for Odamex projects |
167 |
--add_subdirectory(client) |
168 |
--add_subdirectory(server) |
169 |
--add_subdirectory(master) |
170 |
--add_subdirectory(odalaunch) |
171 |
-+if(BUILD_CLIENT) |
172 |
-+ add_subdirectory(client) |
173 |
-+endif() |
174 |
-+if(BUILD_SERVER) |
175 |
-+ add_subdirectory(server) |
176 |
-+endif() |
177 |
-+if(BUILD_MASTER) |
178 |
-+ add_subdirectory(master) |
179 |
-+endif() |
180 |
-+if(BUILD_ODALAUNCH) |
181 |
-+ add_subdirectory(odalaunch) |
182 |
-+endif() |
183 |
-+if(NOT BUILD_CLIENT AND NOT BUILD_SERVER AND NOT BUILD_MASTER) |
184 |
-+ message(FATAL_ERROR "No target chosen, doing nothing.") |
185 |
-+endif() |
186 |
- |
187 |
- # Disable the ag-odalaunch target completely: -DNO_AG-ODALAUNCH_TARGET |
188 |
- # This is only really useful when setting up a universal build. |
189 |
-diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt |
190 |
-index 3f73ab5..7363c5a 100644 |
191 |
---- a/client/CMakeLists.txt |
192 |
-+++ b/client/CMakeLists.txt |
193 |
-@@ -107,17 +107,21 @@ include_directories(${PNG_INCLUDE_DIRS}) |
194 |
- add_definitions(-DUSE_PNG) |
195 |
- |
196 |
- # PortMidi configuration |
197 |
--if(USE_INTREE_PORTMIDI) |
198 |
-- include_directories(../libraries/portmidi/pm_common/ ../libraries/portmidi/porttime/) |
199 |
-- add_definitions(-DPORTMIDI) |
200 |
-+if(ENABLE_PORTMIDI) |
201 |
-+ if(USE_INTREE_PORTMIDI) |
202 |
-+ include_directories(../libraries/portmidi/pm_common/ ../libraries/portmidi/porttime/) |
203 |
-+ add_definitions(-DPORTMIDI) |
204 |
-+ else() |
205 |
-+ find_package(PortMidi QUIET) |
206 |
-+ if(PORTMIDI_FOUND) |
207 |
-+ include_directories(${PORTMIDI_INCLUDE_DIR}) |
208 |
-+ add_definitions(-DPORTMIDI) |
209 |
-+ else() |
210 |
-+ message(WARNING "PortMidi not found, client will be built without PortMidi support.") |
211 |
-+ endif() |
212 |
-+ endif() |
213 |
- else() |
214 |
-- find_package(PortMidi QUIET) |
215 |
-- if(PORTMIDI_FOUND) |
216 |
-- include_directories(${PORTMIDI_INCLUDE_DIR}) |
217 |
-- add_definitions(-DPORTMIDI) |
218 |
-- else() |
219 |
-- message(WARNING "PortMidi not found, client will be built without PortMidi support.") |
220 |
-- endif() |
221 |
-+ message(STATUS "Portmidi disabled.") |
222 |
- endif() |
223 |
- |
224 |
- # Find Mac frameworks |
225 |
-@@ -147,10 +151,12 @@ if(SDL_FOUND AND SDLMIXER_FOUND) |
226 |
- target_link_libraries(odamex ${ZLIB_LIBRARY}) |
227 |
- target_link_libraries(odamex ${PNG_LIBRARY} ${ZLIB_LIBRARY}) |
228 |
- |
229 |
-- if(USE_INTREE_PORTMIDI) |
230 |
-- target_link_libraries(odamex portmidi-static) |
231 |
-- elseif(PORTMIDI_FOUND) |
232 |
-- target_link_libraries(odamex ${PORTMIDI_LIBRARIES}) |
233 |
-+ if(ENABLE_PORTMIDI) |
234 |
-+ if(USE_INTREE_PORTMIDI) |
235 |
-+ target_link_libraries(odamex portmidi-static) |
236 |
-+ elseif(PORTMIDI_FOUND) |
237 |
-+ target_link_libraries(odamex ${PORTMIDI_LIBRARIES}) |
238 |
-+ endif() |
239 |
- endif() |
240 |
- |
241 |
- if(WIN32) |
242 |
--- |
243 |
-1.9.1 |
244 |
- |
245 |
|
246 |
diff --git a/games-engines/odamex/files/3-odamex-0.7.0-wad-search-path.patch b/games-engines/odamex/files/3-odamex-0.7.0-wad-search-path.patch |
247 |
deleted file mode 100644 |
248 |
index 77fb4e48996..00000000000 |
249 |
--- a/games-engines/odamex/files/3-odamex-0.7.0-wad-search-path.patch |
250 |
+++ /dev/null |
251 |
@@ -1,67 +0,0 @@ |
252 |
-From 9af4e992ff9fa10816beba36478c711ac2c8542a Mon Sep 17 00:00:00 2001 |
253 |
-From: hasufell <hasufell@g.o> |
254 |
-Date: Thu, 27 Mar 2014 21:17:21 +0100 |
255 |
-Subject: [PATCH 3/4] add odamex.wad install destination to wad search path |
256 |
- |
257 |
---- |
258 |
- CMakeLists.txt | 9 +++++++++ |
259 |
- common/d_main.cpp | 2 ++ |
260 |
- config.h.in | 6 ++++++ |
261 |
- 3 files changed, 17 insertions(+) |
262 |
- create mode 100644 config.h.in |
263 |
- |
264 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
265 |
-index 91d5c50..a06613e 100644 |
266 |
---- a/CMakeLists.txt |
267 |
-+++ b/CMakeLists.txt |
268 |
-@@ -13,6 +13,15 @@ |
269 |
- |
270 |
- set(PROJECT_VERSION 0.7.0) |
271 |
- set(PROJECT_COPYRIGHT "2006-2014") |
272 |
-+ |
273 |
-+configure_file ( |
274 |
-+ "${PROJECT_SOURCE_DIR}/config.h.in" |
275 |
-+ "${PROJECT_BINARY_DIR}/config.h" |
276 |
-+ ) |
277 |
-+ |
278 |
-+include_directories( |
279 |
-+ ${PROJECT_BINARY_DIR} |
280 |
-+) |
281 |
- |
282 |
- # Default build type |
283 |
- if(NOT MSVC) |
284 |
-diff --git a/common/d_main.cpp b/common/d_main.cpp |
285 |
-index 31d4f59..be0ffd2 100644 |
286 |
---- a/common/d_main.cpp |
287 |
-+++ b/common/d_main.cpp |
288 |
-@@ -23,6 +23,7 @@ |
289 |
- //----------------------------------------------------------------------------- |
290 |
- |
291 |
- #include "version.h" |
292 |
-+#include "config.h" |
293 |
- |
294 |
- #include <sstream> |
295 |
- #include <string> |
296 |
-@@ -506,6 +507,7 @@ static std::string BaseFileSearch(std::string file, std::string ext = "", std::s |
297 |
- D_AddSearchDir(dirs, getenv("DOOMWADDIR"), separator); |
298 |
- D_AddSearchDir(dirs, getenv("DOOMWADPATH"), separator); |
299 |
- D_AddSearchDir(dirs, getenv("HOME"), separator); |
300 |
-+ D_AddSearchDir(dirs, CMAKE_WADDIR, separator); |
301 |
- |
302 |
- // [AM] Search additional paths based on platform |
303 |
- D_AddPlatformSearchDirs(dirs); |
304 |
-diff --git a/config.h.in b/config.h.in |
305 |
-new file mode 100644 |
306 |
-index 0000000..e91b3a6 |
307 |
---- /dev/null |
308 |
-+++ b/config.h.in |
309 |
-@@ -0,0 +1,6 @@ |
310 |
-+#ifndef CONFIG_H |
311 |
-+#define CONFIG_H |
312 |
-+ |
313 |
-+#define CMAKE_WADDIR "@CMAKE_INSTALL_DATADIR@" |
314 |
-+ |
315 |
-+#endif |
316 |
--- |
317 |
-1.9.1 |
318 |
- |
319 |
|
320 |
diff --git a/games-engines/odamex/files/4-odamex-0.7.0-odalauncher-bin-path.patch b/games-engines/odamex/files/4-odamex-0.7.0-odalauncher-bin-path.patch |
321 |
deleted file mode 100644 |
322 |
index acb2692e75f..00000000000 |
323 |
--- a/games-engines/odamex/files/4-odamex-0.7.0-odalauncher-bin-path.patch |
324 |
+++ /dev/null |
325 |
@@ -1,58 +0,0 @@ |
326 |
-From 672b2e61f3c0347c29746a4a22fe3ab912e88d62 Mon Sep 17 00:00:00 2001 |
327 |
-From: hasufell <hasufell@g.o> |
328 |
-Date: Thu, 27 Mar 2014 21:19:48 +0100 |
329 |
-Subject: [PATCH 4/4] use CMAKE_BINDIR as default bin patch in odalauncher |
330 |
- |
331 |
---- |
332 |
- config.h.in | 1 + |
333 |
- odalaunch/src/dlg_main.cpp | 6 +++++- |
334 |
- 2 files changed, 6 insertions(+), 1 deletion(-) |
335 |
- |
336 |
-diff --git a/config.h.in b/config.h.in |
337 |
-index e91b3a6..7019a02 100644 |
338 |
---- a/config.h.in |
339 |
-+++ b/config.h.in |
340 |
-@@ -2,5 +2,6 @@ |
341 |
- #define CONFIG_H |
342 |
- |
343 |
- #define CMAKE_WADDIR "@CMAKE_INSTALL_DATADIR@" |
344 |
-+#define CMAKE_BINDIR "@CMAKE_INSTALL_BINDIR@" |
345 |
- |
346 |
- #endif |
347 |
-diff --git a/odalaunch/src/dlg_main.cpp b/odalaunch/src/dlg_main.cpp |
348 |
-index a95a5f6..abbfc0a 100644 |
349 |
---- a/odalaunch/src/dlg_main.cpp |
350 |
-+++ b/odalaunch/src/dlg_main.cpp |
351 |
-@@ -27,6 +27,7 @@ |
352 |
- #include "str_utils.h" |
353 |
- |
354 |
- #include "md5.h" |
355 |
-+#include "config.h" |
356 |
- |
357 |
- #include <wx/settings.h> |
358 |
- #include <wx/menu.h> |
359 |
-@@ -42,6 +43,7 @@ |
360 |
- #include <wx/process.h> |
361 |
- #include <wx/toolbar.h> |
362 |
- #include <wx/xrc/xmlres.h> |
363 |
-+#include <wx/string.h> |
364 |
- #include <wx/cmdline.h> |
365 |
- |
366 |
- #ifdef __WXMSW__ |
367 |
-@@ -205,10 +207,12 @@ dlgMain::dlgMain(wxWindow* parent, wxWindowID id) |
368 |
- } |
369 |
- #endif |
370 |
- |
371 |
-+ const char *cmake_bindir_str = CMAKE_BINDIR; |
372 |
-+ wxString cmake_bindir = wxString::FromAscii(cmake_bindir_str); |
373 |
- launchercfg_s.get_list_on_start = 1; |
374 |
- launchercfg_s.show_blocked_servers = 0; |
375 |
- launchercfg_s.wad_paths = wxGetCwd(); |
376 |
-- launchercfg_s.odamex_directory = wxGetCwd(); |
377 |
-+ launchercfg_s.odamex_directory = cmake_bindir; |
378 |
- |
379 |
- m_LstCtrlServers = XRCCTRL(*this, "Id_LstCtrlServers", LstOdaServerList); |
380 |
- m_LstCtrlPlayers = XRCCTRL(*this, "Id_LstCtrlPlayers", LstOdaPlayerList); |
381 |
--- |
382 |
-1.9.1 |
383 |
- |
384 |
|
385 |
diff --git a/games-engines/odamex/files/odamex-0.7.0-gcc6.patch b/games-engines/odamex/files/odamex-0.7.0-gcc6.patch |
386 |
deleted file mode 100644 |
387 |
index 9e341b881cc..00000000000 |
388 |
--- a/games-engines/odamex/files/odamex-0.7.0-gcc6.patch |
389 |
+++ /dev/null |
390 |
@@ -1,39 +0,0 @@ |
391 |
-Bug: https://bugs.gentoo.org/610566 |
392 |
-Commit: https://github.com/odamex/odamex/commit/1d8121c78fe2db9befb05dd40ceb9b86062024e4 |
393 |
- |
394 |
-From 1d8121c78fe2db9befb05dd40ceb9b86062024e4 Mon Sep 17 00:00:00 2001 |
395 |
-From: rice <russell@××××××.net> |
396 |
-Date: Tue, 30 Aug 2016 08:37:15 +0000 |
397 |
-Subject: [PATCH] - Apply patch from bug 1177, thanks RjY! |
398 |
- |
399 |
-SVN r5444 (trunk) |
400 |
---- |
401 |
- common/m_vectors.cpp | 10 +++++----- |
402 |
- 1 file changed, 5 insertions(+), 5 deletions(-) |
403 |
- |
404 |
-diff --git a/common/m_vectors.cpp b/common/m_vectors.cpp |
405 |
-index b51e4e40..2eb48a04 100644 |
406 |
---- a/common/m_vectors.cpp |
407 |
-+++ b/common/m_vectors.cpp |
408 |
-@@ -541,16 +541,16 @@ void M_PerpendicularVec3(v3double_t *dest, const v3double_t *src) |
409 |
- { |
410 |
- // find the smallest component of the vector src |
411 |
- v3double_t tempvec; |
412 |
-- double minelem = src->x; |
413 |
-+ double minelem = fabs(src->x); |
414 |
- double *mincomponent = &(tempvec.x); |
415 |
-- if (abs(src->y) < minelem) |
416 |
-+ if (fabs(src->y) < minelem) |
417 |
- { |
418 |
-- minelem = abs(src->y); |
419 |
-+ minelem = fabs(src->y); |
420 |
- mincomponent = &(tempvec.y); |
421 |
- } |
422 |
-- if (abs(src->z) < minelem) |
423 |
-+ if (fabs(src->z) < minelem) |
424 |
- { |
425 |
-- minelem = abs(src->z); |
426 |
-+ minelem = fabs(src->z); |
427 |
- mincomponent = &(tempvec.z); |
428 |
- } |
429 |
- |
430 |
|
431 |
diff --git a/games-engines/odamex/files/odamex-0.7.0-miniupnpc.patch b/games-engines/odamex/files/odamex-0.7.0-miniupnpc.patch |
432 |
deleted file mode 100644 |
433 |
index 34896e2a4e8..00000000000 |
434 |
--- a/games-engines/odamex/files/odamex-0.7.0-miniupnpc.patch |
435 |
+++ /dev/null |
436 |
@@ -1,35 +0,0 @@ |
437 |
-From: Julian Ospald <hasufell@g.o> |
438 |
-Date: Thu Mar 27 21:16:02 UTC 2014 |
439 |
-Subject: unbundle miniupnpc |
440 |
- |
441 |
---- a/server/CMakeLists.txt |
442 |
-+++ b/server/CMakeLists.txt |
443 |
-@@ -29,8 +29,7 @@ |
444 |
- set(JSONCPP_SOURCE ${JSONCPP_DIR}/jsoncpp.cpp) |
445 |
- |
446 |
- # MiniUPnPc |
447 |
--set(MINIUPNPC_DIR ../libraries/libminiupnpc) |
448 |
--set(MINIUPNPC_STATIC_LIBRARIES upnpc-static) |
449 |
-+set(MINIUPNPC_DIR /usr/include/miniupnpc) |
450 |
- |
451 |
- # Platform definitions |
452 |
- define_platform() |
453 |
-@@ -54,7 +53,7 @@ |
454 |
- ${COMMON_SOURCES} ${COMMON_HEADERS} |
455 |
- ${SERVER_SOURCES} ${SERVER_HEADERS} |
456 |
- ${SERVER_WIN32_HEADERS} ${SERVER_WIN32_RESOURCES}) |
457 |
--target_link_libraries(odasrv ${MINIUPNPC_STATIC_LIBRARIES}) |
458 |
-+target_link_libraries(odasrv -lminiupnpc) |
459 |
- |
460 |
- if(WIN32) |
461 |
- target_link_libraries(odasrv winmm wsock32) |
462 |
---- a/CMakeLists.txt |
463 |
-+++ b/CMakeLists.txt |
464 |
-@@ -71,7 +71,6 @@ |
465 |
- set(UPNPC_BUILD_TESTS OFF CACHE INTERNAL "" FORCE) |
466 |
- set(UPNPC_INSTALL OFF CACHE INTERNAL "" FORCE) |
467 |
- mark_as_advanced(FORCE UPNPC_INSTALL) |
468 |
--add_subdirectory(libraries/libminiupnpc) |
469 |
- |
470 |
- # PortMidi |
471 |
- cmake_dependent_option(USE_INTREE_PORTMIDI "Compile with the version of PortMidi included in the source tree." ON "WIN32" OFF) |
472 |
|
473 |
diff --git a/games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch b/games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch |
474 |
deleted file mode 100644 |
475 |
index 377286220b1..00000000000 |
476 |
--- a/games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch |
477 |
+++ /dev/null |
478 |
@@ -1,28 +0,0 @@ |
479 |
-Index: common/i_net.cpp |
480 |
-=================================================================== |
481 |
---- a/common/i_net.cpp (revision 5459) |
482 |
-+++ b/common/i_net.cpp (working copy) |
483 |
-@@ -151,7 +151,11 @@ |
484 |
- |
485 |
- Printf(PRINT_HIGH, "UPnP: Discovering router (max 1 unit supported)\n"); |
486 |
- |
487 |
-+#if MINIUPNPC_API_VERSION < 14 |
488 |
- devlist = upnpDiscover(sv_upnp_discovertimeout.asInt(), NULL, NULL, 0, 0, &res); |
489 |
-+#else |
490 |
-+ devlist = upnpDiscover(sv_upnp_discovertimeout.asInt(), NULL, NULL, 0, 0, 2, &res); |
491 |
-+#endif |
492 |
- |
493 |
- if (!devlist || res != UPNPDISCOVER_SUCCESS) |
494 |
- { |
495 |
-@@ -179,7 +183,11 @@ |
496 |
- // " desc: %s\n st: %s\n", |
497 |
- // dev->descURL, dev->st); |
498 |
- |
499 |
-+#if MINIUPNPC_API_VERSION < 16 |
500 |
- descXML = (char *)miniwget(dev->descURL, &descXMLsize, 0); |
501 |
-+#else |
502 |
-+ descXML = (char *)miniwget(dev->descURL, &descXMLsize, 0, &res); |
503 |
-+#endif |
504 |
- |
505 |
- if (descXML) |
506 |
- { |
507 |
|
508 |
diff --git a/games-engines/odamex/odamex-0.7.0-r1.ebuild b/games-engines/odamex/odamex-0.7.0-r1.ebuild |
509 |
deleted file mode 100644 |
510 |
index 78af4a724d7..00000000000 |
511 |
--- a/games-engines/odamex/odamex-0.7.0-r1.ebuild |
512 |
+++ /dev/null |
513 |
@@ -1,109 +0,0 @@ |
514 |
-# Copyright 1999-2018 Gentoo Authors |
515 |
-# Distributed under the terms of the GNU General Public License v2 |
516 |
- |
517 |
-EAPI=6 |
518 |
- |
519 |
-WX_GTK_VER="3.0" |
520 |
-inherit cmake-utils desktop gnome2-utils readme.gentoo-r1 wxwidgets |
521 |
- |
522 |
-MY_P=${PN}-src-${PV} |
523 |
-DESCRIPTION="Online multiplayer, free software engine for Doom and Doom II" |
524 |
-HOMEPAGE="https://odamex.net/" |
525 |
-SRC_URI="mirror://sourceforge/${PN}/Odamex/${PV}/${MY_P}.tar.bz2" |
526 |
- |
527 |
-LICENSE="GPL-2" |
528 |
-SLOT="0" |
529 |
-KEYWORDS="~amd64 ~x86" |
530 |
-IUSE="dedicated master +odalaunch portmidi server" |
531 |
- |
532 |
-RDEPEND=" |
533 |
- dedicated? ( >=net-libs/miniupnpc-1.8:0= ) |
534 |
- !dedicated? ( |
535 |
- media-libs/libpng:0= |
536 |
- >=media-libs/libsdl-1.2.9[X,sound,joystick,video] |
537 |
- >=media-libs/sdl-mixer-1.2.6 |
538 |
- odalaunch? ( x11-libs/wxGTK:${WX_GTK_VER}[X] ) |
539 |
- portmidi? ( media-libs/portmidi ) |
540 |
- server? ( >=net-libs/miniupnpc-1.8:0= ) |
541 |
- ) |
542 |
-" |
543 |
-DEPEND="${RDEPEND}" |
544 |
- |
545 |
-DOC_CONTENTS=" |
546 |
- This is just the engine, you will need doom resource files in order to play. |
547 |
- Check: http://odamex.net/wiki/FAQ#What_data_files_are_required.3F |
548 |
-" |
549 |
- |
550 |
-S="${WORKDIR}/src-${PV:2:3}" |
551 |
- |
552 |
-PATCHES=( |
553 |
- "${FILESDIR}"/1-${P}-install-rules.patch |
554 |
- "${FILESDIR}"/2-${P}-cmake-options.patch |
555 |
- "${FILESDIR}"/3-${P}-wad-search-path.patch |
556 |
- "${FILESDIR}"/4-${P}-odalauncher-bin-path.patch |
557 |
- "${FILESDIR}"/${P}-miniupnpc.patch |
558 |
- "${FILESDIR}"/${P}-miniupnpc20.patch |
559 |
- "${FILESDIR}"/${P}-gcc6.patch |
560 |
-) |
561 |
- |
562 |
-src_prepare() { |
563 |
- cmake-utils_src_prepare |
564 |
- rm -r libraries/libminiupnpc || die |
565 |
-} |
566 |
- |
567 |
-src_configure() { |
568 |
- local mycmakeargs=( |
569 |
- -DUSE_INTREE_PORTMIDI=OFF |
570 |
- -DCMAKE_INSTALL_BINDIR="/usr/bin" |
571 |
- -DCMAKE_INSTALL_DATADIR="/usr/share" |
572 |
- -DBUILD_MASTER=$(usex master) |
573 |
- ) |
574 |
- |
575 |
- if use dedicated ; then |
576 |
- mycmakeargs+=( |
577 |
- -DBUILD_CLIENT=OFF |
578 |
- -DBUILD_ODALAUNCH=OFF |
579 |
- -DENABLE_PORTMIDI=OFF |
580 |
- -DBUILD_SERVER=ON |
581 |
- ) |
582 |
- else |
583 |
- mycmakeargs+=( |
584 |
- -DBUILD_CLIENT=ON |
585 |
- -DBUILD_ODALAUNCH=$(usex odalaunch) |
586 |
- -DENABLE_PORTMIDI=$(usex portmidi) |
587 |
- -DBUILD_SERVER=$(usex server) |
588 |
- ) |
589 |
- fi |
590 |
- |
591 |
- append-cxxflags -std=c++11 |
592 |
- |
593 |
- cmake-utils_src_configure |
594 |
-} |
595 |
- |
596 |
-src_compile() { |
597 |
- cmake-utils_src_compile |
598 |
-} |
599 |
- |
600 |
-src_install() { |
601 |
- cmake-utils_src_install |
602 |
- readme.gentoo_create_doc |
603 |
- |
604 |
- if ! use dedicated ; then |
605 |
- newicon -s 128 "${S}/media/icon_${PN}_128.png" "${PN}.png" |
606 |
- make_desktop_entry ${PN} |
607 |
- |
608 |
- if use odalaunch ; then |
609 |
- newicon -s 128 "${S}/media/icon_odalaunch_128.png" "odalaunch.png" |
610 |
- make_desktop_entry odalaunch "Odamex Launcher" odalaunch |
611 |
- fi |
612 |
- fi |
613 |
-} |
614 |
- |
615 |
-pkg_postinst() { |
616 |
- gnome2_icon_cache_update |
617 |
- readme.gentoo_print_elog |
618 |
-} |
619 |
- |
620 |
-pkg_postrm() { |
621 |
- gnome2_icon_cache_update |
622 |
-} |