1 |
grozin 12/04/05 20:43:04 |
2 |
|
3 |
Added: freemat-4.1-fixes.patch freemat-4.1-portaudio.patch |
4 |
freemat-4.1-local_libffi.patch |
5 |
freemat-4.1-use_llvm.patch |
6 |
freemat-4.1-have_fftw.patch |
7 |
Log: |
8 |
Version bump, thanks to José Romildo Malaquias <j.romildo@×××××.com> for the ebuild. Closing #406509. |
9 |
|
10 |
(Portage version: 2.2.0_alpha99/cvs/Linux i686) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 sci-mathematics/freemat/files/freemat-4.1-fixes.patch |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/freemat/files/freemat-4.1-fixes.patch?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/freemat/files/freemat-4.1-fixes.patch?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: freemat-4.1-fixes.patch |
19 |
=================================================================== |
20 |
--- libs/libGraphics/VTKWindow.cpp.orig 2012-01-27 19:54:55.000000000 +0100 |
21 |
+++ libs/libGraphics/VTKWindow.cpp 2012-01-27 19:54:49.000000000 +0100 |
22 |
@@ -3,6 +3,7 @@ |
23 |
#include "VTKWrap.hpp" |
24 |
#include "VTKWindow.hpp" |
25 |
|
26 |
+#include <QObject> |
27 |
#include <QtCore/QString> |
28 |
#include <QtGui/QLabel> |
29 |
#include <QtGui/QMenu> |
30 |
--- libs/libGraphics/GLRenderEngine.cpp.orig 2011-11-27 00:27:43.000000000 +0000 |
31 |
+++ libs/libGraphics/GLRenderEngine.cpp 2012-01-29 03:57:48.453433954 +0000 |
32 |
@@ -16,6 +16,8 @@ |
33 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
34 |
* |
35 |
*/ |
36 |
+ |
37 |
+#include <GL/glu.h> |
38 |
#include "GLRenderEngine.hpp" |
39 |
#include <qimage.h> |
40 |
#include <qpainter.h> |
41 |
|
42 |
|
43 |
|
44 |
1.1 sci-mathematics/freemat/files/freemat-4.1-portaudio.patch |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/freemat/files/freemat-4.1-portaudio.patch?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/freemat/files/freemat-4.1-portaudio.patch?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: freemat-4.1-portaudio.patch |
50 |
=================================================================== |
51 |
--- libs/thirdparty/portaudio/CMakeLists.txt.orig 2012-01-29 02:08:08.422664514 +0100 |
52 |
+++ libs/thirdparty/portaudio/CMakeLists.txt 2012-01-29 02:04:26.826460722 +0100 |
53 |
@@ -73,6 +73,7 @@ IF (NOT WIN32 AND NOT APPLE) |
54 |
${CMAKE_CURRENT_SOURCE_DIR}/src/common/pa_stream.c |
55 |
${CMAKE_CURRENT_SOURCE_DIR}/src/common/pa_trace.c |
56 |
${CMAKE_CURRENT_SOURCE_DIR}/src/hostapi/oss/pa_unix_oss.c |
57 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/hostapi/skeleton/pa_hostapi_skeleton.c |
58 |
${CMAKE_CURRENT_SOURCE_DIR}/src/os/unix/pa_unix_hostapis.c |
59 |
${CMAKE_CURRENT_SOURCE_DIR}/src/os/unix/pa_unix_util.c ) |
60 |
ENDIF (NOT WIN32 AND NOT APPLE) |
61 |
|
62 |
|
63 |
|
64 |
1.1 sci-mathematics/freemat/files/freemat-4.1-local_libffi.patch |
65 |
|
66 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/freemat/files/freemat-4.1-local_libffi.patch?rev=1.1&view=markup |
67 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/freemat/files/freemat-4.1-local_libffi.patch?rev=1.1&content-type=text/plain |
68 |
|
69 |
Index: freemat-4.1-local_libffi.patch |
70 |
=================================================================== |
71 |
--- CMakeLists.txt.orig 2011-11-27 01:27:11.116482600 +0100 |
72 |
+++ CMakeLists.txt 2012-01-29 17:09:54.072342306 +0100 |
73 |
@@ -160,8 +160,8 @@ if(MINGW) |
74 |
INCLUDE_DIRECTORIES(${FFI_INCLUDE_DIR}) |
75 |
INSTALL(FILES ${FFI_LIBRARY_DLL} DESTINATION bin ) |
76 |
else(MINGW) |
77 |
- FIND_LIBRARY(FFI_LIBRARY NAMES ffi DOC "Location of the FFI library" PATHS ${LOCAL_PATH}) |
78 |
- FIND_PATH(FFI_INCLUDE_DIR ffi.h doc "Location of ffi.h" PATHS ${LOCAL_PATH} /usr/include/ffi /usr/lib64/libffi-3.0.9/include) |
79 |
+ FIND_LIBRARY(FFI_LIBRARY NAMES ffi DOC "Location of the FFI library" PATHS ${LOCAL_PATH} ${PROJECT_SOURCE_DIR}/dependencies/libffi/build/.libs) |
80 |
+ FIND_PATH(FFI_INCLUDE_DIR ffi.h doc "Location of ffi.h" PATHS ${LOCAL_PATH} /usr/include/ffi /usr/lib64/libffi-3.0.9/include ${PROJECT_SOURCE_DIR}/dependencies/libffi/build/include /mingw/include/ffi) |
81 |
SET(OPTIONAL_LIBS ${OPTIONAL_LIBS} ${FFI_LIBRARY}) |
82 |
INCLUDE_DIRECTORIES(${FFI_INCLUDE_DIR}) |
83 |
endif(MINGW) |
84 |
|
85 |
|
86 |
|
87 |
1.1 sci-mathematics/freemat/files/freemat-4.1-use_llvm.patch |
88 |
|
89 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/freemat/files/freemat-4.1-use_llvm.patch?rev=1.1&view=markup |
90 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/freemat/files/freemat-4.1-use_llvm.patch?rev=1.1&content-type=text/plain |
91 |
|
92 |
Index: freemat-4.1-use_llvm.patch |
93 |
=================================================================== |
94 |
--- libs/libMatC/CMakeLists.txt.orig 2011-11-27 01:27:43.000000000 +0100 |
95 |
+++ libs/libMatC/CMakeLists.txt 2012-01-29 14:39:19.842402326 +0100 |
96 |
@@ -1,10 +1,14 @@ |
97 |
|
98 |
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ) |
99 |
|
100 |
+IF( USE_LLVM ) |
101 |
+ set(LLVM_SOURCES "CJitFuncClang.cpp") |
102 |
+endif( USE_LLVM ) |
103 |
+ |
104 |
ADD_LIBRARY( MatC |
105 |
JITFactory.cpp |
106 |
CJitFunc.cpp |
107 |
- CJitFuncClang.cpp |
108 |
+ ${LLVM_SOURCES} |
109 |
CArray.cpp |
110 |
) |
111 |
|
112 |
--- libs/libMatC.orig/JITFactory.cpp 2011-11-27 01:27:43.000000000 +0100 |
113 |
+++ libs/libMatC/JITFactory.cpp 2012-01-29 14:53:17.296686846 +0100 |
114 |
@@ -1,5 +1,7 @@ |
115 |
#include "JITFactory.hpp" |
116 |
-#include "CJitFuncClang.hpp" |
117 |
+#ifdef HAVE_LLVM |
118 |
+# include "CJitFuncClang.hpp" |
119 |
+#endif |
120 |
|
121 |
JITFuncBase* JITFactory::GetJITFunc(Interpreter *eval) |
122 |
{ |
123 |
|
124 |
|
125 |
|
126 |
1.1 sci-mathematics/freemat/files/freemat-4.1-have_fftw.patch |
127 |
|
128 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/freemat/files/freemat-4.1-have_fftw.patch?rev=1.1&view=markup |
129 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/freemat/files/freemat-4.1-have_fftw.patch?rev=1.1&content-type=text/plain |
130 |
|
131 |
Index: freemat-4.1-have_fftw.patch |
132 |
=================================================================== |
133 |
diff -rupN libs/libCore.orig/FFT.cpp libs/libCore/FFT.cpp |
134 |
--- libs/libCore.orig/FFT.cpp 2011-11-27 01:27:43.856779929 +0100 |
135 |
+++ libs/libCore/FFT.cpp 2012-01-30 00:14:18.682460150 +0100 |
136 |
@@ -104,6 +104,7 @@ public: |
137 |
#endif |
138 |
|
139 |
|
140 |
+#if HAVE_FFTWF |
141 |
class OpVecFFT { |
142 |
WrapFFTWF fft_float; |
143 |
WrapFFTW fft_double; |
144 |
@@ -169,7 +170,9 @@ public: |
145 |
} |
146 |
} |
147 |
}; |
148 |
+#endif |
149 |
|
150 |
+#if HAVE_FFTWF |
151 |
class OpVecIFFT { |
152 |
WrapFFTWF fft_float; |
153 |
WrapFFTW fft_double; |
154 |
@@ -228,6 +231,7 @@ public: |
155 |
} |
156 |
} |
157 |
}; |
158 |
+#endif |
159 |
|
160 |
//! |
161 |
//@Module FFT (Inverse) Fast Fourier Transform Function |
162 |
@@ -350,6 +354,8 @@ public: |
163 |
//inputs x len dim |
164 |
//outputs y |
165 |
//! |
166 |
+ |
167 |
+#if HAVE_FFTWF |
168 |
ArrayVector FFTFunction(int nargout, const ArrayVector& arg) { |
169 |
// Get the data argument |
170 |
if (arg.size() < 1) |
171 |
@@ -384,7 +390,9 @@ ArrayVector FFTFunction(int nargout, con |
172 |
OpVecFFT op(FFTLength); |
173 |
return ArrayVector(VectorOpDynamic<OpVecFFT>(arg0,FFTLength,FFTDim,op)); |
174 |
} |
175 |
+#endif |
176 |
|
177 |
+#if HAVE_FFTWF |
178 |
ArrayVector IFFTFunction(int nargout, const ArrayVector& arg) { |
179 |
// Get the data argument |
180 |
if (arg.size() < 1) |
181 |
@@ -419,3 +427,4 @@ ArrayVector IFFTFunction(int nargout, co |
182 |
OpVecIFFT op(FFTLength); |
183 |
return ArrayVector(VectorOpDynamic<OpVecIFFT>(arg0,FFTLength,FFTDim,op)); |
184 |
} |
185 |
+#endif |
186 |
diff -rupN libs/libCore.orig/Loader.cpp libs/libCore/Loader.cpp |
187 |
--- libs/libCore.orig/Loader.cpp 2012-01-30 00:08:41.463155562 +0100 |
188 |
+++ libs/libCore/Loader.cpp 2012-01-30 00:12:24.422448304 +0100 |
189 |
@@ -43,8 +43,10 @@ ArrayVector FeofFunction(int, const Arra |
190 |
ArrayVector FseekFunction(int, const ArrayVector&); |
191 |
ArrayVector FgetlineFunction(int, const ArrayVector&); |
192 |
ArrayVector FscanfFunction(int, const ArrayVector&); |
193 |
+#ifdef HAVE_FFTW |
194 |
ArrayVector FFTFunction(int, const ArrayVector&); |
195 |
ArrayVector IFFTFunction(int, const ArrayVector&); |
196 |
+#endif |
197 |
ArrayVector StrCmpFunction(int, const ArrayVector&); |
198 |
ArrayVector StrCmpiFunction(int, const ArrayVector&); |
199 |
ArrayVector StrnCmpFunction(int, const ArrayVector&); |
200 |
@@ -286,8 +288,10 @@ void LoadBuiltinFunctionsCore(Context *c |
201 |
context->addFunction("fseek",FseekFunction,0,3,0,"handle","offset","style",NULL); |
202 |
context->addFunction("fgetline",FgetlineFunction,0,1,1,"handle",NULL); |
203 |
context->addFunction("fscanf",FscanfFunction,0,-1,-1,NULL); |
204 |
+#ifdef HAVE_FFTW |
205 |
context->addFunction("fft",FFTFunction,0,3,1,"x","len","dim",NULL); |
206 |
context->addFunction("ifft",IFFTFunction,0,3,1,"x","len","dim",NULL); |
207 |
+#endif |
208 |
context->addFunction("strcmp",StrCmpFunction,0,2,1,"string1","string2",NULL); |
209 |
context->addFunction("strcmpi",StrCmpiFunction,0,2,1,"string1","string2",NULL); |
210 |
context->addFunction("strncmp",StrnCmpFunction,0,3,1,"string1","string2","len",NULL); |