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

# This is the last version to support Qt4.
# Please keep it pegged, or consider forward-porting Qt4 support into 1.3.x.
name                libqtxdg-legacy
github.setup        lxqt libqtxdg 1.2.0
revision            0
categories          devel
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             LGPL-2.1
conflicts           libqtxdg

description         Qt implementation of freedesktop.org xdg specs
long_description    {*}${description}

checksums           rmd160  fe28aaea91e52e8c8a4e0dd026e8f222679ca753 \
                    sha256  88c9b01b56fea205226b53642833963e4f27471de3b90e93e9b650ca28d098d9 \
                    size    55704
github.tarball_from releases
use_xz              yes

# Alternative option is to use libmagic, but QtMimeTypes is the recommended one.
depends_lib-append  port:qt4-mimetypes

# qt_mac_get_scalefactor() is not found; uncommenting cocoa header fixes compilation, but linking still fails.
# Anyway, it seems to have been introduced as a backport patch to support HDI displays,
# which is not of a particular concern on old systems: https://lists.qt-project.org/pipermail/development/2012-September/006624.html
patchfiles          patch-qiconloader_qt4.diff

configure.args-append \
                    -DUSE_QT4:BOOL=ON
