# -*- 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
PortGroup           github 1.0
PortGroup           cmake 1.1

github.setup        lastfm liblastfm 1.1.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160 3026e6acc8919e27383e2a19d443394447b7ddf4 \
                    sha256 7d90e81e5a715de62c4f6aba24120df778983eada94b51bf76fabc0d06eb64c8 \
                    size   119418
revision            0

categories          audio
license             GPL-3
maintainers         {michaelld @michaelld} openmaintainer

description         A set of libraries allowing use of the Last.fm site services.
long_description    liblastfm is a collection of libraries to help you \
integrate Last.fm services into your rich desktop software. It is \
officially supported software developed by Last.fm staff.

conflicts           ${name}-qt5

depends_lib-append  port:libsamplerate \
                    port:fftw-3-single

# Default to Qt4 for now, since dependents use it.
# Make sure to keep Qt4-based version even if default is changed.
if {${subport} eq "$name"} {
    PortGroup       qt4 1.0

}

subport ${name}-qt5 {
    PortGroup       qt5 1.0

    qt5.depends_component mysql-plugin psql-plugin sqlite-plugin

    conflicts       ${name}

    compiler.cxx_standard \
                    2014

    configure.args-append \
                    -DCMAKE_CXX_STANDARD=14
}