shared array boost 1.53 fix

This commit is contained in:
Hedayat Vatankhah 2013-02-13 20:10:19 +03:30
parent f0faccb446
commit acb4140753
2 changed files with 15 additions and 1 deletions

12
simspark-boostfix.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up simspark-0.2.3/lib/oxygen/geometryserver/indexbuffer.cpp.boostfix simspark-0.2.3/lib/oxygen/geometryserver/indexbuffer.cpp
--- simspark-0.2.3/lib/oxygen/geometryserver/indexbuffer.cpp.boostfix 2013-02-13 20:08:12.166986477 +0330
+++ simspark-0.2.3/lib/oxygen/geometryserver/indexbuffer.cpp 2013-02-13 20:08:21.157874076 +0330
@@ -27,7 +27,7 @@ using namespace oxygen;
using namespace boost;
IndexBuffer::IndexBuffer()
- : mMaxIndex(0), mNumIndex(0), mIndex(0) {}
+ : mMaxIndex(0), mNumIndex(0), mIndex() {}
IndexBuffer::~IndexBuffer()
{

View File

@ -8,6 +8,7 @@ License: GPLv2
URL: http://simspark.sourceforge.net
Source0: http://downloads.sourceforge.net/simspark/%{name}-%{version}.tar.gz
Patch0: %{name}-confscript-mlibfix.patch
Patch1: %{name}-boostfix.patch
BuildRequires: cmake boost-devel ruby ruby-devel SDL-devel tex(latex)
BuildRequires: ode-devel libGL-devel DevIL-devel freetype-devel libGLU-devel
@ -35,9 +36,10 @@ developing applications that use %{name}.
%prep
%setup -q
%patch0 -p1 -b .mlibfix
%patch1 -p1 -b .boostfix
# Applied upstream
find "(" -name "*.cpp" -o -name "*.h" ")" -exec sed -i.boostfix "s|shared_dynamic_cast|dynamic_pointer_cast|g" {} \;
find "(" -name "*.cpp" -o -name "*.h" ")" -exec sed -i.boostfix "s|shared_static_cast|static_pointer_cast|g" {} \;
find "(" -name "*.cpp" -o -name "*.h" ")" -exec sed -i.boostfix2 "s|shared_static_cast|static_pointer_cast|g" {} \;
%build
mkdir build