source: trunk/dports/science/gwyddion/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
3
4PortSystem          1.0
5
6name                gwyddion
7version             2.14
8revision            2
9categories          science x11
10platforms           darwin
11maintainers         rowue gwyddion.net:yeti
12description         Software for SPM Analysis
13
14long_description \
15    Gwyddion is a modular program for SPM (scanning probe microscopy) data \
16    visualization and analysis. It uses gtk2 for the user interface.
17
18homepage            http://gwyddion.net
19master_sites        sourceforge
20use_bzip2           yes
21use_parallel_build  yes
22
23checksums           md5     73a029f35e987f73c24c4452676fd243 \
24                    sha1    0068d495ab58d235ba6bb27f5bb1c60b2e486601 \
25                    rmd160  dacbb490be8648c4a67424402b6ab53624effbfc
26
27depends_lib         port:gtk2 \
28                    port:libxml2 \
29                    port:fftw-3 \
30                    port:gtkglext
31
32configure.args      --disable-desktop-file-update \
33                    --x-include=${prefix}/include \
34                    --x-lib=${prefix}/lib
35
36post-destroot {
37    xinstall -m 755 -d ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS
38    xinstall ${filespath}/gwyddion ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS
39    reinplace "s|@APPDIR@|${applications_dir}|" ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS/gwyddion
40    reinplace "s|@PREFIX@|${prefix}|" ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS/gwyddion
41    xinstall -m 755 -d ${destroot}${applications_dir}/gwyddion.app/Contents/Resources
42    xinstall -m 0644 ${filespath}/gwyddion.icns ${destroot}${applications_dir}/gwyddion.app/Contents/Resources
43    xinstall -m 0644 ${filespath}/Info.plist ${destroot}${applications_dir}/gwyddion.app/Contents/
44    reinplace "s|@VERSION@|${version}|" ${destroot}${applications_dir}/gwyddion.app/Contents/Info.plist
45    system "echo 'APPL????' > ${destroot}${applications_dir}/gwyddion.app/Contents/PkgInfo"
46}
47
48post-activate {
49        system "${prefix}/bin/update-mime-database ${prefix}/share/mime ; true"
50}
51
52platform darwin 8 {
53        post-activate {
54                if {[file exists ${prefix}/lib/pkgconfig/gl.pc]} {
55                        ui_msg "openGL support currently requires you to use MacPorts' X11 server (xorg-server) rather than Apple's."
56                }
57        }
58}
Note: See TracBrowser for help on using the repository browser.