# $Id: Portfile 92445 2012-04-28 21:05:02Z jeremyhu@macports.org $

PortSystem 1.0
name		libdv
version		1.0.0
categories	multimedia
license		LGPL-2.1+
maintainers 	gmail.com:filippo.natali	
platforms	darwin
description	Quasar DV codec (libdv): software codec for DV video encoding format	
long_description	The Quasar DV codec (libdv) is a software codec for DV video, the \
			encoding format used by most digital camcorders, typically those \
			that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. \
			Libdv was developed according to the official standards for DV \
			video: IEC 61834 and SMPTE 314M.	

homepage	http://libdv.sourceforge.net	
master_sites	sourceforge

checksums	md5 f895162161cfa4bb4a94c070a7caa6c7

depends_lib	port:popt

configure.args  --mandir=${prefix}/share/man   --disable-gtktest --disable-gtk --disable-sdltest

configure.ldflags-append	"-flat_namespace -undefined suppress"

platform darwin i386 {
	configure.args-append	--disable-asm
}

variant sdl {
	configure.args-append	--enable-sdl
        depends_lib-append      path:lib/pkgconfig/sdl.pc:libsdl
}

variant pal {
	configure.args-append	--with-pal-yuv
}
