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

Last change on this file since 111236 was 111236, checked in by macsforever2000@…, 6 years ago

cfitsio: Add gcc48 variant.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.3 KB
Line 
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
2# $Id: Portfile 111236 2013-09-17 17:24:38Z macsforever2000@macports.org $
3
4PortSystem          1.0
5
6name                cfitsio
7version             3.340
8categories          science
9license             zlib MIT {LGPL Noncommercial}
10platforms           darwin
11maintainers         gmail.com:Deil.Christoph openmaintainer
12
13description         C access to FITS data files with optional Fortran wrappers
14
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.
25
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
31checksums           rmd160  6969940d71e4beef68daa004b5e829cd37c8a131 \
32                    sha256  a228c1867a97ec3a3b2fec133f84b529475240300f7a72f1cf2e22d00eda7bb3
33
34patchfiles          patch-Makefile.in.diff \
35                    patch-configure.diff
36
37# turn off FORTRAN compiler wrappers by removing FORTRAN from the path
38configure.fc        ${prefix}/bin/no-possible-compiler
39configure.cflags    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
40configure.universal_args-delete --disable-dependency-tracking
41
42build.target        all shared
43
44use_parallel_build  no
45
46post-patch {
47    reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure
48}
49
50post-destroot {
51    system "ranlib ${destroot}${prefix}/lib/libcfitsio.a"
52    set docdir ${destroot}${prefix}/share/doc/${name}
53    xinstall -m 755 -d ${docdir}
54    eval xinstall -m 644 \
55        ${worksrcpath}/README \
56        [glob ${worksrcpath}/*.txt] \
57        [glob ${worksrcpath}/*.ps] \
58        [glob ${worksrcpath}/*.doc] \
59        [glob ${worksrcpath}/*.tex] \
60        ${docdir}
61}
62
63variant gcc43 description {create Fortran wrappers using gcc43} conflicts gcc44 gcc45 gcc46 gcc47 gcc48 g95 {
64    depends_build-append  port:gcc43
65    depends_lib-append  path:lib/libgcc/libgcc_s.1.dylib:libgcc
66    configure.fc        ${prefix}/bin/gfortran-mp-4.3
67}
68
69variant gcc44 description {create Fortran wrappers using gcc44} conflicts gcc43 gcc45 gcc46 gcc47 gcc48 g95 {
70    depends_build-append  port:gcc44
71    depends_lib-append  path:lib/libgcc/libgcc_s.1.dylib:libgcc
72    configure.fc        ${prefix}/bin/gfortran-mp-4.4
73}
74
75variant gcc45 description {create Fortran wrappers using gcc45} conflicts gcc43 gcc44 gcc46 gcc47 gcc48 g95 {
76    depends_build-append  port:gcc45
77    depends_lib-append  path:lib/libgcc/libgcc_s.1.dylib:libgcc
78    configure.fc        ${prefix}/bin/gfortran-mp-4.5
79}
80
81variant gcc46 description {create Fortran wrappers using gcc46} conflicts gcc43 gcc44 gcc45 gcc47 gcc48 g95 {
82    depends_build-append  port:gcc46
83    depends_lib-append  path:lib/libgcc/libgcc_s.1.dylib:libgcc
84    configure.fc        ${prefix}/bin/gfortran-mp-4.6
85}
86
87variant gcc47 description {create Fortran wrappers using gcc47} conflicts gcc43 gcc44 gcc45 gcc46 gcc48 g95 {
88    depends_build-append  port:gcc47
89    depends_lib-append  path:lib/libgcc/libgcc_s.1.dylib:libgcc
90    configure.fc        ${prefix}/bin/gfortran-mp-4.7
91}
92
93variant gcc48 description {create Fortran wrappers using gcc48} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 g95 {
94    depends_build-append  port:gcc48
95    depends_lib-append  path:lib/libgcc/libgcc_s.1.dylib:libgcc
96    configure.fc        ${prefix}/bin/gfortran-mp-4.8
97}
98
99variant g95 description {create Fortran wrappers using f95} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 gcc48 {
100    depends_lib-append  port:g95
101    configure.fc        ${prefix}/bin/g95
102}
103
104livecheck.type      regex
105livecheck.url       ${master_sites}
106livecheck.regex     {cfitsio(\d+).tar.gz}
107livecheck.version   [strsed ${version} {g/\.//}]
Note: See TracBrowser for help on using the repository browser.