source: trunk/dports/devel/ddd/Portfile @ 3824

Last change on this file since 3824 was 3824, checked in by jkh, 17 years ago

Add -no-cpp-precomp due to the fact that its absence breaks Panther.

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1# $Id: Portfile,v 1.5 2003/10/27 07:24:16 jkh Exp $
2
3PortSystem 1.0
4name            ddd
5version         3.3.1
6categories      devel
7maintainers     jkh@opendarwin.org
8description     Data Display Debugger
9long_description DDD is a graphical front-end for GDB and other command-line debuggers.
10homepage        http://www.gnu.org/software/ddd/
11platforms       darwin
12master_sites    ftp://ftp.gnu.org/gnu/ddd/
13checksums       md5 38589618d7cd02a03d062bb116bbf1d2
14depends_lib     lib:libXm.3:openMotif
15patchfiles      patch-combo patch-logplayer.C
16
17# Use darwin variant.  Other OSes with gcc > 3.2 will need to come up with
18# their own hack since this code doesn't compile with gcc 3.3.
19variant darwin {
20        configure.env CC=gcc3 CXX=c++3 CFLAGS=-no-cpp-precomp
21}
22
23post-configure {
24        system "for i in `grep -rl '^#pragma implementation' ${worksrcpath}` ; do sed -e 's:^#pragma implementation:// #pragma implementation:' < \$i > \$i.new && mv \$i.new \$i; done"
25        system "for i in `grep -rl '^#pragma interface' ${worksrcpath}` ; do sed -e 's:^#pragma interface:// #pragma interface:' < \$i > \$i.new && mv \$i.new \$i; done"
26}
Note: See TracBrowser for help on using the repository browser.