Info2: <<
Package: image-oct%type_pkg[oct]
Version: 2.2.1
Type: oct (3.8.2), forge (image)
Revision: 3

Maintainer: None <fink-devel@lists.sourceforge.net>
Homepage: http://octave.sourceforge.net/image/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.

This package provides the following functions:
Analysis and Statistics:
	edge
	fftconv2
	corr2
	imhist
	mean2
	std2
	entropy
	entropyfilt
	qtdecomp
	qtgetblk
	qtsetblk
	graycomatrix
	houghtf
	hough_line
	hough_circle
	immaximas
	normxcorr2
	rangefilt
	regionprops
	stdfilt
Arithmetics:
	imabsdiff
	imadd
	imcomplement
	imdivide
	imlincomb
	immultiply
	imsubtract
Black and white image functions:
	applylut
	bwarea
	bwborder
	bwboundaries
	bwconncomp
	bwdist
	bweuler
	bwfill
	bwhitmiss
	bwlabel
	bwlabeln
	bwmorph
	bwperim
	bwselect
	fchcode
	makelut
Colour maps and Colour controls:
	cmpermute
	cmunique
	colorgradient
	rgb2ycbcr
	wavelength2rgb
Display:
	rgbplot
Enhancement and Restoration:
	histeq
	imadjust
	imnoise
	imsmooth
	medfilt2
	ordfilt2
	ordfiltn
	stretchlim
Filtering and Transforms:
	fspecial
	imfilter
	iradon
	nonmax_supress
	phantom
	radon
	rho_filter
	uintlut
Morhophological Operations:
	conndef
	imbothat
	imclose
	imdilate
	imerode
	imopen
	imtophat
	mmgradm
Read/write:
	analyze75info
	analyze75read
	analyze75write
	bmpwrite
	readexif
	tiff_tag_read
Region-based and block processing:
	bestblk
	blockproc
	col2im
	colfilt
	im2col
	nlfilter
	poly2mask
	roicolor
Spatial transformations:
	imcrop
	impad
	imperspectivewarp
	imremap
	imresize
	imrotate
	imrotate_Fourier
	imshear
	imtranslate
	rotate_scale
Types and Type conversions:
	grayslice
	graythresh
	im2bw
	im2double
	im2int16
	im2single
	im2uint8
	im2uint16
	imdither
	isbw
	iscolormap
	isgray
	isind
	isrgb
	label2rgb
	mat2gray
	rgb2gray
Utilities:
	getrangefromclass
	iptcheckconn
	iptcheckmap
	iptchecknargin
	iptcheckstrs
	iptnum2ordinal
	padarray
<<
License: OSI-Approved

BuildDepends: <<
  graphicsmagick1322-dev, 
  liboctave%type_pkg[oct]-cxxfix-dev,
  fftw3, 
  hdf5.9 (>=1.8.10-patch1-2), 
  fink (>=0.32),
  fink-octave-scripts (>= 0.3.0-1),
  texinfo-legacy
<<
RuntimeDepends: <<
	general-oct%type_pkg[oct],
	graphicsmagick-imagemagick-compat | imagemagick, 
	signal-oct%type_pkg[oct] (>= 1.2.0-1)
<<
Depends: octave%type_pkg[oct]-cxxfix-interpreter
Conflicts: octave-forge

Source: mirror:sourceforge:octave/%type_raw[forge]-%v.tar.gz
Source-Checksum: SHA256(857cf96b5579962cc836805bdb92162fe6cdb17a90c9b6c9b9e16ccaf79cafe1)
SourceDirectory: %type_raw[forge]

UseMaxBuildJobs: false
BuildAsNobody: false

PatchScript: perl -pi -e 's|pow \(2|std\:\:pow \(2|g' src/bwdist.cc

CompileScript: <<
#!/bin/sh -ev
export PATH=%p/opt/texinfo-legacy/bin:$PATH
pkgsrc=%type_raw[forge]

##### Invariant stuff begins here #####
%p/share/fink-octave-scripts/octave-forge-patch.sh %type_raw[forge] %v %type_raw[oct] %b %i $pkgsrc
./octave-forge-compile.sh
<<

InstallScript: ./octave-forge-install.sh
PostInstScript:  %p/share/octave/%type_raw[oct]/%type_raw[forge]/octave-forge-postinst.sh
PreRmScript: %p/share/octave/%type_raw[oct]/%type_raw[forge]/octave-forge-prerm.sh

DescPackaging: <<
This package: 
Listed license is GPLv3+, MIT, FreeBSD

Common for all octave-forge packages:
Preinst and postinst scripts are dynamically set up via
%p/share/fink-octave-scripts/octave-forge-patch.sh 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.

Former Maintainer: Alexander Hansen <alexkhansen@users.sourceforge.net>
<<
DescPort: <<
	Patch to avoid the following build failure under Xcode 9:

	do_mx_check (const Array<T>& a,
	^
	bwdist.cc:541:20: error: call to 'pow' is ambiguous
   	      if (numel >= pow (2, 32))

<<
<<