# -*- 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 mpi 1.0 name valgrind categories devel platforms darwin supported_archs i386 x86_64 license GPL-2 maintainers {raimue @raimue} \ openmaintainer description A powerful open-source memory debugger long_description \ Valgrind is a powerful open-source memory debugger. When valgrind is \ attached to a program, it intercepts calls to malloc/new/free/delete and \ all memory operations are checked for invalid read or write. homepage http://valgrind.org master_sites http://sourceware.org/pub/valgrind/ compilers.choose cc cxx mpi.setup -gcc44 -gcc45 -gcc46 depends_build bin:perl:perl5 # Ignore trace reports about boost, Qt and OpenMP # as they are only used for tests configure.args --without-mpicc if {${build_arch} eq "i386"} { configure.args-append --enable-only32bit } elseif {${build_arch} eq "x86_64"} { configure.args-append --enable-only64bit } # valgrind sets up -arch by itself, adding our own interferes with the build configure.cc_archflags {} configure.ld_archflags {} variant universal { configure.args-delete --enable-only32bit --enable-only64bit configure.universal_cflags {} configure.universal_cxxflags {} configure.universal_ldflags {} pre-configure { if {${build_arch} eq "i386"} { # See #25684 and https://bugs.kde.org/show_bug.cgi?id=243362 ui_error "${subport} does not build +universal on a 32-bit only CPU!" return -code error "unsupported CPU" } } } pre-patch { if {[gcc_variant_isset]} { patchfiles-append patch-gcc.diff } } pre-configure { if {[mpi_variant_isset]} { configure.args-delete --without-mpicc configure.args-append --with-mpicc=${mpi.cc} } } if {$subport eq $name} { version 3.13.0 revision 1 conflicts valgrind-devel checksums md5 817dd08f1e8a66336b9ff206400a5369 \ sha256 d76680ef03f00cd5e970bbdcd4e57fb1f6df7d2e2c071635ef2be74790190c3b \ rmd160 809dcd3c656633cb9e1153eec491dce7d3e532c0 use_bzip2 yes # Avoid conflict of faq.html and FAQ.html, #30541 extract.post_args-append --exclude=${distname}/docs/html/FAQ.html pre-fetch { if {${os.platform} eq "darwin" && (${os.major} < 9 || [vercmp $xcodeversion 9.0] > 0)} { ui_error "${subport} @${version} is only compatible with macOS versions from 10.5 up and Xcode8 or less." ui_error "Please install valgrind-devel to work with Xcode9 until version 3.14 is released." return -code error "incompatible macOS version" } } livecheck.type regex livecheck.url ${homepage} livecheck.regex ${name}-(\\d(?:\\.\\d+)+) } subport valgrind-devel { epoch 1 set date 2017-11-21 version 3.14.0-r${date} conflicts valgrind fetch.type git git.url http://sourceware.org/git/valgrind.git git.branch 0a5ff8c309d18778bb919a1a661a1976b04a6483 pre-fetch { if {${os.platform} eq "darwin" && ${os.major} < 9 } { ui_error "${subport} @${version} is only compatible with macOS versions from 10.5 up." return -code error "incompatible macOS version" } } use_autoreconf yes livecheck.type none }