source: trunk/dports/science/cfitsio/Portfile

Last change on this file was 150613, checked in by raimue@…, 16 months ago

science/cfitsio:
Fix compatibility version in library, closes #51645
Rev-bump all direct dependents for rebuild.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 150613 2016-07-24 08:27:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compilers 1.0
6
7name                cfitsio
8version             3.390
9revision            1
10categories          science
11license             zlib MIT {LGPL Noncommercial}
12platforms           darwin
13maintainers         gmail.com:Deil.Christoph openmaintainer
14
15description         C access to FITS data files with optional Fortran wrappers
16
17long_description    CFITSIO is a library of C and Fortran subroutines for \
18                    reading and writing data files in FITS (Flexible Image \
19                    Transport System) data format. CFITSIO simplifies the \
20                    task of writing software that deals with FITS files by \
21                    providing an easy to use set of high-level routines that \
22                    insulate the programmer from the internal complexities \
23                    of the FITS file format. At the same time, CFITSIO \
24                    provides many advanced features that have made it the \
25                    most widely used FITS file programming interface in the \
26                    astronomical community.
27
28homepage            http://heasarc.gsfc.nasa.gov/fitsio/
29master_sites        http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/
30distname            ${name}[strsed ${version} {g/\.//}]
31worksrcdir          ${name}
32
33checksums           rmd160  515146dd69dfacc0a41f5d2727332c81b9fa501b \
34                    sha256  62d3d8f38890275cc7a78f5e9a4b85d7053e75ae43e988f1e2390e539ba7f409
35
36patchfiles          patch-configure.diff patch-Makefile.in.diff
37
38compilers.choose    fc
39compilers.setup     -dragonegg
40
41# turn off FORTRAN compiler wrappers by removing FORTRAN from the path
42if {![fortran_variant_isset]} {
43    configure.fc none
44}
45configure.cflags    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
46configure.universal_args-delete --disable-dependency-tracking
47
48build.target        all shared
49
50use_parallel_build  no
51
52post-patch {
53    reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure
54}
55
56post-destroot {
57    system "ranlib ${destroot}${prefix}/lib/libcfitsio.a"
58    set docdir ${destroot}${prefix}/share/doc/${name}
59    xinstall -m 755 -d ${docdir}
60    eval xinstall -m 644 \
61        ${worksrcpath}/README \
62        [glob ${worksrcpath}/*.txt] \
63        ${docdir}
64}
65
66livecheck.type      regex
67livecheck.url       ${master_sites}
68livecheck.regex     {cfitsio(\d+).tar.gz}
69livecheck.version   [strsed ${version} {g/\.//}]
Note: See TracBrowser for help on using the repository browser.