# -*- 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               app 1.1
PortGroup               boost 1.0
PortGroup               cmake 1.1
PortGroup               github 1.0
PortGroup               legacysupport 1.1
PortGroup               lua 1.0

# Needed for std::filesystem
legacysupport.newest_darwin_requires_legacy 19
legacysupport.use_mp_libcxx                 yes

github.setup            thezbyg gpick 0.3 v
revision                3
categories              graphics
maintainers             {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
license                 BSD

description             Gpick is an advanced color picker.
long_description        Gpick is a program used to pick colors from anywhere \
                        on the screen, mix them to get new colors, generate \
                        shades and tints and export palettes to common file \
                        formats or simply copy them to the clipboard.

github.tarball_from     releases

checksums               rmd160  19ebed9cb8229e319d8b68013b46c87a6842cffc \
                        sha256  90b03ce10d2f3e211a3f37d262596e4ae40d05cbd633aa0560d0891562c93474 \
                        size    368100

patchfiles-append       patch-getExecutablePath.diff \
                        patch-bool_vector_fix.diff

depends_build-append    port:gettext \
                        port:pkgconfig \
                        port:ragel

depends_lib-append      port:expat \
                        port:gettext-runtime \
                        path:lib/pkgconfig/gtk+-3.0.pc:gtk3

# see https://github.com/thezbyg/gpick/blob/dd27232a4dd08cf6271ecc2a7e96da25f8071ed5/CMakeLists.txt#L33
lua.version             5.4

# latest version of Boost that produced no configure warnings
boost.version           1.78
boost.depends_type      build

compiler.cxx_standard   2017

installs_libs           no

app.icon                ${worksrcpath}/res/gpick.svg
app.retina              yes
