octplot-10.5 _unstable_ port information

Info2: <<
Package: octplot%type_pkg[-aqua]
Version: 0.4.0
Revision: 11
Distribution: 10.5
Maintainer: Alexander Hansen
Description: Handle graphics package for Octave
Homepage: http://octplot.sourceforge.net
License: GPL

# Build parameters
Type: -aqua (-aqua -x11), octave (3.0.5)
GCC: 4.0
Source: mirror:sourceforge:%{ni}/%{ni}-%v.tar.gz
Source-MD5: 1ea6fa85b620e6af252ee64407c87285
PatchFile: octplot-10.5.patch
PatchFile-MD5: fd54d1b2183f0ddf4da64d65fb45b2e2
PatchScript: <<
#!/bin/sh -ev
%{default_script}
perl -pi -e 's|Fl/|FL/|g' src/*.cpp
perl -pi -e 's|GL/|OpenGL/|g' src/patch.cpp
perl -pi -e "s,use-gl --libs,use-gl --libs | tr \'\\\n\' \' \'," configure
<<
Depends: <<
octave (>= %type_raw[octave]-1) | octave-atlas (>= %type_raw[octave]-1),
octave (<< %type_raw[octave]-9999) | octave-atlas (<< %type_raw[octave]-9999),
freetype219-shlibs,
(%type_pkg[-aqua] = -x11) fltk-x11-shlibs,
(%type_pkg[-aqua] = -aqua) fltk-aqua-shlibs,
ghostscript
<<
BuildDepends: <<
freetype219, hdf5, fftw3, libncurses5, readline5, gcc44,
(%type_pkg[-aqua] = -x11) fltk-x11,
(%type_pkg[-aqua] = -aqua) fltk-aqua,
fink ( >= 0.24.12-1 )
<<
Conflicts: octplot-aqua,octplot-x11
Replaces: octplot-aqua,octplot-x11
ConfigureParams: --with-ft-prefix=%p/lib/freetype219 --disable-dependency-tracking

CompileScript: <<
#!/bin/sh -ev
if [ "%type_pkg[-aqua]" == "-x11" ]
then export GL_SWAP_TYPE=COPY
fi
install_sh=/usr/bin/install ./configure %c
make
<<

#deb-time stuff
InstallScript: <<
make install DESTDIR=%d
install -d %i/share/%n/demos
install demos/*.m %i/share/%n/demos
<<

PostInstScript: <<
if [ "%type_pkg[-aqua]" == "-aqua" ] ; then
pushd %p/lib/octave
fltk-config.aqua --post $(/usr/bin/find * | grep octplot$)
popd
fi
<<

DocFiles: COPYING AUTHORS ChangeLog NEWS README README.mac
DescPackaging: <<
Includes some demo scripts.
Currently relying on implicit Depends via octave.
Depends on a particular octave version because it installs
in an octave-versioned directory.
<<
DescPort: <<
Patch out wrongly-cased FL include directory references.
Uses system OpenGL framework, even for the -x11 variant
(it didn't like X11's for some reason).
PostInstScript required for the Aqua variant to work properly.
Sets GL_SWAP_TYPE=COPY in the -x11 compile script so that selection
of a plot area to zoom works properly.
<<
DescUsage: <<
Run

toggle_octplot

from an octave prompt to turn octplot on and off.
<<
<<