# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                gnome-themes-extra
version             3.28
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          gnome
maintainers         {devans @dbevans} openmaintainer
license             LGPL-2.1+ GPL-2+
platforms           darwin
description         Extra GTK+ 2 and 3 themes for GNOME

long_description    gnome-themes-extra contains the optional GTK+ 2 themes \
                    Adwaita and Adwaita-dark and both the GTK+ 2 and 3 \
                    versions of deprecated theme HighContrast.

homepage            https://www.gnome.org/
master_sites        gnome:sources/$name/$branch/

use_xz              yes

checksums           rmd160  0f083d9970389a2eb1fc08da54c4759414d2b162 \
                    sha256  7c4ba0bff001f06d8983cfc105adaac42df1d1267a2591798a780bac557a5819 \
                    size    2953272

depends_build       port:intltool \
                    port:pkgconfig \
                    port:gnome-common \
                    port:autoconf \
                    port:automake \
                    port:libtool

depends_lib         path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                    path:lib/pkgconfig/librsvg-2.0.pc:librsvg

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility

post-patch {
    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
}

configure.cmd       ./autogen.sh

configure.args      --disable-silent-rules

#
# the following dummy variants are used
# to identify this port's binary dependencies
# based on which variant of gtk2, gtk3 is used for the build
#

variant x11 conflicts quartz {}
variant quartz conflicts x11 {}

if {![variant_isset quartz]} {
    default_variants +x11
}

livecheck.type      gnome
