# -*- 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 active_variants 1.1 name pangomm-1.4 set my_name pangomm version 2.42.1 revision 0 # some build files are GPL-2+ but they are not installed categories x11 devel license LGPL-2.1+ maintainers {devans @dbevans} {mascguy @mascguy} openmaintainer description C++ interface to Pango. long_description pangomm is the official \ C++ interface for the Pango text layout library. homepage http://www.gtkmm.org/ set branch [join [lrange [split ${version} .] 0 1] .] master_sites gnome:sources/${my_name}/${branch}/ distname ${my_name}-${version} dist_subdir ${my_name} use_xz yes checksums rmd160 f6a26cc1bbdfc388e9df5dad12f75e9c4ec5f24d \ sha256 14bf04939930870d5cfa96860ed953ad2ce07c3fd8713add4a1bfe585589f40f \ size 882508 patchfiles-append \ patch-pango-include.diff depends_build-append \ path:bin/pkg-config:pkgconfig \ port:mm-common depends_lib-append \ path:lib/pkgconfig/pango.pc:pango \ path:lib/pkgconfig/cairomm-1.0.pc:cairomm \ path:lib/pkgconfig/glibmm-2.68.pc:glibmm \ port:libsigcxx2 use_autoreconf yes autoreconf.args -fvi # pangomm > 2.36.0 requires C++11 or better compiler.cxx_standard 2011 configure.args-append \ --disable-silent-rules # This port provides legacy bindings, previously provided by 'pangomm'. # So the latter must be deactivated first, if an older version is installed. # This logic added 2023-04-30; keep in place for at least 12 months. pre-activate { set port_conflict_name pangomm set port_conflict_ver_max "2.42.1" if { ![catch {set port_conflict_ver_info [lindex [registry_active ${port_conflict_name}] 0]}] } { set port_conflict_ver [lindex ${port_conflict_ver_info} 1] ui_info "${port_conflict_name} active version: ${port_conflict_ver}" if { [vercmp ${port_conflict_ver} ${port_conflict_ver_max}] <= 0 } { ui_info "Deactivating conflicting port: ${port_conflict_name}" registry_deactivate_composite ${port_conflict_name} "" [list ports_nodepcheck 1] } } } # dummy variants to ensure that this port gets rebuilt if # the corresponding variants for pango change variant x11 {} variant quartz {} default_variants +x11 +quartz if {[variant_isset x11]} { require_active_variants path:lib/pkgconfig/cairomm-1.0.pc:cairomm x11 require_active_variants path:lib/pkgconfig/pango.pc:pango x11 } if {[variant_isset quartz]} { require_active_variants path:lib/pkgconfig/cairomm-1.0.pc:cairomm quartz require_active_variants ath:lib/pkgconfig/pango.pc:pango quartz } livecheck.type none