astro/cfitsio: Update to 4.2.0

- Convert REINPLACE_CMD to patch file
- Bump PORTREVISION of dependent ports for shlib change

Changes:	https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/docs/changes.txt
This commit is contained in:
Po-Chuan Hsieh 2022-12-30 16:39:46 +08:00
parent 7593d64d4f
commit e73ed31d9f
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
21 changed files with 41 additions and 19 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= astrometry
PORTVERSION= 0.92
PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= http://astrometry.net/downloads/
DISTNAME= ${PORTNAME}.net-${PORTVERSION}

View File

@ -1,6 +1,5 @@
PORTNAME= cfitsio
PORTVERSION= 4.1.0
PORTREVISION= 1
PORTVERSION= 4.2.0
CATEGORIES= astro
MASTER_SITES= https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ \
https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/oldvers/ \
@ -30,15 +29,14 @@ OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' ${WRKSRC}/*.[chl]
@${REINPLACE_CMD} -e '/#define _XOPEN_SOURCE 700/d' ${WRKSRC}/configure
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/
${INSTALL_LIB} ${WRKSRC}/libcfitsio.so.9.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/
${INSTALL_LIB} ${WRKSRC}/libcfitsio.so.10.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/
${INSTALL_DATA} ${WRKSRC}/cfitsio.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
${LN} -fs libcfitsio.so.9.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so.9
${LN} -fs libcfitsio.so.9.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so
${LN} -fs libcfitsio.so.10.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so.10
${LN} -fs libcfitsio.so.10.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1649423660
SHA256 (cfitsio-4.1.0.tar.gz) = b367c695d2831958e7166921c3b356d5dfa51b1ecee505b97416ba39d1b6c17a
SIZE (cfitsio-4.1.0.tar.gz) = 4305184
TIMESTAMP = 1669057507
SHA256 (cfitsio-4.2.0.tar.gz) = eba53d1b3f6e345632bb09a7b752ec7ced3d63ec5153a848380f3880c5d61889
SIZE (cfitsio-4.2.0.tar.gz) = 4356372

View File

@ -0,0 +1,15 @@
Fix build with Clang 15
Reference: https://cgit.freebsd.org/ports/commit/astro/cfitsio/Makefile?id=7eda11c87c30c735058e9393d54b631a74cf566a
--- configure.orig 2022-10-31 18:40:23 UTC
+++ configure
@@ -5606,8 +5606,6 @@ fi
if test "x$BUILD_REENTRANT" = xyes; then
printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
- printf "%s\n" "#define _XOPEN_SOURCE 700" >>confdefs.h
-
# Additional definition needed to get 'union semun' when using
# _XOPEN_SOURCE on a Mac:
if test "x$EXT" = xdarwin; then

View File

@ -4,8 +4,8 @@ include/fitsio2.h
include/longnam.h
lib/libcfitsio.a
lib/libcfitsio.so
lib/libcfitsio.so.9
lib/libcfitsio.so.9.%%PORTVERSION%%
lib/libcfitsio.so.10
lib/libcfitsio.so.10.%%PORTVERSION%%
libdata/pkgconfig/cfitsio.pc
%%PORTDOCS%%%%DOCSDIR%%/cfortran.doc
%%PORTDOCS%%%%DOCSDIR%%/fitsio.doc

View File

@ -1,5 +1,6 @@
PORTNAME= gnuastro
PORTVERSION= 0.19
PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= GNU

View File

@ -1,5 +1,6 @@
PORTNAME= kstars
DISTVERSION= 3.6.2
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= astro kde
MASTER_SITES= KDE/stable/${PORTNAME}

View File

@ -1,6 +1,6 @@
PORTNAME= OSKAR
DISTVERSION= 2.8.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= astro
MAINTAINER= yuri@FreeBSD.org

View File

@ -1,5 +1,6 @@
PORTNAME= Astro-FITS-CFITSIO
PORTVERSION= 1.16
PORTREVISION= 1
CATEGORIES= astro perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-

View File

@ -1,7 +1,7 @@
PORTNAME= phd2
DISTVERSIONPREFIX=v
DISTVERSION= 2.6.10
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= astro
MAINTAINER= acm@FreeBSD.org

View File

@ -1,5 +1,6 @@
PORTNAME= siril
DISTVERSION= 1.0.6
PORTREVISION= 1
CATEGORIES= astro graphics
MASTER_SITES= https://free-astro.org/download/

View File

@ -1,5 +1,6 @@
PORTNAME= stellarsolver
DISTVERSION= 2.4
PORTREVISION= 1
CATEGORIES= astro
MAINTAINER= acm@FreeBSD.org

View File

@ -1,5 +1,6 @@
PORTNAME= wcslib
PORTVERSION= 7.12
PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= ftp://ftp.atnf.csiro.au/pub/software/wcslib/

View File

@ -1,6 +1,7 @@
PORTNAME= indi
DISTVERSIONPREFIX= v
DISTVERSION= 1.9.6
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= acm@FreeBSD.org

View File

@ -1,6 +1,6 @@
PORTNAME= luminance-hdr
DISTVERSION= 2.6.1.1
PORTREVISION= 11
PORTREVISION= 12
CATEGORIES= graphics
MASTER_SITES= SF/qtpfsgui/luminance/${DISTVERSION}

View File

@ -1,6 +1,6 @@
PORTNAME= ufraw
PORTVERSION= 0.22.20210424
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= graphics
MAINTAINER= rodrigo@FreeBSD.org

View File

@ -1,6 +1,6 @@
PORTNAME= labplot
DISTVERSION= 2.9.0
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= math kde
MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}

View File

@ -1,5 +1,6 @@
PORTNAME= octave-forge-cfitsio
PORTVERSION= 0.0.4
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= SF
MASTER_SITE_SUBDIR=octave-cfitsio/v${PORTVERSION}

View File

@ -1,6 +1,6 @@
PORTNAME= octave-forge-fits
PORTVERSION= 1.0.7
PORTREVISION= 17
PORTREVISION= 18
CATEGORIES= math
MASTER_SITES= SF/octave/Octave%20Forge%20Packages/Individual%20Package%20Releases
DISTNAME= ${OCTAVE_PKGNAME}-${DISTVERSIONFULL}

View File

@ -1,7 +1,7 @@
PORTNAME= healpix
DISTVERSION= 3.50
DISTVERSIONSUFFIX= _2018Dec10
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= science
MASTER_SITES= SF/${PORTNAME}/Healpix_${DISTVERSION}/
DISTNAME= Healpix_${DISTVERSIONFULL}

View File

@ -1,6 +1,6 @@
PORTNAME= kst
DISTVERSION= ${KST_VERSION}.${KST_DATE}
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= science
MAINTAINER= makc@FreeBSD.org