# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id: Portfile 147756 2016-04-14 23:14:27Z khindenburg@macports.org $ PortSystem 1.0 name ds9 version 7.4 revision 1 categories science graphics platforms darwin maintainers aronnax license GPL-3+ description SAOImage DS9 astronomical imaging and visualization application long_description \ SAOImage DS9 is an astronomical imaging and data visualization \ application. DS9 supports FITS images and binary tables, multiple frame \ buffers, region manipulation, and many scale algorithms and colormaps. It \ provides for easy communication with external analysis tasks and is highly \ configurable and extensible via XPA and SAMP. homepage http://ds9.si.edu/ master_sites ${homepage}/download/source distname ${name}.${version} checksums sha256 e91a3aa1d8e4f5b85df0a09400b29043e2412a14c76e6712fde5942dc554433f \ rmd160 b7bb69b603c25fefb2b2b8de082a8d45553c47c0 depends_lib port:fontconfig \ port:freetype \ port:funtools \ port:libxml2 \ port:libiconv \ port:jbigkit \ port:zlib \ port:libzip \ port:xpa # FIXME: these libraries are statically linked depends_build-append port:ast universal_variant no worksrcdir saods9 patchfiles patch-ds9_macosx_Makefile.in.diff \ patch-ds9_unix_Makefile.in.diff \ patch-ds9_unix_ds9.C.diff \ patch-ds9_library_ds9.tcl.diff post-patch { # FIXME: Prefix has to be embedded in source and Makefiles in some places. reinplace "s|@prefix@|${prefix}|g" \ ${worksrcpath}/ds9/macosx/Makefile.in \ ${worksrcpath}/ds9/unix/Makefile.in \ ${worksrcpath}/ds9/unix/ds9.C \ ${worksrcpath}/ds9/library/ds9.tcl } variant x11 conflicts aqua description {Enable X11 GUI} { configure.cmd unix/configure destroot { xinstall ${worksrcpath}/bin/ds9 ${destroot}${prefix}/bin copy ${worksrcpath}/ds9/unix/zipdir/zvfsmntpt ${destroot}${prefix}/share/ds9 } } variant aqua conflicts x11 description {Enable Mac OS X GUI} { depends_lib-append port:xorg-libX11 \ port:xorg-libXext \ port:xorg-libXt \ port:Xft2 \ port:xrender \ port:xorg-libXScrnSaver \ configure.cmd macosx/configure destroot { copy ${worksrcpath}/bin/SAOImage\ DS9.app ${destroot}${applications_dir}/SAOImage\ DS9.app } } if {![variant_isset x11] && ![variant_isset aqua]} { default_variants +aqua } configure.cmd unix/configure use_parallel_build no build.args-append JOBS=${build.jobs} \ CC=${configure.cc} \ CXX=${configure.cxx} \ X11INCLUDE=${prefix}/include \ X11LIB=${prefix}/lib \ XFT_LIBS="-lXft -lfontconfig" \ -o xpa -o funtools -o ast -o zvfs livecheck.url ${homepage}/site/Download.html livecheck.regex {DS9 Version (\d+(\.\d+)+)}