source: trunk/dports/science/ds9/Portfile

Last change on this file was 147756, checked in by khindenburg@…, 18 months ago

libzip: update to 1.1.2 #47878; enable tests; revbump deps

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# -*- 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
2# $Id: Portfile 147756 2016-04-14 23:14:27Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    ds9
7version                 7.4
8revision                1
9categories              science graphics
10platforms               darwin
11maintainers             aronnax
12license                 GPL-3+
13description             SAOImage DS9 astronomical imaging and visualization application
14long_description \
15    SAOImage DS9 is an astronomical imaging and data visualization \
16    application. DS9 supports FITS images and binary tables, multiple frame \
17    buffers, region manipulation, and many scale algorithms and colormaps. It \
18    provides for easy communication with external analysis tasks and is highly \
19    configurable and extensible via XPA and SAMP.
20
21homepage                http://ds9.si.edu/
22master_sites            ${homepage}/download/source
23distname                ${name}.${version}
24checksums               sha256  e91a3aa1d8e4f5b85df0a09400b29043e2412a14c76e6712fde5942dc554433f \
25                        rmd160  b7bb69b603c25fefb2b2b8de082a8d45553c47c0
26
27depends_lib             port:fontconfig \
28                        port:freetype \
29                        port:funtools \
30                        port:libxml2 \
31                        port:libiconv \
32                        port:jbigkit \
33                        port:zlib \
34                        port:libzip \
35                        port:xpa
36
37# FIXME: these libraries are statically linked
38depends_build-append    port:ast
39
40universal_variant       no
41
42worksrcdir              saods9
43
44patchfiles              patch-ds9_macosx_Makefile.in.diff \
45                        patch-ds9_unix_Makefile.in.diff \
46                        patch-ds9_unix_ds9.C.diff \
47                        patch-ds9_library_ds9.tcl.diff
48
49post-patch {
50    # FIXME: Prefix has to be embedded in source and Makefiles in some places.
51    reinplace "s|@prefix@|${prefix}|g" \
52        ${worksrcpath}/ds9/macosx/Makefile.in \
53        ${worksrcpath}/ds9/unix/Makefile.in \
54        ${worksrcpath}/ds9/unix/ds9.C \
55        ${worksrcpath}/ds9/library/ds9.tcl
56}
57
58variant x11 conflicts aqua description {Enable X11 GUI} {
59    configure.cmd       unix/configure
60
61    destroot {
62        xinstall ${worksrcpath}/bin/ds9 ${destroot}${prefix}/bin
63        copy ${worksrcpath}/ds9/unix/zipdir/zvfsmntpt ${destroot}${prefix}/share/ds9
64    }
65}
66
67variant aqua conflicts x11 description {Enable Mac OS X GUI} {
68    depends_lib-append  port:xorg-libX11 \
69                        port:xorg-libXext \
70                        port:xorg-libXt \
71                        port:Xft2 \
72                        port:xrender \
73                        port:xorg-libXScrnSaver \
74
75    configure.cmd       macosx/configure
76
77    destroot {
78        copy ${worksrcpath}/bin/SAOImage\ DS9.app ${destroot}${applications_dir}/SAOImage\ DS9.app
79    }
80}
81
82if {![variant_isset x11] && ![variant_isset aqua]} {
83    default_variants    +aqua
84}
85
86configure.cmd           unix/configure
87
88use_parallel_build      no
89build.args-append       JOBS=${build.jobs} \
90                        CC=${configure.cc} \
91                        CXX=${configure.cxx} \
92                        X11INCLUDE=${prefix}/include \
93                        X11LIB=${prefix}/lib \
94                        XFT_LIBS="-lXft -lfontconfig" \
95                        -o xpa -o funtools -o ast -o zvfs
96
97
98livecheck.url           ${homepage}/site/Download.html
99livecheck.regex         {DS9 Version (\d+(\.\d+)+)}
Note: See TracBrowser for help on using the repository browser.