Ticket #34346: aquaterm-v3.2.Portfile

File aquaterm-v3.2.Portfile, 2.2 KB (added by mojca (Mojca Miklavec), 12 years ago)

portfile for new AquaTerm: pgplot fixes still missing

Line 
1# $Id: Portfile 85443 2011-10-13 23:51:45Z dports@macports.org $
2
3PortSystem              1.0
4PortGroup               xcode 1.0
5PortGroup               github 1.0
6
7github.setup            AquaTerm AquaTerm 1.1.1a tempv
8name                    aquaterm
9categories              aqua math science
10maintainers             mcalhoun openmaintainer
11license                 BSD
12description             AquaTerm is a viewer that displays vector graphics on Mac OS X
13long_description        AquaTerm is a viewer app that displays vector \
14                        graphics.  Other apps connect to AquaTerm using a \
15                        simple remote object messaging protocol.  By adding \
16                        \"adapters\" to legacy code very little coding is \
17                        needed to bring it to OS X.
18platforms               darwin
19homepage                http://aquaterm.github.com/
20
21checksums               rmd160  348cf3a213e1f1ad444b3b9c29ce8aea48a98138 \
22                        sha256  23eb8d21ef48c40e9e5867f219715cdb8c91d74f13b1fef7c018aeee1f382d26
23
24build.dir               ${worksrcpath}/aquaterm
25
26xcode.target            AquaTerm
27xcode.configuration     Default
28
29xcode.build.settings    LOCAL_APPS_DIR=${applications_dir} LOCAL_FRAMEWORKS_DIR=${frameworks_dir}
30xcode.destroot.settings LOCAL_APPS_DIR=${applications_dir} LOCAL_FRAMEWORKS_DIR=${frameworks_dir}
31xcode.destroot.type     mixed
32
33post-patch {
34    reinplace "s|# FRAMEWORKS_DIR.*|FRAMEWORKS_DIR = ${frameworks_dir}|" \
35        ${worksrcpath}/adapters/c/Makefile \
36        ${worksrcpath}/adapters/fortran/Makefile
37    # TODO
38    reinplace "s|/usr/local|${prefix}|g" \
39        ${worksrcpath}/adapters/pgplot/ChangeLog \
40        ${worksrcpath}/adapters/pgplot/g77_gcc_AQT.conf \
41        ${worksrcpath}/adapters/pgplot/xlf_gcc_AQT.conf
42    reinplace "s|/*<PREFIX>|${prefix}|g" \
43        ${worksrcpath}/adapters/pgplot/g77_cc_AQT.conf \
44        ${worksrcpath}/adapters/pgplot/g77_gcc_AQT.conf \
45        ${worksrcpath}/adapters/pgplot/xlf_gcc_AQT.conf
46    reinplace "s|/sw|${prefix}|g" \
47        ${worksrcpath}/adapters/pgplot/ReadMe
48}
49
50post-destroot {
51    xinstall -d -m 0755 ${destroot}${prefix}/share/AquaTerm
52    copy ${worksrcpath}/adapters ${destroot}${prefix}/share/AquaTerm
53}