1 | # $Id: Portfile 85443 2011-10-13 23:51:45Z dports@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup xcode 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | |
---|
7 | github.setup AquaTerm AquaTerm 1.1.1 v |
---|
8 | name aquaterm |
---|
9 | categories aqua math science |
---|
10 | maintainers mcalhoun openmaintainer |
---|
11 | license BSD |
---|
12 | description AquaTerm is a viewer that displays vector graphics on Mac OS X |
---|
13 | long_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. |
---|
18 | platforms darwin |
---|
19 | homepage http://aquaterm.github.com/ |
---|
20 | |
---|
21 | checksums rmd160 007db0806a2b1b1263043647035fa428b15560e3 \ |
---|
22 | sha256 8e35cb81f5f024382ba4b2c96569631b34cf798966aa2870258f272e551c0e34 |
---|
23 | |
---|
24 | build.dir ${worksrcpath}/aquaterm |
---|
25 | |
---|
26 | xcode.target AquaTerm |
---|
27 | xcode.configuration Default |
---|
28 | |
---|
29 | xcode.build.settings LOCAL_APPS_DIR=${applications_dir} LOCAL_FRAMEWORKS_DIR=${frameworks_dir} |
---|
30 | xcode.destroot.settings LOCAL_APPS_DIR=${applications_dir} LOCAL_FRAMEWORKS_DIR=${frameworks_dir} |
---|
31 | xcode.destroot.type mixed |
---|
32 | |
---|
33 | post-patch { |
---|
34 | # Try to open the right version of AquaTerm.app. |
---|
35 | # (If incompatible version is installed in /Applications, |
---|
36 | # we need to make sure that the one from MacPorts is found first.) |
---|
37 | reinplace "s|/Applications/AquaTerm.app|${applications_dir}/AquaTerm.app|" \ |
---|
38 | ${worksrcpath}/aquaterm/AQTClientManager.m |
---|
39 | |
---|
40 | reinplace "s|# FRAMEWORKS_DIR.*|FRAMEWORKS_DIR = ${frameworks_dir}|" \ |
---|
41 | ${worksrcpath}/adapters/c/Makefile \ |
---|
42 | ${worksrcpath}/adapters/fortran/Makefile |
---|
43 | |
---|
44 | reinplace "s|/usr/local|${prefix}|g" \ |
---|
45 | ${worksrcpath}/adapters/pgplot/ChangeLog \ |
---|
46 | ${worksrcpath}/adapters/pgplot/g77_gcc_AQT.conf \ |
---|
47 | ${worksrcpath}/adapters/pgplot/xlf_gcc_AQT.conf |
---|
48 | |
---|
49 | # those are not really needed, it's just cosmetics |
---|
50 | reinplace "s|/*<PREFIX>|${prefix}|g" \ |
---|
51 | ${worksrcpath}/adapters/pgplot/g77_cc_AQT.conf \ |
---|
52 | ${worksrcpath}/adapters/pgplot/g77_gcc_AQT.conf \ |
---|
53 | ${worksrcpath}/adapters/pgplot/xlf_gcc_AQT.conf |
---|
54 | reinplace "s|/sw|${prefix}|g" \ |
---|
55 | ${worksrcpath}/adapters/pgplot/ReadMe |
---|
56 | } |
---|
57 | |
---|
58 | post-destroot { |
---|
59 | xinstall -d -m 0755 ${destroot}${prefix}/share/AquaTerm |
---|
60 | copy ${worksrcpath}/adapters ${destroot}${prefix}/share/AquaTerm |
---|
61 | } |
---|