# -*- 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           cmake 1.1
PortGroup           github 1.0
PortGroup           legacysupport 1.1

# humalloc.cpp:140:26: error: '_SC_PHYS_PAGES' was not declared in this scope
legacysupport.newest_darwin_requires_legacy 10

github.setup        d99kris heapusage 867461cdb82313be185c918a7305e4b9974975b0
version             2.13
revision            0
categories          devel
license             BSD
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         ${name} is a light-weight tool for finding heap memory errors
long_description    {*}${description} in Linux and macOS applications.
checksums           rmd160  597677ba45a2458b5255df1980e11e9c9896e4e8 \
                    sha256  1ff3d1313c6355eeb6aa82baf94b8b4d036747a744d31ebca2c0776d5a0b9508 \
                    size    218441
github.tarball_from archive

compiler.c_standard 1999
compiler.cxx_standard 2011

# This is the default:
configure.args-append \
                    -DHU_MAX_CALL_STACK=20

# FIXME: a lot of tests fail, not only on powerpc:
# https://github.com/d99kris/heapusage/issues/20
test.run            yes
