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

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

cfitsio: install libraries as root not macports user (#36533)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 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 98571 2012-10-08 23:49:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                cfitsio
7version             3.310
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  8af17e2597474f4f87a777881c6b6f4ae573c6e2 \
32                    sha256  e8a70bca202caa4773c4a50288622ef5398752de5a5e8fcfc232859f928ff5d9
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 g95 {
64    depends_lib-append  port:gcc43
65    configure.fc        ${prefix}/bin/gfortran-mp-4.3
66}
67
68variant gcc44 description {create Fortran wrappers using gcc44} conflicts gcc43 gcc45 gcc46 gcc47 g95 {
69    depends_lib-append  port:gcc44
70    configure.fc        ${prefix}/bin/gfortran-mp-4.4
71}
72
73variant gcc45 description {create Fortran wrappers using gcc45} conflicts gcc43 gcc44 gcc46 gcc47 g95 {
74    depends_lib-append  port:gcc45
75    configure.fc        ${prefix}/bin/gfortran-mp-4.5
76}
77
78variant gcc46 description {create Fortran wrappers using gcc46} conflicts gcc43 gcc44 gcc45 gcc47 g95 {
79    depends_lib-append  port:gcc46
80    configure.fc        ${prefix}/bin/gfortran-mp-4.6
81}
82
83variant gcc47 description {create Fortran wrappers using gcc47} conflicts gcc43 gcc44 gcc45 gcc46 g95 {
84    depends_lib-append  port:gcc47
85    configure.fc        ${prefix}/bin/gfortran-mp-4.7
86}
87
88variant g95 description {create Fortran wrappers using f95} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 {
89    depends_lib-append  port:g95
90    configure.fc        ${prefix}/bin/g95
91}
92
93livecheck.type      regex
94livecheck.url       ${master_sites}
95livecheck.regex     {cfitsio(\d+).tar.gz}
96livecheck.version   [strsed ${version} {g/\.//}]
Note: See TracBrowser for help on using the repository browser.