# -*- 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 # $Id: Portfile 100107 2012-11-28 12:13:27Z mojca@macports.org $ PortSystem 1.0 PortGroup xcode 1.0 PortGroup github 1.0 github.setup AquaTerm AquaTerm 1.1.1 v name aquaterm categories aqua math science maintainers g5pw mojca license BSD description AquaTerm is a viewer that displays vector graphics on Mac OS X long_description AquaTerm is a viewer app that displays vector \ graphics. Other apps connect to AquaTerm using a \ simple remote object messaging protocol. By adding \ \"adapters\" to legacy code very little coding is \ needed to bring it to OS X. platforms darwin homepage http://aquaterm.sourceforge.net/ checksums rmd160 007db0806a2b1b1263043647035fa428b15560e3 \ sha256 8e35cb81f5f024382ba4b2c96569631b34cf798966aa2870258f272e551c0e34 build.dir ${worksrcpath}/aquaterm xcode.target AquaTerm xcode.configuration Default xcode.build.settings LOCAL_APPS_DIR=${applications_dir} \ LOCAL_FRAMEWORKS_DIR=${frameworks_dir} xcode.destroot.settings LOCAL_APPS_DIR=${applications_dir} \ LOCAL_FRAMEWORKS_DIR=${frameworks_dir} xcode.destroot.type mixed post-patch { # Try to open the right version of AquaTerm.app. # (If incompatible version is installed in /Applications, # we need to make sure that the one from MacPorts is found first.) reinplace "s|/Applications/AquaTerm.app|${applications_dir}/AquaTerm.app|" \ ${worksrcpath}/aquaterm/AQTClientManager.m reinplace "s|# FRAMEWORKS_DIR.*|FRAMEWORKS_DIR = ${frameworks_dir}|" \ ${worksrcpath}/adapters/c/Makefile \ ${worksrcpath}/adapters/fortran/Makefile reinplace "s|/usr/local|${prefix}|g" \ ${worksrcpath}/adapters/pgplot/ChangeLog \ ${worksrcpath}/adapters/pgplot/g77_gcc_AQT.conf \ ${worksrcpath}/adapters/pgplot/xlf_gcc_AQT.conf # those are not really needed, it's just cosmetics reinplace "s|/*|${prefix}|g" \ ${worksrcpath}/adapters/pgplot/g77_cc_AQT.conf \ ${worksrcpath}/adapters/pgplot/g77_gcc_AQT.conf \ ${worksrcpath}/adapters/pgplot/xlf_gcc_AQT.conf reinplace "s|/sw|${prefix}|g" \ ${worksrcpath}/adapters/pgplot/ReadMe } post-destroot { xinstall -d -m 0755 ${destroot}${prefix}/share/AquaTerm copy ${worksrcpath}/adapters ${destroot}${prefix}/share/AquaTerm }