source: trunk/dports/science/cfitsio/Portfile @ 98570

Last change on this file since 98570 was 98570, checked in by ryandesign@…, 8 years ago

cfitsio: update to 3.310

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
RevLine 
[79559]1# -*- 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
[20267]2# $Id: Portfile 98570 2012-10-08 23:28:15Z ryandesign@macports.org $
[7052]3
[79559]4PortSystem          1.0
[40047]5
[79559]6name                cfitsio
[98570]7version             3.310
[79559]8categories          science
[84921]9license             zlib MIT {LGPL Noncommercial}
[79559]10platforms           darwin
[98560]11maintainers         gmail.com:Deil.Christoph openmaintainer
[40082]12
[79559]13description         C access to FITS data files with optional Fortran wrappers
[7052]14
[79559]15long_description    CFITSIO is a library of C and Fortran subroutines for \
16                    reading and writing data files in FITS (Flexible Image \
17                    Transport System) data format. CFITSIO simplifies the \
18                    task of writing software that deals with FITS files by \
19                    providing an easy to use set of high-level routines that \
20                    insulate the programmer from the internal complexities \
21                    of the FITS file format. At the same time, CFITSIO \
22                    provides many advanced features that have made it the \
23                    most widely used FITS file programming interface in the \
24                    astronomical community.
[7052]25
[79559]26homepage            http://heasarc.gsfc.nasa.gov/fitsio/
27master_sites        http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/
28distname            ${name}[strsed ${version} {g/\.//}]
29worksrcdir          ${name}
30
[98570]31checksums           rmd160  8af17e2597474f4f87a777881c6b6f4ae573c6e2 \
32                    sha256  e8a70bca202caa4773c4a50288622ef5398752de5a5e8fcfc232859f928ff5d9
[7052]33
[79559]34patchfiles          patch-configure.diff
[7052]35
[40080]36# turn off FORTRAN compiler wrappers by removing FORTRAN from the path
[79559]37configure.fc        ${prefix}/bin/no-possible-compiler
38configure.cflags    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
[61064]39configure.universal_args-delete --disable-dependency-tracking
[7052]40
[79559]41build.target        all shared
[15909]42
[79559]43use_parallel_build  no
[77988]44
[44267]45post-patch {
[79559]46    reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure
[44267]47}
48
[30984]49post-destroot {
[79559]50    system "ranlib ${destroot}${prefix}/lib/libcfitsio.a"
[79560]51    set docdir ${destroot}${prefix}/share/doc/${name}
[79559]52    xinstall -m 755 -d ${docdir}
53    eval xinstall -m 644 \
54        ${worksrcpath}/README \
55        [glob ${worksrcpath}/*.txt] \
56        [glob ${worksrcpath}/*.ps] \
57        [glob ${worksrcpath}/*.doc] \
58        [glob ${worksrcpath}/*.tex] \
59        ${docdir}
[7052]60}
61
[97763]62variant gcc43 description {create Fortran wrappers using gcc43} conflicts gcc44 gcc45 gcc46 gcc47 g95 {
[79559]63    depends_lib-append  port:gcc43
64    configure.fc        ${prefix}/bin/gfortran-mp-4.3
[40080]65}
66
[97763]67variant gcc44 description {create Fortran wrappers using gcc44} conflicts gcc43 gcc45 gcc46 gcc47 g95 {
[79559]68    depends_lib-append  port:gcc44
69    configure.fc        ${prefix}/bin/gfortran-mp-4.4
[52412]70}
71
[97763]72variant gcc45 description {create Fortran wrappers using gcc45} conflicts gcc43 gcc44 gcc46 gcc47 g95 {
[90820]73    depends_lib-append  port:gcc45
74    configure.fc        ${prefix}/bin/gfortran-mp-4.5
75}
76
[97763]77variant gcc46 description {create Fortran wrappers using gcc46} conflicts gcc43 gcc44 gcc45 gcc47 g95 {
[94480]78    depends_lib-append  port:gcc46
79    configure.fc        ${prefix}/bin/gfortran-mp-4.6
80}
81
[97763]82variant gcc47 description {create Fortran wrappers using gcc47} conflicts gcc43 gcc44 gcc45 gcc46 g95 {
[94480]83    depends_lib-append  port:gcc47
84    configure.fc        ${prefix}/bin/gfortran-mp-4.7
85}
86
[97763]87variant g95 description {create Fortran wrappers using f95} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 {
[79559]88    depends_lib-append  port:g95
89    configure.fc        ${prefix}/bin/g95
[40080]90}
91
[79559]92livecheck.type      regex
93livecheck.url       ${master_sites}
94livecheck.regex     {cfitsio(\d+).tar.gz}
95livecheck.version   [strsed ${version} {g/\.//}]
Note: See TracBrowser for help on using the repository browser.