# -*- 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 # $Id$ PortSystem 1.0 name gwyddion version 2.19 categories science x11 platforms darwin # revision 1 maintainers rowue gwyddion.net:yeti description Software for SPM Analysis long_description \ Gwyddion is a modular program for SPM (scanning probe microscopy) data \ visualization and analysis. It uses gtk2 for the user interface. homepage http://gwyddion.net master_sites sourceforge use_bzip2 yes use_parallel_build yes checksums md5 5c61913df1abf78783ad9dd5e1faa505 \ sha1 a0761c807590e437a92b4160f3bbeb016f4d3f7e \ rmd160 b28886d386bab03c5d72556680ac01dbdd5031f3 depends_lib port:gtk2 \ port:libxml2 \ port:fftw-3 \ port:gtkglext configure.args --disable-desktop-file-update \ --x-include=${prefix}/include \ --x-lib=${prefix}/lib variant no_x11 description { Build gwyddion with quartz gl support} { } post-destroot { xinstall -m 755 -d ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS if {[variant_isset no_x11]} { xinstall ${filespath}/gwyddion.quartz ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS/gwyddion reinplace "s|@PREFIX@|${prefix}|" ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS/gwyddion } else { xinstall ${filespath}/gwyddion ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS reinplace "s|@APPDIR@|${applications_dir}|" ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS/gwyddion reinplace "s|@PREFIX@|${prefix}|" ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS/gwyddion } xinstall -m 755 -d ${destroot}${applications_dir}/gwyddion.app/Contents/Resources xinstall -m 0644 ${filespath}/gwyddion.icns ${destroot}${applications_dir}/gwyddion.app/Contents/Resources xinstall -m 0644 ${filespath}/Info.plist ${destroot}${applications_dir}/gwyddion.app/Contents/ reinplace "s|@VERSION@|${version}|" ${destroot}${applications_dir}/gwyddion.app/Contents/Info.plist system "echo 'APPL????' > ${destroot}${applications_dir}/gwyddion.app/Contents/PkgInfo" } post-activate { system "${prefix}/bin/update-mime-database ${prefix}/share/mime ; true" } platform darwin 8 { post-activate { if {[file exists ${prefix}/lib/pkgconfig/gl.pc]} { if {![variant_isset no_x11]} { ui_msg "openGL support currently requires you to use MacPorts' X11 server (xorg-server) rather than Apple's." } } } }