1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name wcslib |
---|
6 | version 4.13.4 |
---|
7 | categories science |
---|
8 | license LGPL-3+ |
---|
9 | platforms darwin |
---|
10 | maintainers transientskp.org:swinbank |
---|
11 | description Library for handling World Coordinate System in FITS files |
---|
12 | long_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). |
---|
15 | homepage http://www.atnf.csiro.au/people/mcalabre/WCS/index.html |
---|
16 | master_sites gentoo \ |
---|
17 | ftp://ftp.atnf.csiro.au/pub/software/wcslib/ |
---|
18 | use_bzip2 yes |
---|
19 | checksums md5 94a24c7abd7d8edc514ed10896cbf4f0 \ |
---|
20 | sha1 ef6d9263ef6a1fa9409d6a9066c46d5747056212 \ |
---|
21 | rmd160 fe8949f76ad2a07f7d27a186e7b7fdc38cc92057 |
---|
22 | depends_lib port:cfitsio |
---|
23 | configure.args --disable-fortran |
---|
24 | |
---|
25 | livecheck.type regex |
---|
26 | livecheck.url http://www.atnf.csiro.au/people/mcalabre/WCS/CHANGES |
---|
27 | livecheck.regex "WCSLIB version (\\d+\\.\\d+\(\\.\\d+\)?)" |
---|
28 | |
---|
29 | variant 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 | |
---|
39 | variant 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 | |
---|
49 | variant 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 | } |
---|