# -*- 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           qmake5 1.0

name                qt5pas
version             2.2.4-0
revision            0
categories          devel
license             GPL-2 LGPL-2
maintainers         {@kamischi web.de:karl-michael.schindler} openmaintainer
description         Pascal wrapper for Qt5

long_description    The Free Pascal Qt5 binding allows Free Pascal to interface with the \
                    C++ Library Qt. \
                    \
                    This binding may not cover the whole Qt5 framework but only the classes \
                    needed by the Cross Platform Lazarus IDE to use Qt as a Widget set.

homepage            https://wiki.freepascal.org/Qt5_Interface
dist_subdir         lazarus
master_sites        sourceforge:lazarus
distname            lazarus-${version}
checksums           rmd160  878d64c1e5a7c0842d51d3f37d2644a00d32fdb5 \
                    sha256  b84093218181f66b545218d1aaaf62a8bfb6abd40beba32387253d66fc5bc24c \
                    size    77272959

worksrcdir          lazarus/lcl/interfaces/qt5/cbindings

# Workaround xcrun: error: SDK "macosx12" cannot be located
configure.sdk_version

use_xcode           yes

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/qt5pas
    xinstall -m 644 {*}[glob ${worksrcpath}/*.TXT] ${destroot}${prefix}/share/doc/qt5pas
}

livecheck.regex "lazarus-(\\d+(?:\\.\\d+)*-\\d)"
