# -*- 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 # $Id$ PortSystem 1.0 name gthumb version 3.4.3 revision 1 license GPL-2+ set branch [join [lrange [split ${version} .] 0 1] .] description Image viewer and browser for the GNOME desktop. long_description ${description} maintainers nomaintainer categories gnome platforms darwin homepage https://wiki.gnome.org/Apps/gthumb master_sites gnome:sources/gthumb/${branch} use_xz yes checksums sha256 c10fd12f3bfea31c390c74e8e08f86f16e2159fbd6c806daa025423e0ded825d \ rmd160 ca10fc54f9e18e56cfb6679747bc0ee78762e4bd depends_build port:intltool \ port:pkgconfig \ port:gnome-common \ port:yelp-tools \ port:itstool \ port:autoconf \ port:automake \ port:libtool depends_lib port:desktop-file-utils \ port:gtk3 \ port:exiv2 \ port:gstreamer1-gst-plugins-base \ port:lcms2 \ port:libraw \ port:libsoup \ port:libsecret \ port:librsvg \ port:webp \ port:json-glib depends_run port:yelp patchfiles patch-configure.ac.diff \ patch-gthumb-gth-toolbox.c.diff # 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 --enable-libraw \ --disable-clutter \ --disable-libbrasero \ --disable-webkit2 \ --enable-compile-warnings=minimum \ --disable-schemas-compile \ --disable-silent-rules universal_variant no variant clutter description {Enable use of clutter in slide show feature} { depends_lib-append port:clutter-gtk configure.args-delete --disable-clutter } variant debug description {Enable building of debugging messages} { configure.args-append --enable-debug } variant x11 { depends_lib-append port:xorg-libsm \ port:xorg-libice configure.args-replace --with-smclient=no --with-smclient=xsmp } default_variants +x11 post-activate { system "gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor" system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas" } livecheck.type gnome