# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 118248 2014-03-27 08:34:14Z devans@macports.org $

PortSystem      1.0

name            totem-pl-parser
version         3.10.2
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      gnome
license         LGPL-2+
maintainers     devans openmaintainer
description     Gnome Playlist parser
long_description \
        totem-pl-parser is a simple GObject-based library to parse \
        a host of playlist formats, as well as save those

homepage        https://wiki.gnome.org/Apps/Videos
platforms       darwin
master_sites    gnome:sources/${name}/${branch}/

use_xz          yes

checksums       rmd160  ff55e3dabeba14632803ac6bbdb3572d2ffd290f \
                sha256  38be09bddc46ddecd2b5ed7c82144ef52aafe879a5ec3d8b192b4b64ba995469

depends_build   port:pkgconfig \
                port:intltool \
                port:gnome-common

depends_lib     port:libsoup \
                port:libarchive \
                port:libgcrypt \
                port:libquvi \
                port:libxml2 \
                port:gmime \
                port:gobject-introspection

patchfiles      patch-plparse-plparser.symbols.diff

# update m4/intltool.m4 and autoreconf

pre-configure {
    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
}

use_autoreconf  yes
autoreconf.args -fvi

configure.args  --enable-introspection=yes \
                --enable-libarchive \
                --enable-libgcrypt \
                --enable-quvi \
                --disable-silent-rules

livecheck.type  gnome
