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

PortSystem              1.0

name                    xine-ui
version                 0.99.14
revision                0
checksums               rmd160  a23b4cc56e7d117fe0b561eb338f45a2738b7110 \
                        sha256  d4d490d5cece70e2bb9849c9e482f2cf87af0302d451b614476fdcc3642cd9c3 \
                        size    2214740

maintainers             {ryandesign @ryandesign} openmaintainer
categories              multimedia
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                https://sourceforge.net/projects/xine/
master_sites            sourceforge:project/xine/xine-ui/${version}
use_xz                  yes

depends_build           port:pkgconfig

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

# xine-lib is not universal
universal_variant       no

patchfiles              globals.patch \
                        implicit.patch

configure.args          --disable-lirc \
                        --with-readline=${prefix}

# disable silent rules
build.args              V=1

use_parallel_build      yes

platform darwin {
    configure.args-append \
                        --disable-rpath
}

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