# -*- 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 PortGroup compiler_blacklist_versions 1.0 name metacity version 3.22.0 set branch [join [lrange [split ${version} .] 0 1] .] description A window manager for the adult in you. long_description ${description} maintainers devans openmaintainer categories gnome x11-wm license GPL-2+ platforms darwin homepage https://wiki.gnome.org/Projects/Metacity master_sites gnome:sources/${name}/${branch} use_xz yes checksums rmd160 7a83e5942dab6161ee26fba8197c95c6a9ff19b2 \ sha256 860fed03839d0f1710f13516a747ecb1a620f0a72c4798794bfd1196e1bc5437 depends_build port:pkgconfig \ port:itstool \ port:autoconf \ port:automake \ port:libtool depends_lib port:desktop-file-utils \ port:gtk3 \ port:startup-notification \ port:xorg-libXcomposite \ port:xorg-libXfixes \ port:xrender \ port:xorg-libXdamage \ port:xorg-libXcursor \ port:xorg-libXinerama \ port:xorg-libXext \ port:xorg-libxkbfile \ port:xorg-libXrandr \ port:xorg-libsm \ port:xorg-libice \ port:libgtop \ port:libcanberra \ port:gsettings-desktop-schemas \ port:zenity depends_run port:gnome-settings-daemon patchfiles patch-no-as-needed.diff use_autoreconf yes autoreconf.args -fvi configure.args --x-includes=${prefix}/include \ --x-libraries=${prefix}/lib \ --enable-debug \ --disable-compile-warnings \ --disable-silent-rules \ --disable-schemas-compile # 'clang < 300' is a guess. We basically need support for C11 redefinition of typedefs. # clang-75 definitely fails. # core/display-private.h:45: error: redefinition of typedef ‘MetaKeyBinding’ # ./include/types.h:29: error: previous declaration of ‘MetaKeyBinding’ was here compiler.blacklist *gcc-4* {clang < 300} configure.cflags-append -std=gnu11 post-activate { system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas" system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" } livecheck.type gnome