Ticket #7109: Portfile.patch
File Portfile.patch, 3.6 KB (added by adfernandes (Andrew Fernandes), 19 years ago) |
---|
-
Portfile
old new 1 # $Id: Portfile,v 1.6 2005/08/11 21:33:14 rshaw Exp $ 1 # $Id: $ 2 2 3 PortSystem 1.0 3 4 4 5 name aquaterm 5 version 1.0. b26 revision 16 version 1.0.0 7 revision 0 7 8 categories aqua math science 8 9 maintainers darwinports@opendarwin.org 9 10 description AquaTerm is a viewer that displays vector graphics on Mac OS X … … 16 17 homepage http://aquaterm.sourceforge.net/ 17 18 master_sites sourceforge 18 19 distname ${name}_src.${version} 19 checksums md5 18208162ad73de4b69ff5e884240eb2e 20 worksrcdir ${name}_src 20 checksums md5 aquaterm_src.1.0.0.tar.gz 937461dfefb62178bee960bfe88e0991 \ 21 sha1 aquaterm_src.1.0.0.tar.gz b45f84265710fb39efa6ad8dd7b89bb5b00827b2 \ 22 rmd160 aquaterm_src.1.0.0.tar.gz e89074ad5ab7ee610b3bc620143e895a53d8392f \ 23 worksrcdir . 21 24 22 25 patch { 23 26 # gcc 4 cannot find aquaterm/AQTAdapter.h in ObjC source files. 24 27 # adding a -I would be the right thing to do, but I'm not sure about 25 28 # how to patch the ProjectBuilder project. 26 29 reinplace "s|#import <aquaterm/AQTAdapter.h>|#import \"AQTAdapter.h\"|g" \ 27 ${work srcpath}/aquaterm/Demo.m30 ${workpath}/aquaterm/Demo.m 28 31 reinplace "s|#import <aquaterm/AQTAdapter.h>|#import \"AQTAdapter.h\"|g" \ 29 ${work srcpath}/aquaterm/Bugs.m32 ${workpath}/aquaterm/Bugs.m 30 33 reinplace "s|#import <aquaterm/AQTAdapter.h>|#import \"AQTAdapter.h\"|g" \ 31 ${work srcpath}/aquaterm/Timing.m34 ${workpath}/aquaterm/Timing.m 32 35 } 33 36 34 37 configure { 35 cd ${work srcpath}/${name}38 cd ${workpath}/${name} 36 39 reinplace "s|/Users/per/Documents/Source/aquaterm/||" \ 37 40 AquaTerm.pbproj/project.pbxproj 38 41 reinplace "s|/tmp/AquaTerm.dst||" \ … … 42 45 file mkdir build/include 43 46 system "ln -s ../.. build/include/aquaterm" 44 47 45 cd ${work srcpath}/adapters48 cd ${workpath}/adapters 46 49 reinplace "s|/usr/local|${prefix}|g" \ 47 50 pgplot/ChangeLog pgplot/g77_gcc_AQT.conf pgplot/xlf_gcc_AQT.conf 48 51 reinplace "s|\$(HOME)|${prefix}|g" \ … … 61 64 } 62 65 63 66 build.type pbx 64 build.dir ${work srcpath}/${name}67 build.dir ${workpath}/${name} 65 68 build.target -buildstyle Deployment -target AquaTerm 66 69 post-build { 67 70 system "install_name_tool -id ${prefix}/lib/libaquaterm.1.dylib \ 68 ${work srcpath}/${name}/${xcodebuilddir}/libaquaterm.1.0.0.dylib"69 system "install_name_tool -change ${prefix}/lib/libaquaterm.1.0.0.dylib${prefix}/lib/libaquaterm.1.dylib \70 ${work srcpath}/${name}/${xcodebuilddir}/AquaTerm.app/Contents/MacOS/AquaTerm"71 ${workpath}/${name}/${xcodebuilddir}/AquaTerm.framework/Versions/Current/AquaTerm" 72 system "install_name_tool -change /Library/Frameworks/AquaTerm.framework/Versions/A/AquaTerm ${prefix}/lib/libaquaterm.1.dylib \ 73 ${workpath}/${name}/${xcodebuilddir}/AquaTerm.app/Contents/MacOS/AquaTerm" 71 74 } 72 75 73 76 destroot { 74 cd ${work srcpath}/${name}77 cd ${workpath}/${name} 75 78 xinstall -d -m 0755 ${destroot}${prefix}/include/${name} 76 79 xinstall -m 0644 AQTAdapter.h aquaterm.h \ 77 80 ${destroot}${prefix}/include/${name} 78 81 79 cd ${worksrcpath}/${name}/${xcodebuilddir} 82 cd ${workpath}/${name}/${xcodebuilddir} 83 system "ln AquaTerm.framework/Versions/Current/AquaTerm libaquaterm.1.0.0.dylib" 80 84 xinstall -m 0755 libaquaterm.1.0.0.dylib ${destroot}${prefix}/lib 81 85 system "ln -s libaquaterm.1.0.0.dylib \ 82 86 ${destroot}${prefix}/lib/libaquaterm.dylib" … … 85 89 xinstall -d -m 0755 ${destroot}/Applications/DarwinPorts 86 90 system "cp -R AquaTerm.app ${destroot}/Applications/DarwinPorts" 87 91 88 cd ${work srcpath}/adapters92 cd ${workpath}/adapters 89 93 xinstall -d -m 0755 ${destroot}${prefix}/share/${name} 90 94 system "cp -R c fortran gnuplot pgplot plplot \ 91 95 ${destroot}${prefix}/share/${name}"