packaging: patch CalcNF2FF.m

pull/1/head
Sebastian Held 2012-03-02 20:04:57 +01:00
parent 1509e80454
commit 2384bc9895
3 changed files with 17 additions and 0 deletions

14
linux/CalcNF2FF.m.patch Normal file
View File

@ -0,0 +1,14 @@
diff --git a/matlab/CalcNF2FF.m b/matlab/CalcNF2FF.m
index 35c11c7..1638110 100644
--- a/matlab/CalcNF2FF.m
+++ b/matlab/CalcNF2FF.m
@@ -83,7 +83,8 @@ cd(Sim_Path);
try
if isunix
% remove LD_LIBRARY_PATH set by matlab
- system(['export LD_LIBRARY_PATH=; ' openEMS_Path 'nf2ff/nf2ff ' filename '.xml']);
+ % this is a packaged openEMS; nf2ff is found within PATH
+ system(['LD_LIBRARY_PATH=; nf2ff ' filename '.xml']);
else
system([openEMS_Path 'nf2ff.exe ' filename '.xml']);
end

View File

@ -1,2 +1,3 @@
invoke_openEMS.m.patch -p1
README.patch -p1
CalcNF2FF.m.patch -p1

View File

@ -27,6 +27,7 @@ URL: http://www.openems.de
Source0: %{name}-%{version}.tar.bz2
Patch0: invoke_openEMS.m.patch
Patch1: README.patch
Patch2: CalcNF2FF.m.patch
BuildRoot: %_tmppath/%name-%version-build
# libqt4-devel is needed only to provide qmake (the Qt-libraries are not used)
@ -54,6 +55,7 @@ OpenEMS is a free and open-source electromagnetic field solver using the (EC-)FD
#%patch1 -p1
#%endif
%patch1 -p1
%patch2 -p1
%build
ADDFLAGS="-msse" # enable at least the SSE command set (no SSE makes no sense -- way too slow)