CFITSIO - NASA Library for manipulating FITS files: new recipe (#4838)

This commit is contained in:
Gabriele Baldassarre
2020-04-05 21:12:31 +02:00
committed by GitHub
parent 9417b417ab
commit 7096e385e7
2 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,84 @@
SUMMARY="A FITS File Subroutine Library"
DESCRIPTION="CFITSIO is a library of ANSI C routines for reading and writing
FITS format data files. A set of Fortran-callable wrapper routines are also
included for the convenience of Fortran programmers."
HOMEPAGE="https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html"
COPYRIGHT="1996-2019 William D. Pence - HEASARC, NASA/GSFC"
LICENSE="CFITSIO"
REVISION="1"
SOURCE_URI="http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-$portVersion.tar.gz"
CHECKSUM_SHA256="418516f10ee1e0f1b520926eeca6b77ce639bed88804c7c545e74f26b3edf4ef"
ARCHITECTURES="!x86_gcc2 x86 x86_64 ?arm ?ppc ?sparc"
SECONDARY_ARCHITECTURES="x86 x86_64"
PROVIDES="
cfitsio$secondaryArchSuffix = $portVersion
lib:libcfitsio$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
"
PROVIDES_devel="
cfitsio${secondaryArchSuffix}_devel = $portVersion
devel:libcfitsio = $portVersion
"
REQUIRES_devel="
cfitsio$secondaryArchSuffix == $portVersion
lib:libbz2$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbz2$secondaryArchSuffix
devel:libgfortran$secondaryArchSuffix
devel:libcurl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:gfortran$secondaryArchSuffix
cmd:make
"
TEST_REQUIRES="
cmd:diff
"
BUILD()
{
if [ $effectiveTargetArchitecture == x86_64 ]; then
GCC5FLAGS="--enable-x86-64"
fi
runConfigure ./configure --enable-reentrant --enable-ssse3 --with-bzip2
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLib libcfitsio
fixPkgconfig
# copy pdf documentation
mkdir -p $developDocDir
cp -rd docs/*.pdf $developDocDir/
# devel package
packageEntries devel $developDir
}
TEST()
{
make testprog
testprog > testprog.lis
diff testprog.lis testprog.out
cmp testprog.fit testprog.std
}

View File

@@ -0,0 +1,7 @@
Copyright (Unpublished-all rights reserved under the copyright laws of the United States), U.S. Government as represented by the Administrator of the National Aeronautics and Space Administration. No copyright is claimed in the United States under Title 17, U.S. Code.
Permission to freely use, copy, modify, and distribute this software and its documentation without fee is hereby granted, provided that this copyright notice and disclaimer of warranty appears in all copies.
DISCLAIMER:
THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND FREEDOM FROM INFRINGEMENT, AND ANY WARRANTY THAT THE DOCUMENTATION WILL CONFORM TO THE SOFTWARE, OR ANY WARRANTY THAT THE SOFTWARE WILL BE ERROR FREE. IN NO EVENT SHALL NASA BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR IN ANY WAY CONNECTED WITH THIS SOFTWARE, WHETHER OR NOT BASED UPON WARRANTY, CONTRACT, TORT , OR OTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY PERSONS OR PROPERTY OR OTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED FROM, OR AROSE OUT OF THE RESULTS OF, OR USE OF, THE SOFTWARE OR SERVICES PROVIDED HEREUNDER.