freebsd-ports/games/vegastrike/files/patch-c++
Alexey Dokuchaev 3e4a131b3b - BROKEN statement in r358925 is misleading: it seem that Boost is the one
to blame: in v1.53 they had the following change in their headers:

  - explicit shared_array(T * p = 0): px(p), pn(p, deleter())
  + shared_array() BOOST_NOEXCEPT : px( 0 ), pn()
       {
       }

  + template<class Y>
  + explicit shared_array( Y * p ): px( p ), pn( p, checked_array_deleter<Y>() )
  + {
  + boost::detail::sp_assert_convertible< Y[], T[] >();
  + }

  The solution is pretty simple: use default constructor instead of NULL when
  initializing a shared_array; it was the default anyway [1]

- Add missing `pkgconfig' to USES, otherwise it won't find GTK+2
- Cleanup Makefile, sort the knobs, trim USE_GL (glut implies gl and glu)
- Transfer maintainership to games@ team
- Reword COMMENT and port description; add LICENSE (GPLv2) while here

[1] http://www.luxrender.net/mantis/view.php?id=1368
2014-06-23 14:56:15 +00:00

44 lines
1.9 KiB
Text

--- src/resizable.h 2010-02-25 09:26:53.000000000 -0500
+++ src/resizable.h 2014-06-07 12:38:44.000000000 -0400
@@ -1,2 +1,4 @@
+#include <string.h>
+
#include <cstdlib>
template < class ITEM >
--- src/cmd/unit_jump.h 2012-03-19 04:20:14.000000000 -0400
+++ src/cmd/unit_jump.h 2014-06-07 12:46:15.000000000 -0400
@@ -109,5 +109,5 @@
if (tester->isUnit() == UNITPTR && tester != this)
if ( ( this->LocalPosition()-tester->LocalPosition() ).Magnitude() < this->rSize()+tester->rSize() )
- SetCurPosition( this->LocalPosition()+this->cumulative_transformation_matrix.getR()
+ this->SetCurPosition( this->LocalPosition()+this->cumulative_transformation_matrix.getR()
*( 4*( this->rSize()+tester->rSize() ) ) );
DealPossibleJumpDamage( this );
--- objconv/basemaker/base_maker_texture.cpp 2010-03-09 21:56:23.000000000 -0500
+++ objconv/basemaker/base_maker_texture.cpp 2014-06-07 12:48:22.000000000 -0400
@@ -2,4 +2,5 @@
#include "base_maker_texture.h"
#include <stdio.h>
+#include <string.h>
#include <png.h>
#ifdef _WIN32
--- src/gldrv/hashtable_3d.h 2014-06-07 13:28:18.000000000 -0400
+++ src/gldrv/hashtable_3d.h 2014-06-07 13:51:23.000000000 -0400
@@ -38,5 +38,5 @@
public:
///Hashes a single value to a value on the collide table truncated to all 3d constraints. Consider using a swizzle
- int hash_int( const double aye )
+ static int hash_int( const double aye )
{
return ( (int) ( ( (aye < 0) ? (aye
--- src/networking/lowlevel/packetmem.cpp.orig 2014-06-23 21:30:46 +0800
+++ src/networking/lowlevel/packetmem.cpp 2014-06-23 21:31:01 +0800
@@ -102,7 +102,7 @@ void PacketMem::inner_set( void* buffer,
}
else
{
- _buffer.reset( 0 );
+ _buffer.reset();
_len = 0;
}
}