# -*- 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

github.setup        jemalloc jemalloc 5.2.1
revision            1
license             BSD
platforms           darwin
categories          devel
maintainers         nomaintainer

description         a general-purpose scalable concurrent malloc(3) implementation
long_description \
    jemalloc is a general-purpose scalable concurrent malloc(3) implementation.

homepage            http://jemalloc.net

use_bzip2           yes

checksums           rmd160  9a0876956a96e1b2c7c25c15754241670f3d4609 \
                    sha256  34330e5ce276099e2e8950d9335db5a875689a4c6a56751ef3b1d8c537f887f6 \
                    size    554279

github.tarball_from releases

patchfiles          exception-specification.patch patch-quantum.diff

configure.universal_args-delete --disable-dependency-tracking

configure.args-append --disable-debug --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
