source: trunk/dports/aqua/aquaterm/Portfile

Last change on this file was 109187, checked in by jeremyhu@…, 4 years ago

aquaterm: Re-add 64bit and Mavericks by dropping unused deprecated Message.framework

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
2# $Id: Portfile 109187 2013-08-09 15:10:17Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               xcode 1.0
6PortGroup               github 1.0
7
8github.setup            AquaTerm AquaTerm 1.1.1 v
9name                    aquaterm
10categories              aqua math science
11maintainers             g5pw mojca
12license                 BSD
13description             AquaTerm is a viewer that displays vector graphics on Mac OS X
14long_description        AquaTerm is a viewer app that displays vector \
15                        graphics.  Other apps connect to AquaTerm using a \
16                        simple remote object messaging protocol.  By adding \
17                        \"adapters\" to legacy code very little coding is \
18                        needed to bring it to OS X.
19platforms               darwin
20homepage                http://aquaterm.sourceforge.net/
21
22checksums               rmd160  007db0806a2b1b1263043647035fa428b15560e3 \
23                        sha256  8e35cb81f5f024382ba4b2c96569631b34cf798966aa2870258f272e551c0e34
24
25build.dir               ${worksrcpath}/aquaterm
26
27patchfiles              no-NSMailDelivery.patch
28
29xcode.target            AquaTerm
30xcode.configuration     Default
31
32xcode.build.settings    LOCAL_APPS_DIR=${applications_dir} \
33                        LOCAL_FRAMEWORKS_DIR=${frameworks_dir}
34xcode.destroot.settings LOCAL_APPS_DIR=${applications_dir} \
35                        LOCAL_FRAMEWORKS_DIR=${frameworks_dir}
36xcode.destroot.type     mixed
37
38post-patch {
39    # Try to open the right version of AquaTerm.app.
40    # (If incompatible version is installed in /Applications,
41    #  we need to make sure that the one from MacPorts is found first.)
42    reinplace "s|/Applications/AquaTerm.app|${applications_dir}/AquaTerm.app|" \
43        ${worksrcpath}/aquaterm/AQTClientManager.m
44
45    reinplace "s|# FRAMEWORKS_DIR.*|FRAMEWORKS_DIR = ${frameworks_dir}|" \
46        ${worksrcpath}/adapters/c/Makefile \
47        ${worksrcpath}/adapters/fortran/Makefile
48
49    reinplace "s|/usr/local|${prefix}|g" \
50        ${worksrcpath}/adapters/pgplot/ChangeLog \
51        ${worksrcpath}/adapters/pgplot/g77_gcc_AQT.conf \
52        ${worksrcpath}/adapters/pgplot/xlf_gcc_AQT.conf
53
54    # those are not really needed, it's just cosmetics
55    reinplace "s|/*<PREFIX>|${prefix}|g" \
56        ${worksrcpath}/adapters/pgplot/g77_cc_AQT.conf \
57        ${worksrcpath}/adapters/pgplot/g77_gcc_AQT.conf \
58        ${worksrcpath}/adapters/pgplot/xlf_gcc_AQT.conf
59    reinplace "s|/sw|${prefix}|g" \
60        ${worksrcpath}/adapters/pgplot/ReadMe
61}
62
63post-destroot {
64    xinstall -d -m 0755 ${destroot}${prefix}/share/AquaTerm
65    copy ${worksrcpath}/adapters ${destroot}${prefix}/share/AquaTerm
66}
Note: See TracBrowser for help on using the repository browser.