image-oct stable port information

Info2: <<
Package: image-oct%type_pkg[oct]
Version: 1.0.15
Type: oct (3.2.4 3.4.3 3.6.0 3.6.1), forge (image), gcc (4.6)
Revision: 4
Maintainer: Alexander Hansen
# unfortunately, Homepage won't do types
Homepage: http://octave.sourceforge.net/general/index.html
Description: Image tools for octave
DescDetail: <<
The Octave-forge Image package provides functions for processing images.
The package supports almost all image formats through the use of
GraphicsMagick. The package also provides functions for
feature extraction, image statistics, spatial and geometric transformations,
morphological operations, linear filtering, and much more.
The following additional functions are included:
Display:
image
imagesc
imshow
rgbplot
Read/write:
imfinfo
imginfo
bmpwrite
readexif
tiff_tag_read
Reshape:
imcrop
imremap
imperspectivewarp
imresize
imrotate
imrotate_Fourier
imtranslate
imshear
impad
padarray
rotate_scale
Analysis and Statistics:
fftconv2
corr2
imhist
mean2
std2
entropy
qtdecomp
qtgetblk
qtsetblk
graycomatrix
houghtf
hough_line
hough_circle
graythresh
immaximas
phantom
Filtering:
imfilter
colfilt
fspecial
imsmooth
histeq
imadjust
imnoise
medfilt2
ordfilt2
ordfiltn
uintlut
stretchlim
makelut
applylut
deriche
radon
rho_filter
iradon
nonmax_supress
Black and white image functions:
bwarea
bwboundaries
bwconncomp
bwdist
bweuler
bwfill
bwlabel
bwmorph
bwperim
bwselect
dilate
erode
bwborder
edge
conndef
bwhitmiss
regionprops
fchcode
Morhophological Operations:
imerode
imdilate
imopen
imclose
imtophat
Colour controls:
cmpermute
cmunique
imapprox
rgb2ycbcr
ycbcr2rgb
Representation:
dither
gray2ind
grayslice
im2bw
im2double
im2uint8
im2uint16
ind2gray
ind2rgb
isbw
isgray
isind
isrgb
mat2gray
rgb2gray
rgb2ind
label2rgb
imcomplement
Colour maps:
flag
lines
colorcube
vga
contrast
colorgradient
Region-based and block processing:
roicolor
roifill
roifilt2
roipoly
poly2mask
bestblk
blkproc
nlfilter
im2col
col2im
rangefilt
stdfilt
entropyfilt
<<

License: GPL2+

# All octave-forge packages have to have the following BuildDepends:
# octave%type_pkg[oct]-dev | octave%type_pkg[oct]-atlas-dev,
# fftw3, hdf5.7-oldapi

BuildDepends: <<
( %type_pkg[oct] << 360 ) liboctave%type_pkg[oct]-gcc%type_pkg[gcc]-dev,
( %type_pkg[oct] >= 360 ) liboctave%type_pkg[oct]-dev,
fftw3,
hdf5.7,
graphicsmagick-dev,
fink (>=0.32)
<<
RuntimeDepends: graphicsmagick-imagemagick-compat | imagemagick
Depends: <<
( %type_pkg[oct] << 360 ) fftw3-shlibs,
( %type_pkg[oct] = 324 ) hdf5.7-shlibs,
( %type_pkg[oct] = 324 ) libncurses5-shlibs,
( %type_pkg[oct] = 324 ) readline5-shlibs,
octave%type_pkg[oct]-interpreter,
( %type_pkg[oct] << 360 ) graphicsmagick-shlibs,
( %type_pkg[oct] << 360 ) gcc%type_pkg[gcc]-shlibs
<<
Conflicts: octave-forge

Source-MD5: c80baf7e27a44a3366847012099df0d1

#### Insert required changes here ####

######################################

# Do not change anything from this point down, unless absolutely necessary,
# since the foo-oct%type_pkg[oct] packages are designed to be built/installed
# in the same way.

Source: mirror:sourceforge:octave/%type_raw[forge]-%v.tar.gz

#NoSetCPPFLAGS: true
#NoSetLDFLAGS: true
SetLIBRARY_PATH: /usr/X11R6/lib:%p/lib
UseMaxBuildJobs: false
BuildAsNobody: false

CompileScript: <<
#!/bin/sh -ev
if [ $UID -ne 0 ]
then
echo "%n cannot be built with --build-as-nobody"
exit 1
fi
export OCTAVE=%p/bin/octave-%type_raw[oct]
# repack tarball, since octave-3.4.3 appears not to want to install
# from directories
if [ %type_pkg[oct] -ge 343 ]
then
cd ..
tar -cf %type_raw[forge]-%v.tar %type_raw[forge]-%v
cd %b
pkgsrc=%type_raw[forge]-%v.tar
else pkgsrc=%type_raw[forge]-%v
fi
%p/share/octave/%type_raw[oct]/scripts/octave-forge-compile.sh $pkgsrc
<<

InstallScript: <<
#!/bin/sh -ev
%p/share/octave/%type_raw[oct]/scripts/octave-forge-install.sh %type_raw[forge]-%v %i %b
mkdir -p %i/share/octave/%type_raw[oct]/%type_raw[forge]-%v
# copy template scripts
cp %p/share/octave/%type_raw[oct]/scripts/octave-forge-prerm %p/share/octave/%type_raw[oct]/scripts/octave-forge-postinst %i/share/octave/%type_raw[oct]/%type_raw[forge]-%v
cd %i/share/octave/%type_raw[oct]/%type_raw[forge]-%v
sed -i -e 's/@PKGNAME@/%type_raw[forge]-%v/' octave-forge-postinst
sed -i -e 's/@PKGNAME@/%type_raw[forge]/' octave-forge-prerm
chmod a+x octave-forge*
<<

PostInstScript: <<
if [ -s %p/var/octave/%type_raw[oct]/octave_packages ] && [ -f %p/var/octave/%type_raw[oct]/octave_packages ]
then
%p/share/octave/%type_raw[oct]/%type_raw[forge]-%v/octave-forge-postinst
else
mv %p/share/octave/%type_raw[oct]/packages/%type_raw[forge]-%v/octave_packages %p/var/octave/%type_raw[oct]/octave_packages
fi
<<

PreRmScript: %p/share/octave/%type_raw[oct]/%type_raw[forge]-%v/octave-forge-prerm

DescPackaging: <<
Common for all octave-forge packages.

We read in postinst and prerm template scripts installed by octaveN and modify
them to use the name of this package because Octave's package manager can't
cope with non-literal arguments.

The Type: forge (pkgname) is used to minimize what needs to be changed when
using this .info file as a template.
<<
<<