# $Id: Portfile 64763 2010-03-15 16:31:33Z nox@macports.org $

PortSystem 1.0

name			hugin-app
svn.revision		2903
version			7.0-${svn.revision}
revision		2
categories		graphics
maintainers		auckland.ac.nz:p.schmiedeskamp
description		Panorama photo stitcher
long_description	An easy to use cross-platform panoramic imaging \
			toolchain based on Panorama Tools. With hugin you \
			can assemble a mosaic of photographs into a complete \
			immersive panorama, stitch any series of overlapping \
			pictures and much more.

homepage		http://hugin.sourceforge.net
platforms		darwin

fetch.type		svn
svn.url			http://hugin.svn.sourceforge.net/svnroot/hugin/hugin/trunk

worksrcdir		trunk

depends_build		port:cmake

depends_lib		port:boost \
			port:tiff \
			port:jpeg \
			port:libpng \
			port:wxWidgets \
			port:openexr \
			port:exiv2 \
			port:libpano13

depends_run		port:autopano-sift-c \
			port:enblend \
			port:p5-image-exiftool

configure.cmd		cmake
configure.pre_args

patchfiles		patch-src-hugin_base-algorithms-panorama_makefile-PanoramaMakefileExport.cpp.diff

configure.args		-DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
			-DHUGIN_SHARED:BOOL=OFF
