Package: scilab-gtk
Version: 4.1.2
Revision: 1
Distribution: 10.4
Maintainer: Stephane Mottelet <mottelet@utc.fr>
Depends: g95, tcltk, libgnome2, glib2, pango1-xft2, libzvt2
BuildDepends: tcltk-dev,libncurses5 (>= 5.4-20041023-1006), ocaml, libsablot (>= 0.98-1024), pkgconfig, libgnome2-dev, glib2-dev, libgtkhtml2, pango1-xft2-dev, libzvt2-dev, atk1, libart2
Conflicts: scilab-atlas, scilab
Replaces: scilab-atlas, scilab
Source: http://www.scilab.org/download/%v/scilab-%v-src.tar.gz
SourceDirectory: scilab-%v
Source-MD5: 17a7a6aa52918f33d96777a0dc423658
Patch: %n.patch
PatchScript: <<
 perl -pi -e 's,(head|tail) +\-([0-9]),\1 \-n\2,g' scripts/sc_cpp
 perl -pi -e 's|[/]sw/|%p/|g' configure
 perl -pi -e 's,\#ifdef B42UNIX,#define B42UNIX\n#ifdef B42UNIX,' routines/console/zzledt.c
 perl -pi -e 's|.*setslatecjmp.*||g' routines/interf/matimp.f
 /usr/bin/sed -i -e '21,42d' scripts/scilab.g.in
<<
DescPackaging: Patch and patchscript contain /sw because upstream source does
ConfigureParams: --without-pvm --with-tcl-include=%p/include --with-tcl-library=%p/lib --with-ocaml --without-java  --with-gtk2
CompileScript: <<
 #!/bin/sh -ex
 perl -pi -e 's|g77|g95|g' configure
 ./configure %c
# on intel, dlamc1 needs -ffloat-store, otherwise it produces an infinite loop
# doesn't harm on ppc either
 make FC_OPTIONS="-O2 -ffloat-store" routines/lapack/dlamch.o
# remove annoying disclaimer from greeting message
 make CFLAGS="-U__APPLE__" routines/system/banier.o
 make all man
<<
InstallScript: <<
#!/bin/sh -ex
 make install PREFIX=%i DESTDIR=%p
 ln -fs %p/lib/scilab-%v/bin/scilab %i/bin/scilab
 ln -fs %p/lib/scilab-%v/bin/intersci %i/bin/intersci
 ln -fs %p/lib/scilab-%v/bin/intersci-n %i/bin/intersci-n
<<
PostInstScript: (cd %p/lib/scilab-%v; make)
Description: Software package for numerical computations
License: OSI-Approved
Homepage: http://www.scilab.org
