diff --git a/linux/CalcNF2FF.m.patch b/linux/CalcNF2FF.m.patch new file mode 100644 index 0000000..ae091af --- /dev/null +++ b/linux/CalcNF2FF.m.patch @@ -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 diff --git a/linux/debian.series b/linux/debian.series index fb3707b..61ef578 100644 --- a/linux/debian.series +++ b/linux/debian.series @@ -1,2 +1,3 @@ invoke_openEMS.m.patch -p1 README.patch -p1 +CalcNF2FF.m.patch -p1 diff --git a/linux/openEMS.spec b/linux/openEMS.spec index 580471f..97524eb 100644 --- a/linux/openEMS.spec +++ b/linux/openEMS.spec @@ -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)