aboutsummaryrefslogtreecommitdiff
path: root/libraries/cfitsio
diff options
context:
space:
mode:
authorDominik Drobek <dominik.drobek@o2.pl>2011-06-23 21:15:30 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 21:54:01 -0300
commit169eee141e7de16a49db6366579b6d60178c6457 (patch)
tree7f3513a83885ab3ca9cb226b32b53ea88ec29656 /libraries/cfitsio
parent1adfa3e1c08d4f2738183e4645a1a9cfbf155a90 (diff)
libraries/cfitsio: Updated for version 3.28.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/cfitsio')
-rw-r--r--libraries/cfitsio/README7
-rw-r--r--libraries/cfitsio/cfitsio.SlackBuild15
-rw-r--r--libraries/cfitsio/cfitsio.info8
3 files changed, 23 insertions, 7 deletions
diff --git a/libraries/cfitsio/README b/libraries/cfitsio/README
index f17c2e788a7a..b065ce914d68 100644
--- a/libraries/cfitsio/README
+++ b/libraries/cfitsio/README
@@ -4,3 +4,10 @@ is also included for the convenience of Fortran programmers.
The documentation directory contains a comprehensive API reference
guide and instructions on using cfistio in Fortran programs.
+
+If you wish to build the library with the --enable-reentrant option,
+run the SlackBuild script like this:
+ REENTRANT=yes ./cfitsio.SlackBuild
+
+This option is disabled by default because some legacy software will
+not link against reentrant libcfitsio.
diff --git a/libraries/cfitsio/cfitsio.SlackBuild b/libraries/cfitsio/cfitsio.SlackBuild
index 44093de3fe8b..7cf5694b0aab 100644
--- a/libraries/cfitsio/cfitsio.SlackBuild
+++ b/libraries/cfitsio/cfitsio.SlackBuild
@@ -4,11 +4,11 @@
# Written by Dominik Drobek <dominik.drobek (at) o2.pl>
PRGNAM=cfitsio
-VERSION=${VERSION:-3.27}
+VERSION=${VERSION:-3.28}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-FVER=3270
+FVER=3280
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -37,6 +37,15 @@ else
LIBDIRSUFFIX=""
fi
+# --enable-reentrant is disabled by default, as it causes problems with legacy software
+REENTRANT=${REENTRANT:-no}
+
+if [ "$REENTRANT" = "no" ]; then
+ USE_REENTRANT="--disable-reentrant"
+else
+ USE_REENTRANT="--enable-reentrant"
+fi
+
set -e
rm -rf $PKG
@@ -60,7 +69,7 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
- --enable-reentrant \
+ ${USE_REENTRANT} \
--build=$ARCH-slackware-linux
# Apparently --libdir is ignored
diff --git a/libraries/cfitsio/cfitsio.info b/libraries/cfitsio/cfitsio.info
index 88f86be7af53..d9df44a2aa77 100644
--- a/libraries/cfitsio/cfitsio.info
+++ b/libraries/cfitsio/cfitsio.info
@@ -1,10 +1,10 @@
PRGNAM="cfitsio"
-VERSION="3.27"
+VERSION="3.28"
HOMEPAGE="http://heasarc.gsfc.nasa.gov/fitsio/"
-DOWNLOAD="ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3270.tar.gz"
-MD5SUM="2a72b323de3f40ad1a671f2167500336"
+DOWNLOAD="ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3280.tar.gz"
+MD5SUM="fdb9c0f51678b47e78592c70fb5dc793"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Dominik Drobek"
EMAIL="dominik.drobek@o2.pl"
-APPROVED="rworkman"
+APPROVED="dsomero"