# $Id: Portfile 44897 2009-01-04 15:32:49Z css@macports.org $

PortSystem		1.0
name			simage
version			1.6.1
revision		1
description		library for loading and saving images, sound and video
long_description	simage is a library capable of loading, manipulating \
	and saving images, creating and saving movies (AVI and mpeg), and    \
	loading audio. The simage library relies heavily on 3rd party        \
	libraries to perform these tasks.

categories		graphics devel
homepage		http://www.coin3d.org/lib/simage/
platforms		darwin
maintainers		css
master_sites		http://ftp.coin3d.org/coin/src/all/
checksums		md5 d4c836ab282388392a65cd0650f224c5

patchfiles		patch-configure.diff

depends_lib		lib:libjpeg:jpeg \
			lib:libpng:libpng \
			lib:libsndfile:libsndfile \
			lib:libungif:libungif \
			lib:libtiff:tiff \
			lib:libz:zlib

use_configure		yes
configure.args		--disable-quicktime \
			--with-jpeg=${prefix} \
			--with-png=${prefix} \
			--with-libsndfile=${prefix} \
			--with-ungif=${prefix} \
			--with-tiff=${prefix} \
			--with-zlib=${prefix}

# The QuickTime variant uses QuickTime for image loading, removing
# the dependencies on additional image libraries.
variant quicktime {
	depends_lib-delete	lib:libjpeg:jpeg \
				lib:libpng:libpng \
				lib:libungif:libungif \
				lib:libtiff:tiff \
				lib:libz:zlib
	configure.args-delete	--disable-quicktime \
				--with-jpeg=${prefix} \
				--with-png=${prefix} \
				--with-ungif=${prefix} \
				--with-tiff=${prefix} \
				--with-zlib=${prefix}
	configure.args-append	--enable-quicktime
}
