# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem			1.0

name				libdvdnav
version				4.1.3
categories			devel multimedia
maintainers			nomaintainer
description			DVD navigation library
long_description \
	libdvdnav is a library that allows easy use of sophisticated DVD \
	navigation features such as DVD menus, multiangle playback and even \
	interactive DVD games. \
	All this functionality is provided through a simple API which provides \
	the DVD playback as a single logical stream of blocks, intermitted by \
	special dvdnav events to report certain conditions. The main usage of \
	libdvdnav is a loop regularly calling a function to get the next block, \
	surrounded by additional calls to tell the library of user interaction. \
	The whole DVD virtual machine and internal playback states are completely \
	encapsulated.

platforms			darwin

depends_lib         port:libdvdread
depends_build       port:autoconf port:automake port:libtool

homepage			http://dvd.sf.net/
master_sites		http://www1.mplayerhq.hu/MPlayer/releases/dvdnav/ \
					http://www2.mplayerhq.hu/MPlayer/releases/dvdnav/ \
					http://www3.mplayerhq.hu/MPlayer/releases/dvdnav/ \
					http://www4.mplayerhq.hu/MPlayer/releases/dvdnav/ \
					http://www5.mplayerhq.hu/MPlayer/releases/dvdnav/ \
					ftp://ftp6.mplayerhq.hu/MPlayer/releases/dvdnav/ \
					http://www7.mplayerhq.hu/MPlayer/releases/dvdnav/ \
					http://www8.mplayerhq.hu/MPlayer/releases/dvdnav/ \
					ftp://ftp.fu-berlin.de/unix/X11/multimedia/MPlayer/releases/dvdnav/
					
use_bzip2			yes
checksums			md5 d62383c45b28816771e283515f2c27fa \
					sha1 d1b95eb8a7caee1fa7580a1abad84d6cb3cad046 \
					rmd160 7c6437230af699f6b1c2d73f05f304f03aba9dce

configure.cmd		./autogen.sh

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
		NEWS README TODO ${destroot}${prefix}/share/doc/${name}
}

livecheck.type  regex
livecheck.url   http://www1.mplayerhq.hu/MPlayer/releases/dvdnav/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
