Ticket #12401: Portfile.diff

File Portfile.diff, 2.1 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago)
  • Portfile

    old new  
    44
    55name                    aquaterm
    66version                 1.0.1
    7 revision                0
     7revision                1
    88categories              aqua math science
    99maintainers             davidm@astro.berkeley.edu
    1010description             AquaTerm is a viewer that displays vector graphics on Mac OS X
     
    2222                                rmd160 aquaterm_src.1.0.1.tar.gz 24410589dd8c3071b6e0d5e652b7d92933d86b5f
    2323worksrcdir              .
    2424
    25 patch {
    26         # Change default location of AquaTerm.app to avoid requiring the
    27         # use of AQUATERM_PATH.
    28         reinplace "s|AquaTerm.app|MacPorts/AquaTerm.app|g" \
    29                 ${workpath}/aquaterm/AQTClientManager.m
    30 }
     25#patch {
     26#       # Change default location of AquaTerm.app to avoid requiring the
     27#       # use of AQUATERM_PATH.
     28#       reinplace "s|AquaTerm.app|MacPorts/AquaTerm.app|g" \
     29#               ${workpath}/aquaterm/AQTClientManager.m
     30#}
    3131
    3232configure {
    3333        cd ${workpath}/${name}
     
    6868
    6969build.type              pbx
    7070build.dir               ${workpath}/${name}
    71 build.target    -buildstyle Deployment -target AquaTerm
    72 post-build {
    73         system "install_name_tool -id ${prefix}/lib/libaquaterm.1.dylib \
    74                 ${workpath}/${name}/${xcodebuilddir}/AquaTerm.framework/Versions/Current/AquaTerm"
    75         system "install_name_tool -change /Library/Frameworks/AquaTerm.framework/Versions/A/AquaTerm ${prefix}/lib/libaquaterm.1.dylib \
    76                 ${workpath}/${name}/${xcodebuilddir}/AquaTerm.app/Contents/MacOS/AquaTerm"
    77 }
     71build.target -buildstyle Deployment -target AquaTerm \
     72             DSTROOT=${destroot} \
     73             INSTALL_PATH=/Applications/MacPorts \
     74             DYLIB_INSTALL_NAME_BASE=${prefix}/Library/Frameworks
    7875
    7976destroot {
    8077        cd ${workpath}/${name}
     
    9188                ${destroot}${prefix}/lib/libaquaterm.1.dylib"
    9289        xinstall -d -m 0755 ${destroot}/Applications/MacPorts
    9390        system "cp -R AquaTerm.app ${destroot}/Applications/MacPorts"
    94         xinstall -d -m 0755 ${destroot}/Library/Frameworks
    95         system "cp -R AquaTerm.framework ${destroot}/Library/Frameworks"
     91        xinstall -d -m 0755 ${destroot}${prefix}/Library/Frameworks
     92        system "cp -R AquaTerm.framework ${destroot}${prefix}/Library/Frameworks"
    9693
    9794        cd ${workpath}/adapters
    9895        xinstall -d -m 0755 ${destroot}${prefix}/share/${name}