Changeset 12896 for trunk/dports/aqua


Ignore:
Timestamp:
Jul 1, 2005, 11:37:47 PM (14 years ago)
Author:
pguyot (Paul Guyot)
Message:

Fixed aquaterm port on 10.4:

  • gcc 4.0 incompatibility.
  • xcode 2.1 build directory.

Bug: #3639
Submitted by:
Reviewed by:
Approved by:
Obtained from:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/aquaterm/Portfile

    r10928 r12896  
    1 # $Id: Portfile,v 1.3 2005/02/11 21:27:03 rshaw Exp $
     1# $Id: Portfile,v 1.4 2005/07/01 23:37:47 pguyot Exp $
    22PortSystem              1.0
    33
    44name                    aquaterm
    55version                 1.0.b2
     6revision                1
    67categories              aqua math science
    78maintainers             rshaw@opendarwin.org
     
    1819checksums               md5 18208162ad73de4b69ff5e884240eb2e
    1920worksrcdir              ${name}_src
     21
     22patch {
     23        # gcc 4 cannot find aquaterm/AQTAdapter.h in ObjC source files.
     24        # adding a -I would be the right thing to do, but I'm not sure about
     25        # how to patch the ProjectBuilder project.
     26        reinplace "s|#import <aquaterm/AQTAdapter.h>|#import \"AQTAdapter.h\"|g" \
     27                ${worksrcpath}/aquaterm/Demo.m
     28        reinplace "s|#import <aquaterm/AQTAdapter.h>|#import \"AQTAdapter.h\"|g" \
     29                ${worksrcpath}/aquaterm/Bugs.m
     30        reinplace "s|#import <aquaterm/AQTAdapter.h>|#import \"AQTAdapter.h\"|g" \
     31                ${worksrcpath}/aquaterm/Timing.m
     32}
    2033
    2134configure {
     
    4154}
    4255
     56set xcodebuilddir               build
     57platform darwin 8 {
     58        set xcodebuilddir       build/Deployment
     59}
    4360build.type              pbx
    4461build.dir               ${worksrcpath}/${name}
     
    4663post-build {
    4764        system "install_name_tool -id ${prefix}/lib/libaquaterm.1.dylib \
    48                 ${worksrcpath}/${name}/build/libaquaterm.1.0.0.dylib"
     65                ${worksrcpath}/${name}/${xcodebuilddir}/libaquaterm.1.0.0.dylib"
    4966        system "install_name_tool -change ${prefix}/lib/libaquaterm.1.0.0.dylib ${prefix}/lib/libaquaterm.1.dylib \
    50                 ${worksrcpath}/${name}/build/AquaTerm.app/Contents/MacOS/AquaTerm"
     67                ${worksrcpath}/${name}/${xcodebuilddir}/AquaTerm.app/Contents/MacOS/AquaTerm"
    5168}
    5269
     
    5774                ${destroot}${prefix}/include/${name}
    5875
    59         cd ${worksrcpath}/${name}/build
     76        cd ${worksrcpath}/${name}/${xcodebuilddir}
    6077        xinstall -m 0755 libaquaterm.1.0.0.dylib ${destroot}${prefix}/lib
    6178        system "ln -s libaquaterm.1.0.0.dylib \
Note: See TracChangeset for help on using the changeset viewer.