Changeset 79559
- Timestamp:
- 06/18/11 02:17:36 (4 years ago)
- File:
-
- 1 edited
-
trunk/dports/science/cfitsio/Portfile (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/science/cfitsio/Portfile
r79558 r79559 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 1 2 # $Id$ 2 3 3 PortSystem 1.04 PortSystem 1.0 4 5 5 name cfitsio6 name cfitsio 6 7 version 3.280 7 categories science8 platforms darwin9 maintainers nomaintainer8 categories science 9 platforms darwin 10 maintainers nomaintainer 10 11 11 description C access to FITS data files with optional Fortran wrappers 12 long_description \ 13 CFITSIO is a library of C and Fortran subroutines for reading and writing \ 14 data files in FITS (Flexible Image Transport System) data format. CFITSIO \ 15 simplifies the task of writing software that deals with FITS files by \ 16 providing an easy to use set of high-level routines that insulate the \ 17 programmer from the internal complexities of the FITS file format. At the \ 18 same time, CFITSIO provides many advanced features that have made it the \ 19 most widely used FITS file programming interface in the astronomical \ 20 community. 12 description C access to FITS data files with optional Fortran wrappers 21 13 22 homepage http://heasarc.gsfc.nasa.gov/fitsio/ 23 master_sites http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ 24 distname ${name}[strsed ${version} {g/\.//}] 25 worksrcdir ${name} 26 #dist_subdir ${name}/${version}_${revision} 14 long_description CFITSIO is a library of C and Fortran subroutines for \ 15 reading and writing data files in FITS (Flexible Image \ 16 Transport System) data format. CFITSIO simplifies the \ 17 task of writing software that deals with FITS files by \ 18 providing an easy to use set of high-level routines that \ 19 insulate the programmer from the internal complexities \ 20 of the FITS file format. At the same time, CFITSIO \ 21 provides many advanced features that have made it the \ 22 most widely used FITS file programming interface in the \ 23 astronomical community. 24 25 homepage http://heasarc.gsfc.nasa.gov/fitsio/ 26 master_sites http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ 27 distname ${name}[strsed ${version} {g/\.//}] 28 worksrcdir ${name} 29 #dist_subdir ${name}/${version}_${revision} 27 30 28 31 checksums sha1 1f86e23808c68dc5aa144bd2622de0189beadead \ 29 32 rmd160 66df553d36e1ea51261a9fa6407760014487c535 30 33 31 patchfiles patch-configure.diff34 patchfiles patch-configure.diff 32 35 33 36 # turn off FORTRAN compiler wrappers by removing FORTRAN from the path 34 configure.fc ${prefix}/bin/no-possible-compiler35 configure.cflags -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=6437 configure.fc ${prefix}/bin/no-possible-compiler 38 configure.cflags -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 36 39 configure.universal_args-delete --disable-dependency-tracking 37 40 38 build.target all shared41 build.target all shared 39 42 40 use_parallel_build no43 use_parallel_build no 41 44 42 45 post-patch { 43 reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure46 reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure 44 47 } 45 48 46 49 post-destroot { 47 system "ranlib ${destroot}${prefix}/lib/libcfitsio.a" 48 set docdir ${destroot}${prefix}/share/doc/${name}-${version} 49 xinstall -m 755 -d ${docdir} 50 eval xinstall -m 644 ${worksrcpath}/README [glob ${worksrcpath}/*.txt] \ 51 [glob ${worksrcpath}/*.ps] [glob ${worksrcpath}/*.doc] \ 52 [glob ${worksrcpath}/*.tex] ${docdir} 50 system "ranlib ${destroot}${prefix}/lib/libcfitsio.a" 51 set docdir ${destroot}${prefix}/share/doc/${name}-${version} 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} 53 60 } 54 61 55 62 variant gcc42 description {create Fortran wrappers using gcc42} conflicts gcc43 gcc44 g95 { 56 depends_lib-append port:gcc4257 configure.fc ${prefix}/bin/gfortran-mp-4.263 depends_lib-append port:gcc42 64 configure.fc ${prefix}/bin/gfortran-mp-4.2 58 65 } 59 66 60 67 variant gcc43 description {create Fortran wrappers using gcc43} conflicts gcc42 gcc44 g95 { 61 depends_lib-append port:gcc4362 configure.fc ${prefix}/bin/gfortran-mp-4.368 depends_lib-append port:gcc43 69 configure.fc ${prefix}/bin/gfortran-mp-4.3 63 70 } 64 71 65 72 variant gcc44 description {create Fortran wrappers using gcc44} conflicts gcc42 gcc43 g95 { 66 depends_lib-append port:gcc4467 configure.fc ${prefix}/bin/gfortran-mp-4.473 depends_lib-append port:gcc44 74 configure.fc ${prefix}/bin/gfortran-mp-4.4 68 75 } 69 76 70 77 variant g95 description {create Fortran wrappers using f95} conflicts gcc42 gcc43 gcc44 { 71 depends_lib-append port:g9572 configure.fc ${prefix}/bin/g9578 depends_lib-append port:g95 79 configure.fc ${prefix}/bin/g95 73 80 } 74 81 75 livecheck.type regex76 livecheck.url ${master_sites}77 livecheck.regex {cfitsio(\d+).tar.gz}78 livecheck.version [strsed ${version} {g/\.//}]82 livecheck.type regex 83 livecheck.url ${master_sites} 84 livecheck.regex {cfitsio(\d+).tar.gz} 85 livecheck.version [strsed ${version} {g/\.//}]
Note: See TracChangeset
for help on using the changeset viewer.

