# -*- 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 clang_dependency 1.0 PortGroup github 1.0 PortGroup makefile 1.0 PortGroup muniversal 1.1 name legacy-support categories devel platforms darwin maintainers {mascguy @mascguy} \ {fwright.net:fw @fhgwright} \ openmaintainer license MIT BSD APSL-2 description Installs wrapper headers to add missing functionality to legacy OSX versions. long_description {*}${description} # To roll back to 1.0.13 release due to issues with 1.1.0. Must now stay. epoch 1 # Primary release version set release_ver 1.2.4 # Binary compatibility version set compat_ver 1.0.0 subport ${name} { conflicts ${name}-devel github.setup macports macports-legacy-support ${release_ver} v revision 0 checksums rmd160 91ac38ae5a7ac40eaae84163a3bc658c24fd976b \ sha256 1f59de824f9769fde0f154173ed0296390288b6b0a79eb073d21e35aa8b0a1f6 \ size 77763 # install Tiger-specific fixes platform darwin 8 { # there is no system copyfile.h, so find local copy configure.cflags-append -isystem${worksrcpath}/tiger_only/include post-destroot { # use Tiger version of copyfile.h delete ${destroot}${prefix}/include/LegacySupport/copyfile.h # Copy all tiger specific 'binaries' and includes tiger_copy ${worksrcpath}/tiger_only/bin ${destroot}${prefix}/bin/ tiger_copy ${worksrcpath}/tiger_only/include ${destroot}${prefix}/include/LegacySupport/ } } } subport ${name}-devel { conflicts ${name} github.setup macports macports-legacy-support ed58217dc3cfcf267843c9ee395219826c805393 version 20240630 revision 0 livecheck.type none checksums rmd160 f23d5ae97d2961e4234bed44ae7efda4a7fcdd63 \ sha256 f6402b67066574d0080020a57fbba97c831b24d59b88abc5cb9e0d370bc72c78 \ size 88067 set v_split [split ${release_ver} .] set release_ver [lindex ${v_split} 0].[lindex ${v_split} 1].99 # Install Tiger-specific additions platform darwin 8 { build.target-append tiger-bins destroot.target-append install-tiger } } # Until this can be fixed disable parallel builds... # https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/141962/steps/install-port/logs/stdio use_parallel_build no # This port doesn't use C++ at all, except for a couple of tests which may # fail to build with a non-OS-default stdlib setting. Since the cxx_stdlib # selection is unimportant for the tests (which are actually only testing # the C-only interface to the library), we disable the cxx_stlib setting. # This also avoids depending on a MacPorts compiler in some OS versions. configure.cxx_stdlib post-extract { # until upstream can be fixed, do not include atexit symbols # under certain circumstances, infinite recursive loops can form delete ${worksrcpath}/src/macports_legacy_atexit.c } build.env-append LD=ld \ "LIPO=/usr/bin/lipo" \ PLATFORM=${os.major} \ SOCURVERSION=${release_ver} \ SOCOMPATVERSION=${compat_ver} foreach arch ${muniversal.architectures} { build.env.${arch}-append FORCE_ARCH=${arch} } test.env {*}${build.env} test.run yes test.target test proc tiger_copy {from to} { fs-traverse f [glob -directory ${from} *] { if {[file isdirectory ${f}]} { set base_dir [file tail ${f}] xinstall -d ${to}${base_dir} tiger_copy ${f} ${to}${base_dir} } else { ui_debug "Copying ${f} to ${to}" copy ${f} ${to} } } } if {![file exists ${prefix}/libexec/mpstats]} { notes " To help make sure your system continues to be well represented by MacPorts, especially\ if your system is not one of the latest macOS releases, please consider installing mpstats.\ It will periodically send an anonymous synopsis of your OS settings and installed ports.\ The information provided by this is useful to help determine how resources are allocated. You can install mpstats like this: sudo port install mpstats " }