1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

astro/cfitsio: Update to 4.3.0

Changes:	https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/docs/changes.txt
This commit is contained in:
Po-Chuan Hsieh 2023-08-17 02:07:53 +08:00
parent f7b14f154d
commit 12092ad379
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
3 changed files with 32 additions and 7 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= cfitsio
PORTVERSION= 4.2.0
PORTVERSION= 4.3.0
CATEGORIES= astro
MASTER_SITES= https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ \
https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/oldvers/ \
@ -27,9 +27,6 @@ CPE_VENDOR= nasa
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' ${WRKSRC}/*.[chl]
do-install:
cd ${WRKSRC}/ && ${INSTALL_DATA} drvrsmem.h fitsio.h fitsio2.h longnam.h ${STAGEDIR}${PREFIX}/include/
${INSTALL_DATA} ${WRKSRC}/libcfitsio.a ${STAGEDIR}${PREFIX}/lib/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1669057507
SHA256 (cfitsio-4.2.0.tar.gz) = eba53d1b3f6e345632bb09a7b752ec7ced3d63ec5153a848380f3880c5d61889
SIZE (cfitsio-4.2.0.tar.gz) = 4356372
TIMESTAMP = 1691069920
SHA256 (cfitsio-4.3.0.tar.gz) = fdadc01d09cf9f54253802c5ec87eb10de51ce4130411415ae88c30940621b8b
SIZE (cfitsio-4.3.0.tar.gz) = 4367500

View File

@ -0,0 +1,28 @@
from astro/p5-Astro-FITS-CFITSIO build log:
/usr/local/include/fitsio2.h:271:5: error: invalid token at start of a preprocessor expression
#if MACHINE == CRAY
^
/usr/include/machine/param.h:59:18: note: expanded from macro 'MACHINE'
#define MACHINE "amd64"
^
--- fitsio2.h.orig 2023-07-21 14:37:17 UTC
+++ fitsio2.h
@@ -268,14 +268,14 @@ extern int Fitsio_Pthread_Status;
#endif
-#if MACHINE == CRAY
+#if 0
/*
Cray machines: the large negative integer corresponds
to the 3 most sig digits set to 1. If these
3 bits are set in a floating point number (64 bits), then it represents
a reserved value (i.e., a NaN)
*/
-#define fnan(L) ( (L) >= 0xE000000000000000 ? 1 : 0) )
+#define fnan(L) ( (L) >= 0xE000000000000000 ? 1 : 0)
#else
/* these functions work for both big and little endian machines */