aboutsummaryrefslogtreecommitdiff
path: root/iraf.axe/build.sh
blob: b1f9814a6ee9747cc609785f8dd9d987e68dabf9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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

# Install obligatory licensing information (best kept in pkg with binaries):
cp -p "$RECIPE_DIR/copyright.aXe" "$stdir/" || exit 1