source: trunk/dports/aqua/aquaterm/Portfile @ 22237

Last change on this file since 22237 was 22237, checked in by pguyot@…, 13 years ago

aqua/aquaterm
Patch submitted by David MacMahon:
Bump to 1.0.1.
Make the library to refer to /Application/MacPorts/ instead of /Application/

Give maintainership to David MacMahon
Thanks, Dave!

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# $Id: Portfile 22237 2007-02-23 06:38:46Z pguyot@kallisys.net $
2
3PortSystem              1.0
4
5name                    aquaterm
6version                 1.0.1
7revision                0
8categories              aqua math science
9maintainers             davidm@astro.berkeley.edu
10description             AquaTerm is a viewer that displays vector graphics on Mac OS X
11long_description        AquaTerm is a viewer app that displays vector \
12                                        graphics.  Other apps connect to AquaTerm using a \
13                                        simple remote object messaging protocol.  By adding \
14                                        "adapters" to legacy code very little coding is \
15                                        needed to bring it to OS X.
16platforms               darwin
17homepage                http://aquaterm.sourceforge.net/
18master_sites    sourceforge
19distname                ${name}_src.${version}
20checksums               md5 aquaterm_src.1.0.1.tar.gz e9d3ecdfe770d6f09a748add9886d1a9 \
21                                sha1 aquaterm_src.1.0.1.tar.gz d5770bb3a95cfae21c5c39c96171a52d9af8ae24 \
22                                rmd160 aquaterm_src.1.0.1.tar.gz 24410589dd8c3071b6e0d5e652b7d92933d86b5f
23worksrcdir              .
24
25patch {
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}
31
32configure {
33        cd ${workpath}/${name}
34        reinplace "s|/Users/per/Documents/Source/aquaterm/||" \
35                AquaTerm.pbproj/project.pbxproj
36        reinplace "s|/tmp/AquaTerm.dst||" \
37                AquaTerm.pbproj/project.pbxproj
38        reinplace "s|/usr/local/lib|${prefix}/lib|" \
39                AquaTerm.pbproj/project.pbxproj
40        file mkdir build/include
41        system "ln -s ../.. build/include/aquaterm"
42
43        cd ${workpath}/adapters
44        reinplace "s|/usr/local|${prefix}|g" \
45                pgplot/ChangeLog pgplot/g77_gcc_AQT.conf pgplot/xlf_gcc_AQT.conf
46        reinplace "s|\$(HOME)|${prefix}|g" \
47                c/Makefile fortran/Makefile
48        reinplace "s|/*<PREFIX>|${prefix}|g" \
49                pgplot/g77_cc_AQT.conf pgplot/g77_gcc_AQT.conf pgplot/xlf_gcc_AQT.conf
50        reinplace "s|/sw|${prefix}|g" \
51                pgplot/ReadMe
52}
53
54set xcodebuilddir               build
55
56platform darwin 7 {
57         post-extract {
58                      cd ${workpath}/${name}
59                      file link -symbolic AquaTermFwk-Info.plist AquaTerm.framework-Info.plist
60        }
61}
62
63platform darwin 8 {
64if {$xcodeversion == "2.1"} {
65        set xcodebuilddir       build/Deployment
66}
67}
68
69build.type              pbx
70build.dir               ${workpath}/${name}
71build.target    -buildstyle Deployment -target AquaTerm
72post-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}
78
79destroot {
80        cd ${workpath}/${name}
81        xinstall -d -m 0755 ${destroot}${prefix}/include/${name}
82        xinstall -m 0644 AQTAdapter.h aquaterm.h \
83                ${destroot}${prefix}/include/${name}
84
85        cd ${workpath}/${name}/${xcodebuilddir}
86        system "ln AquaTerm.framework/Versions/Current/AquaTerm libaquaterm.${version}.dylib"
87        xinstall -m 0755 libaquaterm.${version}.dylib ${destroot}${prefix}/lib
88        system "ln -s libaquaterm.${version}.dylib \
89                ${destroot}${prefix}/lib/libaquaterm.dylib"
90        system "ln -s libaquaterm.${version}.dylib \
91                ${destroot}${prefix}/lib/libaquaterm.1.dylib"
92        xinstall -d -m 0755 ${destroot}/Applications/MacPorts
93        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"
96
97        cd ${workpath}/adapters
98        xinstall -d -m 0755 ${destroot}${prefix}/share/${name}
99        system "cp -R c fortran gnuplot pgplot plplot \
100                ${destroot}${prefix}/share/${name}"
101}
102
Note: See TracBrowser for help on using the repository browser.