# -*- 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 github 1.0 PortGroup muniversal 1.1 name jemalloc license BSD categories devel maintainers {@barracuda156 gmail.com:vital.had} openmaintainer description a general-purpose scalable concurrent malloc(3) implementation long_description ${name} is {*}${description} homepage https://jemalloc.net if {${subport} eq ${name}} { github.setup jemalloc jemalloc 5.3.0 revision 4 conflicts jemalloc-devel checksums rmd160 ff8f2958d88705927b7566d219763dda2eb7edda \ sha256 2db82d1e7119df3e71b7640219b6dfe84789bc0537983c3b7ac4f7189aecfeaa \ size 736023 github.tarball_from releases use_bzip2 yes patchfiles-append patch-quantum.diff \ patch-Makefile.diff # building as x86_64 on an arm64 Mac gives an error if rosetta is installed # https://trac.macports.org/ticket/65671 patchfiles-append patch-universal.diff } subport jemalloc-devel { github.setup jemalloc jemalloc 92aa52c0625d35ca1c30e7fc913d7c92c9518f9e version 2024.03.15 conflicts jemalloc checksums rmd160 167ca7cb6975cbdfde50ce5c2028ce1c8b3af9f3 \ sha256 162509976d5391d96f5337e061e760986fd49acaf25024a713030eef6c45b681 \ size 835321 github.tarball_from archive use_autoreconf yes } compiler.cxx_standard 2014 configure.args-append --with-jemalloc-prefix= # provide a compatibility symlink with the older name post-destroot { ln -s jeprof ${destroot}${prefix}/bin/${name}-prof } test.run yes test.target check