# $Id: Portfile 87467 2011-11-23 02:46:19Z ryandesign@macports.org $

PortSystem 1.0

name		mjpegtools
version		2.0.0
categories	multimedia
maintainers 	gmail.com:filippo.natali
platforms	darwin
description	Set of tools to record/playback/edit videos in MPEG format
long_description	Programs for MJPEG recording and playback and simple cut-and-paste \
			editing and MPEG compression of audio and video.

homepage	http://mjpeg.sourceforge.net/
master_sites	sourceforge:project/mjpeg/mjpegtools/${version}

checksums       rmd160  454e23bedb2bd592912a546d0621b5c3662c3bb2 \
                sha256  bf3541593e71602f7b440c2e7d81b433f53d0511e74642f35bea9b3feded7a97

depends_build	port:pkgconfig

depends_lib     port:gtk2 \
                port:libsdl_gfx \
                port:libpng \
                port:jpeg \
                port:libdv \
                port:libquicktime

configure.args  --enable-simd-accel \
                --disable-sdltest \
                --without-x


variant x11 conflicts no_x11 {
    configure.args-delete --without-x
    configure.args-append --with-x
    depends_lib-append port:xorg-libXxf86dga
}

variant no_x11 conflicts x11 description {Legacy compatibility variant} {}

if {[variant_isset no_x11]} {
    default_variants -x11
} else {
    default_variants +x11
}

livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
