# -*- 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$

PortSystem              1.0

name                    xine-ui
version                 0.99.6
maintainers             ryandesign openmaintainer
categories              multimedia
platforms               darwin
license                 GPL-2+

description             A free multimedia player
long_description        xine is a free multimedia player. It plays \
                        back CDs, DVDs, and VCDs. It also decodes \
                        multimedia files like AVI, MOV, WMV, and MP3 \
                        from local disk drives, and displays multimedia \
                        streamed over the Internet. It interprets many \
                        of the most common multimedia formats available \
                        – and some of the most uncommon formats, too.

homepage                http://www.xine-project.org/
master_sites            sourceforge:project/xine/xine-ui/${version}
use_xz                  yes

checksums               sha1    abbdb331898c14025ee6b132f63ab7d3c1b5b31e \
                        rmd160  b5d27f112d2ebb861d18be684c17c5fe0e7b7fbd

depends_build           port:pkgconfig

depends_lib             port:xine-lib \
                        port:xorg-libXtst \
                        port:xorg-libXv \
                        port:xorg-libXxf86vm \
                        port:Xft2 \
                        port:libssh2 \
                        port:readline \
                        port:curl

# xine-lib is not universal
universal_variant       no

patchfiles              globals.patch

configure.args          --mandir=${prefix}/share/man \
                        --disable-lirc \
                        --with-readline=${prefix}

use_parallel_build      yes

livecheck.type          regex
livecheck.url           ${homepage}releases
livecheck.regex         ${name}-(\[0-9.\]+)\\.