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

Last change on this file since 88366 was 88366, checked in by ryandesign@…, 6 years ago

gdb: use llvm-gcc-4.2 instead of clang; see #32161

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