# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 67247 2010-05-03 13:05:03Z rmsfisher@macports.org $

PortSystem 1.0
PortGroup  cmake  1.0

name             taglib
version          1.6.3
categories       audio
maintainers      rmsfisher openmaintainer
description      TagLib Audio Meta-Data Library
long_description \
    TagLib is a library for reading and editing the meta-data of \
    several popular audio formats. Currently it supports both ID3v1 \
    and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags and \
    Vorbis comments in FLAC files.
homepage         http://developer.kde.org/~wheeler/taglib.html
platforms        darwin
master_sites     http://developer.kde.org/~wheeler/files/src/
checksums           md5     ddf02f4e1d2dc30f76734df806e613eb \
                    sha1    ee54f10c63f236ef1c29c82e39c227a75a7e3785 \
                    rmd160  f5cd42cfa47102e92e70f0c4912563bffa829349

depends_lib-append  port:zlib

platform darwin 8 {
    configure.ldflags-append -lz
}

configure.args-append  ../${distname} \
                       -DWITH_ASF=On -DWITH_MP4=On
# asf and mp4 are necessary for Amarok. 
# Change to make them optional was reportedly political
# http://lists.kde.org/?l=amarok&m=125338541922769&w=2

livecheck.type		regex
livecheck.url		${homepage}
livecheck.regex		"${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
