aboutsummaryrefslogtreecommitdiff
path: root/iraf.axe/build.sh
blob: 64e538444ac4812cc7e0642543f9df540fae2060 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Install aXe binaries into STSDAS in the same way as the Ureka pkg-install.

cd ccc

# I'd have thought conda-build would take care of this but it appears not to:
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PREFIX/lib"
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$PREFIX/lib"

./configure --prefix="$PREFIX" --with-cfitsio-prefix="$PREFIX" \
            --with-wcstools-prefix="$PREFIX/lib" --build=x86 \
            --with-gsl-prefix="$PREFIX" || exit 1

make || exit 1

# Creating a dummy STSDAS directory avoids having IRAF as a heavyweight build
# dependency when it's not needed (at the cost of this script having to know
# the IRAF directory structure in the env, but that's not likely to change):
stdir=$PREFIX/iraf_extern/stsdas
mkdir -p "$stdir/bin" && cp -p bin/* "$stdir/bin/" || exit 1