# -*- 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 87429 2011-11-21 09:57:42Z ryandesign@macports.org $

PortSystem          1.0

name                mp4v2
conflicts           mp4v2-devel
version             1.9.1
revision            2
categories          multimedia
maintainers         gmail.com:cedric.luthi
description         Read, create, and modify mp4 files.
long_description    The mp4v2 library provides an API to create and modify mp4 \
                    files as defined by ISO-IEC:14496-1:2001 MPEG-4 Systems. \
                    mp4v2 used to be part of the mpeg4ip library.

homepage            http://code.google.com/p/mp4v2/
platforms           darwin

master_sites        googlecode

checksums           md5    986701929ef15b03155ac4fb16444797 \
                    sha1   c62d00e99b65efce16accd83c501fb8a57206aa8 \
                    rmd160 66aed17925589b49ec3b1241bfcb45a8e3181c08

depends_build       port:help2man

use_bzip2           yes

patchfiles          mp4v2-1.9.1-libversion.patch

if {${configure.compiler} == "clang"} { 
    configure.compiler llvm-gcc-4.2 
}

variant universal {
    configure.args-append  --disable-gch
}

livecheck.type      regex
livecheck.url       http://code.google.com/p/mp4v2/downloads/list
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
