# -*- 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 compiler_blacklist_versions 1.0 PortGroup github 1.0 github.setup dino dino 0.4.4 v revision 0 categories net www license GPL-2 maintainers {@barracuda156 gmail.com:vital.had} openmaintainer description Modern XMPP (Jabber) chat client long_description {*}${description} using GTK+/Vala. homepage https://dino.im checksums rmd160 b6f121c881191660e6632979010abb5e8ffefbb2 \ sha256 29f37dc3a54fb123f223964d01de76fcea038ca6d134aa35b75c62b07acb9d03 \ size 884410 github.tarball_from archive # FIXME: on 10.6 it builds and launches, but trying to register an account results in an error: # (dino:74601): Pango-WARNING **: 23:01:36.818: Invalid UTF-8 string passed to pango_layout_set_text() # https://github.com/dino/dino/issues/1593 depends_build-append \ path:bin/cmake:cmake \ port:gettext \ port:ninja \ path:bin/pkg-config:pkgconfig \ path:bin/vala:vala depends_lib-append port:desktop-file-utils \ path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \ port:gettext-runtime \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ path:lib/pkgconfig/gnutls.pc:gnutls \ path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \ port:gpgme \ port:gstreamer1 \ port:gstreamer1-gst-plugins-base \ path:lib/pkgconfig/gtk+-4.0.pc:gtk4 \ path:lib/pkgconfig/icu-uc.pc:icu \ port:libadwaita \ port:libgcrypt \ port:libgee \ port:libnice \ port:libsignal-protocol-c \ path:lib/pkgconfig/libsoup-2.4.pc:libsoup \ port:libsrtp \ port:qrencode \ port:sqlite3 # https://github.com/dino/dino/issues/1602 patchfiles-append patch-fix-openpgp.diff # CI builds ignore prefix passed to configure as an argument. patchfiles-append patch-fix-install.diff post-patch { reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/configure } compiler.blacklist-append \ {*gcc-[34].*} {clang < 400} configure.args-append \ --disable-fast-vapi \ --prefix=${prefix} \ --with-libsoup3 if {${os.platform} eq "darwin" \ && [string match *clang* ${configure.compiler}]} { configure.cflags-append \ -Wno-error=implicit-function-declaration if {${os.major} > 21} { configure.cflags-append \ -Wno-error=incompatible-function-pointer-types } } if {[string match *gcc* ${configure.compiler}]} { # gcc does not support '-Wno-incompatible-pointer-types-discards-qualifiers' patchfiles-append \ patch-gcc-flags.diff } post-destroot { # Fix dylibs: foreach dylib [ exec find ${destroot}${prefix}/lib -name "\*.dylib" ] { regsub ":$" ${dylib} "" destroot_dylib_path regsub ${destroot} ${destroot_dylib_path} "" dylib_path system "install_name_tool -id ${dylib_path} ${destroot_dylib_path}" system "install_name_tool -change @rpath/libcrypto-vala.0.dylib ${prefix}/lib/libcrypto-vala.dylib \ ${destroot_dylib_path}" system "install_name_tool -change @rpath/libdino.0.dylib ${prefix}/lib/libdino.dylib \ ${destroot_dylib_path}" system "install_name_tool -change @rpath/libxmpp-vala.0.dylib ${prefix}/lib/libxmpp-vala.dylib \ ${destroot_dylib_path}" system "install_name_tool -change @rpath/libqlite.0.dylib ${prefix}/lib/libqlite.dylib \ ${destroot_dylib_path}" } # Fix linking of the binary: foreach dlink { libdino.0.dylib libxmpp-vala.0.dylib libqlite.0.dylib } { system "install_name_tool -change @rpath/${dlink} ${prefix}/lib/${dlink} \ ${destroot}${prefix}/bin/${name}" } } # https://trac.macports.org/ticket/70137 notes " If you get an error upon launching the app,\ try setting GSK_RENDERER=cairo in the environment.\ You may also add it into a shell config file. " post-activate { system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" }