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

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

gdb: use muniversal (#28444)

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