source: trunk/dports/devel/valgrind/Portfile

Last change on this file was 154228, checked in by raimue@…, 9 months ago

valgrind{,-devel}: update to version 3.12/3.13

Update valgrind to version 3.12.0.
Update valgrind-devel to revision 16104, VEX 3283.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# -*- 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
2# $Id: Portfile 154228 2016-10-24 20:41:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           mpi 1.0
6
7name                valgrind
8categories          devel
9platforms           darwin
10supported_archs     i386 x86_64
11license             GPL-2
12maintainers         raimue \
13                    openmaintainer
14
15description         A powerful open-source memory debugger
16long_description \
17    Valgrind is a powerful open-source memory debugger. When valgrind is \
18    attached to a program, it intercepts calls to malloc/new/free/delete and \
19    all memory operations are checked for invalid read or write.
20
21homepage            http://valgrind.org
22master_sites        http://valgrind.org/downloads/
23
24compilers.choose    cc cxx
25mpi.setup           -gcc44 -gcc45 -gcc46
26
27depends_build       bin:perl:perl5
28# Ignore trace reports about boost, Qt and OpenMP
29# as they are only used for tests
30
31configure.args      --without-mpicc
32
33if {${build_arch} eq "i386"} {
34    configure.args-append --enable-only32bit
35} elseif {${build_arch} eq "x86_64"} {
36    configure.args-append --enable-only64bit
37}
38
39# valgrind sets up -arch by itself, adding our own interferes with the build
40configure.cc_archflags {}
41configure.ld_archflags {}
42
43variant universal {
44    configure.args-delete --enable-only32bit --enable-only64bit
45    configure.universal_cflags {}
46    configure.universal_cxxflags {}
47    configure.universal_ldflags {}
48
49    pre-configure {
50        if {${build_arch} eq "i386"} {
51            # See #25684 and https://bugs.kde.org/show_bug.cgi?id=243362
52            ui_error "${subport} does not build +universal on a 32-bit only CPU!"
53            return -code error "unsupported CPU"
54        }
55    }
56}
57
58pre-patch {
59    if {[gcc_variant_isset]} {
60        patchfiles-append patch-gcc.diff
61    }
62}
63
64pre-configure {
65    if {[mpi_variant_isset]} {
66        configure.args-delete --without-mpicc
67        configure.args-append --with-mpicc=${mpi.cc}
68    }
69}
70
71if {$subport eq $name} {
72    version             3.12.0
73    revision            0
74    conflicts           valgrind-devel
75
76    checksums           md5     6eb03c0c10ea917013a7622e483d61bb \
77                        sha256  67ca4395b2527247780f36148b084f5743a68ab0c850cb43e4a5b4b012cf76a1 \
78                        rmd160  25d413bc0594bdf4d26ff19d031151a4dfe87920
79
80    use_bzip2           yes
81
82    # Avoid conflict of faq.html and FAQ.html, #30541
83    extract.post_args-append --exclude=${distname}/docs/html/FAQ.html
84
85    pre-fetch {
86        if {${os.platform} eq "darwin" && (${os.major} < 9 || ${os.major} > 16)} {
87            ui_error "${subport} @${version} is only compatible with macOS versions from 10.5 up to 10.12."
88            return -code error "incompatible macOS version"
89        }
90    }
91
92    patchfiles-append   patch-bzero.diff
93
94    livecheck.type      regex
95    livecheck.url       ${homepage}
96    livecheck.regex     ${name}-(\\d(?:\\.\\d+)+)
97}
98
99subport valgrind-devel {
100    svn.revision        16104
101    set vex_revision    3283
102    version             3.13.0-r${svn.revision}
103    revision            0
104    conflicts           valgrind
105
106    fetch.type      svn
107    svn.url         svn://svn.valgrind.org/valgrind/trunk
108    svn.args        --ignore-externals
109    worksrcdir      trunk
110
111    post-fetch {
112        system -W ${worksrcpath} "${svn.cmd} ${svn.pre_args} ${svn.method} svn://svn.valgrind.org/vex/trunk@${vex_revision} VEX"
113    }
114
115    pre-fetch {
116        if {${os.platform} eq "darwin" && (${os.major} < 9 || ${os.major} > 16)} {
117            ui_error "${subport} @${version} is only compatible with macOS versions from 10.5 up to 10.12."
118            return -code error "incompatible macOS version"
119        }
120    }
121
122    use_autoreconf      yes
123
124    livecheck.type none
125}
Note: See TracBrowser for help on using the repository browser.