Skip to content

Commit

Permalink
Add cfitsio lib to build fpack and funpack
Browse files Browse the repository at this point in the history
This reverts commit c064ccf.
  • Loading branch information
olebole committed Apr 2, 2024
1 parent c8b2cd8 commit fe44931
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export RMFILES=$(iraf)unix/bin/rmfiles.e

export CFLAGS = -mmacosx-version-min=$(MINVERSION) -arch $(MACARCH) -O2
export LDFLAGS = -mmacosx-version-min=$(MINVERSION) -arch $(MACARCH) -O2
export XC_CFLAGS = $(CFLAGS) -I$(iraf)include
export XC_LFLAGS = $(LDFLAGS)
export XC_CFLAGS = $(CFLAGS) -I$(BUILDDIR)/cfitsio
export XC_LFLAGS = $(LDFLAGS) -L$(BUILDDIR)/cfitsio

PATH += :$(BINDIR)

Expand Down Expand Up @@ -132,7 +132,15 @@ ctio.pkg: core.pkg
--version 0+2023-11-12 \
$@

fitsutil.pkg: core.pkg
# libcfitsio.a is required for fitsutil
$(BUILDDIR)/cfitsio/libcfitsio.a:
mkdir -p $(BUILDDIR)/cfitsio
curl -L https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-4.4.0.tar.gz | \
tar xzf - -C $(BUILDDIR)/cfitsio --strip-components=1
cd $(BUILDDIR)/cfitsio && ./configure --disable-curl
$(MAKE) -C $(BUILDDIR)/cfitsio libcfitsio.a

fitsutil.pkg: core.pkg $(BUILDDIR)/cfitsio/libcfitsio.a
mkdir -p $(BUILDDIR)/fitsutil
curl -L https://github.com/iraf-community/iraf-fitsutil/archive/0858bbb.tar.gz | \
tar xzf - -C $(BUILDDIR)/fitsutil --strip-components=1
Expand Down

0 comments on commit fe44931

Please sign in to comment.