FreeBSD Bugzilla – Attachment 144997 Details for
Bug 190843
[PATCH] games/odamex: update to 0.7.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
odamex-0.7.0.diff
odamex-0.7.0.diff (text/plain), 6.92 KB, created by
Carlos J Puga Medina
on 2014-07-26 10:35:06 UTC
(
hide
)
Description:
odamex-0.7.0.diff
Filename:
MIME Type:
Creator:
Carlos J Puga Medina
Created:
2014-07-26 10:35:06 UTC
Size:
6.92 KB
patch
obsolete
>diff -urN /usr/ports/games/odamex.old/Makefile /usr/ports/games/odamex/Makefile >--- /usr/ports/games/odamex.old/Makefile 2014-07-16 01:30:05.000000000 +0200 >+++ /usr/ports/games/odamex/Makefile 2014-07-26 12:21:48.000000000 +0200 >@@ -1,28 +1,30 @@ > # Created by: alepulver >-# $FreeBSD: head/games/odamex/Makefile 362015 2014-07-15 23:30:05Z adamw $ >+# $FreeBSD$ > > PORTNAME= odamex >-PORTVERSION= 0.6.2 >+PORTVERSION= 0.7.0 > CATEGORIES= games > MASTER_SITES= SF/${PORTNAME}/Odamex/${PORTVERSION} > DISTNAME= odamex-src-${PORTVERSION} > >-MAINTAINER= ports@FreeBSD.org >-COMMENT= Standard in Online Multiplayer Doom >+MAINTAINER= cpm@fbsd.es >+COMMENT= Client/server multiplayer engine for Doom >+ >+LICENSE= GPLv2 >+LICENSE_FILE= ${WRKSRC}/LICENSE > >-USE_BZIP2= yes > USE_SDL= sdl mixer >-USES= cmake dos2unix >+USES= cmake dos2unix tar:bzip2 > DOS2UNIX_FILES= CMakeLists.txt odalaunch/CMakeLists.txt common/d_main.cpp > >-OPTIONS_DEFINE= LAUNCHER DOCS >+OPTIONS_DEFINE= DOCS LAUNCHER > > LAUNCHER_DESC= Enable GUI launcher program > > OPTIONS_SUB= yes > >-LAUNCHER_USE= WX=2.6+ >-LAUNCHER_CMAKE_ON= -DODALAUNCH_TARGET=on -DNO_AG-ODALAUNCH_TARGET=off >+LAUNCHER_USE= WX=3.0 >+LAUNCHER_CMAKE_ON= -DODALAUNCH_TARGET=on -DNO_AG-ODALAUNCH_TARGET=off -DwxWidgets_CONFIG_EXECUTABLE=${PREFIX}/bin/wxgtk2u-3.0-config > LAUNCHER_CMAKE_OFF= -DODALAUNCH_TARGET=off > > .include <bsd.port.options.mk> >diff -urN /usr/ports/games/odamex.old/distinfo /usr/ports/games/odamex/distinfo >--- /usr/ports/games/odamex.old/distinfo 2013-02-24 18:20:49.000000000 +0100 >+++ /usr/ports/games/odamex/distinfo 2014-07-26 12:19:25.000000000 +0200 >@@ -1,2 +1,2 @@ >-SHA256 (odamex-src-0.6.2.tar.bz2) = 70534ee0b88f759269b807190f347acacc1a0ff4f9e9e90edeab9aa99d4f316e >-SIZE (odamex-src-0.6.2.tar.bz2) = 8451290 >+SHA256 (odamex-src-0.7.0.tar.bz2) = aa34363cb18551be65e27919e62d92b9efcb594f36e9239d6fb394ed51b96631 >+SIZE (odamex-src-0.7.0.tar.bz2) = 8437106 >diff -urN /usr/ports/games/odamex.old/files/patch-CMakeLists.txt /usr/ports/games/odamex/files/patch-CMakeLists.txt >--- /usr/ports/games/odamex.old/files/patch-CMakeLists.txt 2013-02-24 18:20:49.000000000 +0100 >+++ /usr/ports/games/odamex/files/patch-CMakeLists.txt 2014-07-26 12:19:36.000000000 +0200 >@@ -1,6 +1,30 @@ >---- CMakeLists.txt.orig 2012-12-03 15:03:21.000000000 +0400 >-+++ CMakeLists.txt 2012-12-03 15:05:49.000000000 +0400 >-@@ -43,7 +43,9 @@ >+--- CMakeLists.txt.orig 2014-07-19 15:08:45.000000000 +0200 >++++ CMakeLists.txt 2014-07-19 15:10:19.000000000 +0200 >+@@ -9,7 +9,7 @@ >+ # Default build type >+ if(NOT MSVC) >+ if(NOT CMAKE_BUILD_TYPE) >+- set(CMAKE_BUILD_TYPE Debug CACHE STRING >++ set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING >+ "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." >+ FORCE) >+ endif() >+@@ -29,12 +29,12 @@ >+ # Global compile options. Useful defines for any Odamex project. >+ macro(global_compile_options) >+ if(NOT MSVC) >+- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall") >++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -DNDEBUG") >+ if(USE_STATIC_STDLIB) >+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++") >+ endif() >+ if(USE_SANITIZE_ADDRESS) >+- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls") >++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -DNDEBUG") >+ endif() >+ endif() >+ endmacro(global_compile_options) >+@@ -81,7 +81,9 @@ > add_subdirectory(client) > add_subdirectory(server) > add_subdirectory(master) >diff -urN /usr/ports/games/odamex.old/files/patch-odalaunch-CMakeLists.txt /usr/ports/games/odamex/files/patch-odalaunch-CMakeLists.txt >--- /usr/ports/games/odamex.old/files/patch-odalaunch-CMakeLists.txt 2013-02-24 18:20:49.000000000 +0100 >+++ /usr/ports/games/odamex/files/patch-odalaunch-CMakeLists.txt 2014-07-26 12:19:52.000000000 +0200 >@@ -4,7 +4,7 @@ > > # Odalaunch target > if(wxWidgets_FOUND) >-+ set(wxWidgets_wxrc_EXECUTABLE %%LOCALBASE%%/bin/wxrc-gtk2-%%WX_VER%%) >++ set(wxWidgets_wxrc_EXECUTABLE %%LOCALBASE%%/bin/wxrc-gtk2u-%%WX_VER%%) > add_custom_command( > OUTPUT ${XRCRES_HEADER} > COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/res >diff -urN /usr/ports/games/odamex.old/files/patch-odalaunch-src-dlg_main.cpp /usr/ports/games/odamex/files/patch-odalaunch-src-dlg_main.cpp >--- /usr/ports/games/odamex.old/files/patch-odalaunch-src-dlg_main.cpp 2013-02-24 18:20:49.000000000 +0100 >+++ /usr/ports/games/odamex/files/patch-odalaunch-src-dlg_main.cpp 2014-07-26 12:20:15.000000000 +0200 >@@ -1,11 +1,36 @@ >---- odalaunch/src/dlg_main.cpp.orig 2012-05-31 03:49:32.000000000 +0400 >-+++ odalaunch/src/dlg_main.cpp 2012-12-03 21:21:50.000000000 +0400 >-@@ -193,7 +193,7 @@ >+--- odalaunch/src/dlg_main.cpp.orig 2013-11-29 02:22:10.000000000 +0100 >++++ odalaunch/src/dlg_main.cpp 2014-07-19 17:50:52.000000000 +0200 >+@@ -1,7 +1,7 @@ >+ // Emacs style mode select -*- C++ -*- >+ //----------------------------------------------------------------------------- >+ // >+-// $Id: dlg_main.cpp 4376 2013-11-29 01:22:10Z russellrice $ >++// $Id: dlg_main.cpp 4996 2014-06-11 04:26:49Z hypereye $ >+ // >+ // Copyright (C) 2006-2012 by The Odamex Team. >+ // >+@@ -208,7 +208,7 @@ > launchercfg_s.get_list_on_start = 1; > launchercfg_s.show_blocked_servers = 0; > launchercfg_s.wad_paths = wxGetCwd(); > - launchercfg_s.odamex_directory = wxGetCwd(); >-+ launchercfg_s.odamex_directory = wxString("%%PREFIX%%/bin"); >++ launchercfg_s.odamex_directory = wxString("/usr/local/bin"); > > m_LstCtrlServers = XRCCTRL(*this, "Id_LstCtrlServers", LstOdaServerList); > m_LstCtrlPlayers = XRCCTRL(*this, "Id_LstCtrlPlayers", LstOdaPlayerList); >+@@ -383,6 +383,7 @@ >+ wxFileConfig ConfigInfo; >+ wxInt32 ServerTimeout; >+ Server tmp_server; >++ odalpapi::BufferedSocket socket; >+ wxString server_hash; >+ wxString ped_hash; >+ wxString ped_result; >+@@ -455,6 +456,7 @@ >+ } >+ >+ // Query the server and try to acquire its password hash >++ tmp_server.SetSocket(&socket); >+ tmp_server.SetAddress(wxstr_tostdstr(IPHost), Port); >+ tmp_server.Query(ServerTimeout); >+ >diff -urN /usr/ports/games/odamex.old/files/patch-odalpapi-net_io.cpp /usr/ports/games/odamex/files/patch-odalpapi-net_io.cpp >--- /usr/ports/games/odamex.old/files/patch-odalpapi-net_io.cpp 1970-01-01 01:00:00.000000000 +0100 >+++ /usr/ports/games/odamex/files/patch-odalpapi-net_io.cpp 2014-07-26 12:20:15.000000000 +0200 >@@ -0,0 +1,18 @@ >+--- odalpapi/net_io.cpp 2014-06-16 17:33:15.000000000 +0200 >++++ odalpapi/net_io.cpp 2014-06-16 17:33:44.000000000 +0200 >+@@ -34,6 +34,7 @@ >+ #include <sstream> >+ #include <time.h> >+ #include <errno.h> >++#include <unistd.h> >+ >+ #include "net_io.h" >+ #include "net_utils.h" >+@@ -45,7 +46,6 @@ >+ #ifdef _WIN32 >+ #define AI_ALL 0x00000100 >+ #else >+- #include <unistd.h> >+ #define closesocket close >+ const int INVALID_SOCKET = -1; >+ #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 190843
:
143578
|
143831
|
143972
|
144649
|
144655
|
144720
|
144801
| 144997