Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv31057

Added Files:
        octave-forge-image.info 
Log Message:
New octave-forge package.  Requires older version than upstream's latest
_and_ currently uses old imagemagick10.


--- NEW FILE: octave-forge-image.info ---
info2: <<
Package: octave-forge-image
Version: 1.0.7
Type: octave (3.0.3), forge (image)
Revision: 1
Maintainer: Alexander Hansen <[email protected]>
BuildDepends: <<
  gcc43,  hdf5 (>= 1.6.5-1012), fftw3,
  imagemagick10-dev, libjpeg, libpng3, libncurses5,
  readline5 (>= 5.0-1004)
  <<
Depends: << 
  fftw3-shlibs, hdf5-shlibs (>= 1.6.5-1012), gcc43-shlibs, 
  imagemagick10-shlibs, libjpeg-shlibs, libpng3-shlibs
  octave (>= %type_raw[octave]-1) | octave-atlas (>= %type_raw[octave]-1),
  octave (<< %type_raw[octave]-9999) | octave-atlas (<< %type_raw[octave]-9999),
  readline5-shlibs (>= 5.0-1004), libncurses5-shlibs
<<
Conflicts: octave-forge
Source: mirror:sourceforge:octave/%type_raw[forge]-%v.tar.gz
Source-MD5: 2fd2a0b18029d034c69f37eab5df83db
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
SetLIBRARY_PATH: /usr/X11R6/lib:%p/lib
SetMAKEFLAGS: -j1
CompileScript: echo ''

InstallScript: <<
#!/bin/bash -ev
export   CPPFLAGS=-I%p/lib/system-openssl/include
export   LDFLAGS=-L%p/lib/system-openssl/lib
export   PKG_CONFIG_PATH=%p/lib/system-openssl/lib/pkgconfig
export CPATH=/usr/X11R6/include:%p/include
cd ..
m=%i/share/octave/packages
o=%i/lib/octave/packages
mkdir -p $m $o
echo "pkg prefix $m $o" > tmp
echo "pkg global_list %i/share/octave/octave_packages" >> tmp
echo "pkg install -verbose -nodeps %type_raw[forge]-%v" >> tmp
octave -V tmp
echo "load %i/share/octave/octave_packages" > tmp
echo "striplength = length('%d');" >> tmp
echo "apfx = global_packages {1}.archprefix;" >> tmp
echo "global_packages {1}.archprefix = apfx(striplength+1:end);" >> tmp
echo "dr = global_packages {1}.dir;" >> tmp
echo "global_packages {1}.dir = dr(striplength+1:end);" >> tmp
echo "save -text %i/share/octave/octave_packages global_packages" >> tmp
octave -q tmp
mv %i/share/octave/octave_packages 
%i/share/octave/packages/%type_raw[forge]-%v/.
<<

PostInstScript: <<
if [ -f %p/share/octave/octave_packages ]
then 
  tf=/var/tmp/tmp-inst
  echo "load %p/share/octave/packages/%type_raw[forge]-%v/octave_packages" > $tf
  echo "newpackage = global_packages;" >> $tf
  echo "load %p/share/octave/octave_packages" >> $tf
  echo "global_packages = {global_packages{:},newpackage{:}};" >> $tf
  echo "save -text %p/share/octave/octave_packages global_packages" >> $tf
  octave -q $tf
  rm %p/share/octave/packages/%type_raw[forge]-%v/octave_packages
  rm $tf
else
  mv %p/share/octave/packages/%type_raw[forge]-%v/octave_packages 
%p/share/octave/octave_packages
fi
<<

PreRmScript: <<
tf=/var/tmp/tmp-rem
echo "load %p/share/octave/octave_packages" > $tf
echo "for i = 1:length(global_packages)" >> $tf
echo "  if strcmp(global_packages{i}.name,'%type_raw[forge]')" >> $tf
echo "    global_packages(i) = [];" >> $tf
echo "    break" >> $tf
echo "  endif" >> $tf
echo "endfor" >> $tf
echo "save -text %p/share/octave/octave_packages global_packages" >> $tf
octave -q $tf
rm $tf
<<

Description: Image tools for octave
DescDetail: <<
The Octave-forge Image package provides functions for reading, writing, and 
and processing images. The package supports almost all image formats through
the use of ImageMagick. The package also provides functions for feature 
extraction, image statistics, spatial and geometric transformations, 
morphological operations, linear filtering, and much more.
Note:  the current version (1.0.8) doesn't work on OS X.
<<
DescPort: <<
Installation framework intially due to Johnathan Stickel.  I added a few
tweaks.
Uses imagemagick10 as additional hacking would be needed to use imagemagick1.
<<
Homepage: http://octave.sourceforge.net/image/index.html 
License: GPL
<<

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to