# -*- 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 59217 2009-10-11 20:38:23Z macsforever2000@macports.org $

PortSystem          1.0

name                libextractor
version             0.5.20c
categories          devel
maintainers         nomaintainer
description         A library for extraction af meta-data.
long_description \
   libextractor is a library used to extract meta-data from files of \
   arbitrary type. It is designed to use helper-libraries to perform the \
   actual extraction, and to be trivially extendable by linking against \
   external extractors for additional file types.

homepage            http://gnunet.org/libextractor/
master_sites        http://gnunet.org/libextractor/download/ gnu
platforms           darwin
checksums           md5     5d655310c20dd6f8b1bfd5527aed52fe \
                    sha1    6b89c104a1c9e0bb4c8b949563b8ec8433c879d0 \
                    rmd160  dfdd25f674d5304ab5a5906e6be0af8837dc6f92

depends_lib         port:bzip2 port:zlib port:gettext port:libiconv \
                    port:libtool \
                    path:lib/pkgconfig/glib-2.0.pc:glib2

configure.args      --mandir=${prefix}/share/man \
                    --with-libiconv-prefix=${prefix} \
                    --with-libintl-prefix=${prefix} \
                    --disable-xpdf \
                    --disable-gsf \
                    --disable-gnome

use_parallel_build  no

# These variants are auto-detected by configure so no need to add
# args; of course, that means that they'll be used when the port is
# installed but the variant isn't selected...

variant vorbis description {Include support for Ogg/Vorbis} {
   depends_lib-append   port:libvorbis
}

variant flac description {Include support for FLAC} {
   depends_lib-append   port:flac
}

variant mpeg2 description {Include support for MPEG2} {
   depends_lib-append   port:libmpeg2
}

livecheck.type      regex
livecheck.url       http://ftp.gnu.org/gnu/${name}/?C=M&O=D
livecheck.regex     ${name}-(\\d+\\.\\d+\\.\\d+)

