# -*- 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            tagtool
version         0.12.3
revision        4
checksums       rmd160  9f5ae223580948c403cd44d82ecef0d03040ff09 \
                sha256  273f41031dd2ad80c09d1865fdc71d9052831a5ce9cd8c53705cc518a9d3d411 \
                size    303743

categories      audio
license         GPL-2
maintainers     nomaintainer

description     Audio Tag Tool is a program to manage the information fields \
                in MP3 and Ogg Vorbis files, commonly called tags.
long_description \
    ${description} \
    Tag Tool can be used to edit tags one by one, \
    but the most useful features are the ability to \
    easily tag or rename hundreds of files at once, in \
    any desired format.

homepage        https://sourceforge.net/projects/tagtool/
master_sites    sourceforge:project/${name}/${name}/${version}
use_bzip2       yes

patchfiles      configure.ac.patch \
                patch-str_util-lp64.diff

depends_build   port:pkgconfig \
                port:intltool
depends_lib     port:id3lib \
                port:libvorbis \
                port:gettext \
                path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                port:libglade2 \
                port:libxml2 \
                port:sqlite3 \
                port:libffi

# Don't do intltool's INTLTOOL_PERL dance
# and we are patching configure.ac
use_autoreconf  yes
autoreconf.args -fvi

configure.cflags-append -flat_namespace
post-configure {
    reinplace "s|-export-dynamic||g" ${worksrcpath}/src/Makefile
}
