cfitsio: fix distfiles, fix musl build.

This commit is contained in:
JkktBkkt 2025-06-16 04:42:45 +03:00 committed by classabbyamp
parent aff3814f72
commit 3be26f764c
2 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,15 @@
Adapted from: https://cgit.freebsd.org/ports/tree/astro/cfitsio/files/patch-configure?id=6068c041405c834cf6b223921f12671c9bc7c4df
Reference: https://cgit.freebsd.org/ports/commit/astro/cfitsio/Makefile?id=7eda11c87c30c735058e9393d54b631a74cf566a
diff --git a/configure b/configure
index fc5b8712251..d6f39e056b2 100755
--- a/configure
+++ b/configure
@@ -18925,8 +18925,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

@ -1,7 +1,7 @@
# Template file for 'cfitsio' # Template file for 'cfitsio'
pkgname=cfitsio pkgname=cfitsio
version=4.6.2 version=4.6.2
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-reentrant" configure_args="--enable-reentrant"
makedepends="libcurl-devel" makedepends="libcurl-devel"
@ -9,7 +9,7 @@ short_desc="Library for reading and writing data files in FITS data format"
maintainer="Helmut Pozimski <helmut@pozimski.eu>" maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="custom:NASA license" license="custom:NASA license"
homepage="https://heasarc.gsfc.nasa.gov/fitsio/" homepage="https://heasarc.gsfc.nasa.gov/fitsio/"
distfiles="http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${pkgname}-${version}.tar.gz" distfiles="https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${pkgname}-${version}.tar.gz"
checksum=66fd078cc0bea896b0d44b120d46d6805421a5361d3a5ad84d9f397b1b5de2cb checksum=66fd078cc0bea896b0d44b120d46d6805421a5361d3a5ad84d9f397b1b5de2cb
if [ -z "$CROSS_BUILD" ]; then if [ -z "$CROSS_BUILD" ]; then