source: trunk/dports/devel/gdb-apple/Portfile

Last change on this file was 144300, checked in by jeremyhu@…, 23 months ago

gdb-apple: Actually disable livecheck this time

  • 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 144300 2016-01-06 03:20:50Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            gdb-apple
8version         1824
9revision        1
10categories      devel
11license         GPL-2+
12maintainers     jeremyhu openmaintainer
13description     GDB: The GNU Project Debugger with Apple Modifications (based on 6.3.50)
14
15long_description \
16GDB, the GNU Project debugger, allows you to see what is going on 'inside' \
17another program while it executes -- or what another program was doing at the \
18moment it crashed.  GDB can do four main kinds of things (plus other things \
19in support of these) to help you catch bugs in the act: \
20    a) start your program, specifying anything that might affect its behavior, \
21    b) make your program stop on specified conditions, \
22    c) examine what has happened, when your program has stopped, \
23    d) change things in your program, so you can experiment with correcting \
24       the effects of one bug and go on to learn about another. \
25The program being debugged can be written in Ada, C, C++, Objective-C, \
26Pascal (and many other languages). Those programs might be executing on \
27the same machine as GDB (native) or on another machine (remote). GDB \
28can run on most popular UNIX and Microsoft Windows variants.
29
30homepage        http://opensource.apple.com/source/gdb
31platforms       darwin
32supported_archs x86_64 i386
33
34# xm.h can be created out of order
35use_parallel_build no
36
37distname        gdb-${version}
38master_sites    http://opensource.apple.com/tarballs/gdb
39
40checksums       rmd160  90290c3950dd06c1691a477b9ee302c00b681ed1 \
41                sha256  d25b056a826015e1e0ea338b9b8f03e40dce3ff4696faf95df259ae1a42698da
42
43depends_build   port:gettext port:zlib port:flex port:texinfo
44
45depends_lib     port:libiconv port:ncurses port:sqlite3
46
47patchfiles      patch-macosx-nat.c.diff
48
49worksrcdir      ${worksrcdir}/src
50
51post-patch {
52    # https://trac.macports.org/ticket/37790
53    reinplace "s/-mmacosx-version-min=10.7//" \
54        ${worksrcpath}/gdb/config/i386/macosx.mh \
55        ${worksrcpath}/libiberty/config/mh-macosx \
56        ${worksrcpath}/bfd/configure.host
57}
58
59configure.args \
60    --infodir=${prefix}/share/info \
61    --mandir=${prefix}/share/man \
62    --with-docdir=${prefix}/share/doc \
63    --program-suffix=-apple \
64    --disable-werror
65
66build.args \
67    MAKEINFO="/usr/bin/makeinfo" \
68    LEXLIB="${prefix}/lib/libfl.a"
69
70destroot.args \
71    MAKEINFO="/usr/bin/makeinfo" \
72    LEXLIB="${prefix}/lib/libfl.a"
73
74post-destroot {
75    system "chgrp procmod ${destroot}${prefix}/bin/*-apple"
76    system "chmod g+s ${destroot}${prefix}/bin/*-apple"
77
78    foreach info [glob -tails -directory ${destroot}${prefix}/share/info g*] {
79        move ${destroot}${prefix}/share/info/${info} ${destroot}${prefix}/share/info/apple-${info}
80    }
81
82    eval delete [glob ${destroot}${prefix}/lib/*.{,l}a]
83    eval delete [glob ${destroot}${prefix}/bin/{addr2line,ar,c*filt,nm,objcopy,objdump,ranlib,readelf,size,strings,strip}-apple]
84    eval delete [glob ${destroot}${prefix}/*darwin*]
85    eval delete [glob ${destroot}${prefix}/include/*.h]
86    eval delete [glob ${destroot}${prefix}/share/info/{annotate,bfd,stabs}.info]
87    eval delete [glob ${destroot}${prefix}/share/locale/*/LC_MESSAGES/{bfd,binutils,opcodes}.mo]
88}
89
90if {${os.platform} eq "darwin" && ${os.major} >= 12} {
91    notes "
92You will need to make sure /System/Library/LaunchDaemons/com.apple.taskgated.plist\
93has the '-p' option, e.g.
94            <key>ProgramArguments</key>
95            <array>
96                    <string>/usr/libexec/taskgated</string>
97                    <string>-sp</string>
98            </array>
99"
100}
101
102livecheck.type          none
Note: See TracBrowser for help on using the repository browser.