Ticket #33893: Portfile

File Portfile, 2.4 KB (added by jdswinbank (John Swinbank), 13 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                wcslib
6version             4.13.4
7categories          science
8license             LGPL-3+
9platforms           darwin
10maintainers         transientskp.org:swinbank
11description         Library for handling World Coordinate System in FITS files
12long_description    A C library, with a set of Fortran wrappers, that \
13                    implements the World Coordinate System (WCS) standard \
14                    in FITS (Flexible Image Transport System).
15homepage            http://www.atnf.csiro.au/people/mcalabre/WCS/index.html
16master_sites        gentoo \
17                    ftp://ftp.atnf.csiro.au/pub/software/wcslib/
18use_bzip2           yes
19checksums           md5     94a24c7abd7d8edc514ed10896cbf4f0 \
20                    sha1    ef6d9263ef6a1fa9409d6a9066c46d5747056212 \
21                    rmd160  fe8949f76ad2a07f7d27a186e7b7fdc38cc92057
22depends_lib         port:cfitsio
23configure.args      --disable-fortran
24
25livecheck.type      regex
26livecheck.url       http://www.atnf.csiro.au/people/mcalabre/WCS/CHANGES
27livecheck.regex     "WCSLIB version (\\d+\\.\\d+\(\\.\\d+\)?)"
28
29variant gcc44 conflicts gcc45 gcc46 description {Build with GCC 4.4; enables Fortran support}  {
30    configure.compiler      macports-gcc-4.4
31    depends_lib-append      port:gcc44 \
32                            port:pgplot
33    configure.args-delete   --disable-fortran
34    post-destroot {
35        system "install_name_tool -change libwcs.${version}.dylib ${prefix}/lib/libwcs.${version}.dylib ${destroot}${prefix}/lib/libpgsbox.${version}.dylib"
36    }
37}
38
39variant gcc45 conflicts gcc44 gcc46 description {Build with GCC 4.5; enables Fortran support}  {
40    configure.compiler      macports-gcc-4.5
41    depends_lib-append      port:gcc45 \
42                            port:pgplot
43    configure.args-delete   --disable-fortran
44    post-destroot {
45        system "install_name_tool -change libwcs.${version}.dylib ${prefix}/lib/libwcs.${version}.dylib ${destroot}${prefix}/lib/libpgsbox.${version}.dylib"
46    }
47}
48
49variant gcc46 conflicts gcc44 gcc45 description {Build with GCC 4.6; enables Fortran support}  {
50    configure.compiler      macports-gcc-4.6
51    depends_lib-append      port:gcc46 \
52                            port:pgplot
53    configure.args-delete   --disable-fortran
54    post-destroot {
55        system "install_name_tool -change libwcs.${version}.dylib ${prefix}/lib/libwcs.${version}.dylib ${destroot}${prefix}/lib/libpgsbox.${version}.dylib"
56    }
57}