[Pkg-scicomp-devel] xmds/trunk/debian
Rafael Laboissiere
rafael at debian.org
Sat Nov 25 11:09:10 CET 2006
SVN commit 1355 by rafael:
Install the *.xmds examples and patch them for fftw3.
Added a cookbook in README.Debian.
M +23 -2 xmds/trunk/debian/README.Debian
A xmds/trunk/debian/examples
M +8 -1 xmds/trunk/debian/rules
--- xmds/trunk/debian/README.Debian #1354:1355
@@ -1,6 +1,27 @@
xmds for Debian
---------------
-<possible notes regarding this package - if none, delete this file>
+ This version of XMDS has been compiled against the fftw3 library, instead
+ of the default fftw2. This means that the simulations will only work if
+ the following XML code is present in the *.xmds file:
- -- Christian T. Steigies <cts at debian.org> Thu, 23 Nov 2006 12:23:09 +0100
+ <fftw_version>3</fftw_version>
+
+ inside the <simulation> target.
+
+ All examples included in the Debian package in directory
+ /usr/share/doc/xmds/examples have been changed accordingly. To run one of
+ them and visualize the results, you can do, e.g.:
+
+ xmds /usr/share/doc/xmds/examples/nlse.xmds
+ ./nlse
+ xsil2graphics nlse.xsil
+ echo "nlse;mesh(z_1,t_1,pow_dens_1);print nlse.eps -color -deps" \
+ | octave -qf
+ gv nlse.eps
+
+ Notice that you must have one of the octave package (octave2.1 or
+ octave2.9) and the gv package installed in your system in order to run
+ the code above.
+
+ -- Rafael Laboissiere <rafael at debian.org> Thu, 25 Nov 2006 10:10:09 +0100
--- xmds/trunk/debian/rules #1354:1355
@@ -6,14 +6,21 @@
debdir = $(CURDIR)/debian
instdir = $(debdir)/xmds
-mdir = $(instdir)/usr/share/octave/site/m
+shrdir = $(instdir)/usr/share
+mdir = $(shrdir)/octave/site/m
DEB_CONFIGURE_EXTRA_FLAGS = --enable-fftw3
+DEB_COMPRESS_EXCLUDE = .xmds
install/xmds::
for v in 2.1 2.9 ; do octave$$v-depends ; done
binary-install/xmds::
+ # Move Octave file to the correct directory
mkdir -p $(mdir)
mv $(instdir)/usr/bin/loadxsil.m $(mdir)
chmod 644 $(mdir)/loadxsil.m
+ # Post-process *.xmds examples to add the appropriate fftw version
+ perl -pi -e \
+ '$$_.="\n <fftw_version>3</fftw_version>\n" if /^<simulation>/' \
+ $(shrdir)/doc/xmds/examples/*.xmds
More information about the Pkg-scicomp-devel
mailing list