source: trunk/dports/devel/gdb/Portfile @ 91326

Last change on this file since 91326 was 91326, checked in by jeremyhu@…, 7 years ago

gdb: Fix a memset bug, and build with clang

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
RevLine 
[48998]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 91326 2012-03-29 23:13:00Z jeremyhu@macports.org $
3
4PortSystem      1.0
[89680]5PortGroup       muniversal 1.0
[48998]6
7name            gdb
[81783]8version         7.3
[91326]9revision        1
[48998]10categories      devel
11maintainers     dweber openmaintainer
12description     GDB: The GNU Project Debugger
13
14long_description \
[49020]15GDB, the GNU Project debugger, allows you to see what is going on 'inside' \
16another program while it executes -- or what another program was doing at the \
17moment it crashed.  GDB can do four main kinds of things (plus other things \
18in support of these) to help you catch bugs in the act: \
19    a) start your program, specifying anything that might affect its behavior, \
20    b) make your program stop on specified conditions, \
21    c) examine what has happened, when your program has stopped, \
22    d) change things in your program, so you can experiment with correcting \
23       the effects of one bug and go on to learn about another. \
24The program being debugged can be written in Ada, C, C++, Objective-C, \
25Pascal (and many other languages). Those programs might be executing on \
26the same machine as GDB (native) or on another machine (remote). GDB \
[49008]27can run on most popular UNIX and Microsoft Windows variants.
[48998]28
29homepage        http://www.gnu.org/software/gdb/
30platforms       darwin
31
32master_sites    gnu
33
34use_bzip2       yes
35
[81783]36checksums       sha1    fefd90275d6decdca00c5c29c533e2ef3d439664 \
37                rmd160  3df9a15e2d276f4f7f30e5d2a7d86a8c63f30a34
[48998]38
[66289]39depends_build   port:gettext
[49020]40
[66289]41if {${configure.build_arch} == "ppc" || ${configure.build_arch} == "ppc64"} {
42    notes "${name} does not support building on ${configure.build_arch}."
43    pre-fetch {
44        ui_error "${name} does not support building on ${configure.build_arch}."
45        return -code error "Unsupported architecture."
46    }
47}
48
[91326]49patch.pre_args -p1
50patchfiles buggy-memset.patch
51
[49020]52configure.args-append \
53    --infodir=${prefix}/share/info \
54    --mandir=${prefix}/share/man \
55    --with-docdir=${prefix}/share/doc \
[80859]56    --program-prefix=g
[49020]57
[66289]58configure.cflags-append     -I${prefix}/include
59configure.cxxflags-append   -I${prefix}/include
60
[91326]61if {${configure.compiler} == "clang"} {
62    configure.cflags-append -Wno-unused-value
63}
64
[66289]65post-destroot {
[80859]66    system "chgrp procmod ${destroot}${prefix}/bin/ggdb*"
67    system "chmod g+s ${destroot}${prefix}/bin/ggdb*"
68
[80861]69    foreach info [glob -tails -directory ${destroot}${prefix}/share/info g*] {
70        move ${destroot}${prefix}/share/info/${info} ${destroot}${prefix}/share/info/g${info}
71    }
72    move ${destroot}${prefix}/share/info/standards.info ${destroot}${prefix}/share/info/ggdb-standards.info
[80859]73
74    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
75    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
76        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
77    }
[51884]78}
[81846]79
80livecheck.type  regex
81livecheck.url   http://ftp.gnu.org/gnu/gdb/
82livecheck.regex gdb-(\\d+(?:\\.\\d+)+)\\.tar
Note: See TracBrowser for help on using the repository browser.