# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 83385 2011-08-31 01:52:26Z dports@macports.org $

PortSystem 1.0

name            google-perftools
version         1.7
description     Fast, multi-threaded malloc() and nifty performance analysis tools
long_description    These tools are for use by developers so that they can create \
    more robust applications. Especially of use to those developing multi-threaded \
    applications in C++ with templates. Includes TCMalloc, heap-checker, heap-profiler \
    and cpu-profiler.
maintainers     brett openmaintainer
license         BSD
categories      devel
platforms       darwin
homepage        http://code.google.com/p/google-perftools/
master_sites    http://google-perftools.googlecode.com/files/

checksums       sha1    e3a65f71aee9270572f7aafa421858e39da1a9a8 \
                rmd160  176451ef2bf6c9090f2446678ff2cca957eb4f42

configure.args      --mandir=${prefix}/share/man
# http://code.google.com/p/google-perftools/issues/detail?id=66
if {![variant_isset universal] && $build_arch == "x86_64" ||
    [variant_isset universal] && [string match *x86_64* $universal_archs]} {
    configure.args-append --enable-frame-pointers \
                          --build=x86_64-apple-${os.platform}${os.major}
}
