# -*- 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                libtagedit
version             1.1.1
revision            2
checksums           rmd160  043beaaf6f5c8d059c6a7785db7cd4d294d04c9c \
                    sha256  2168de63e7bf253f5e7d368d171ec6632a3943112e6c1bc51a4315647b7cdd62 \
                    size    241394

categories          audio
license             GPL-2+
maintainers         nomaintainer

description         C++ interface to music file tag editing

long_description    libtagedit provides a C++ interface to music file tag \
                    editing which should be as easy as possible. It has a \
                    plugin structure and is easily extendable. Currently, \
                    it includes plugins for MP3 (ID3v2 r/w and ID3v1 \
                    reading), OGG and FLAC files.

homepage            https://web.archive.org/web/20070404105351/http://www.diotavelli.net/tagedit.html
master_sites        sourceforge:project/libtagedit/libtagedit/${version}
use_bzip2           yes

depends_build       port:pkgconfig

depends_lib         port:libvorbis \
                    port:libogg \
                    port:flac

if {${os.platform} eq "darwin" && ${os.major} < 12} {
    patchfiles-append \
                    libtagedit.cpp.patch
}

# Fix macOS 11+ libtool undefined symbols bug
# Fix "libtool: link: unable to infer tagged configuration"
# Fix inability to recognize Apple Silicon systems.
use_autoreconf      yes
autoreconf.args     -fvi
