summaryrefslogtreecommitdiff
path: root/ds9/build.sh
blob: 5197c79f9dbade703f83e198858005ae451a064c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

case "$(uname)" in
Linux)
LDFLAGS='-m64'
;;
Darwin)
LDFLAGS='-arch x86_64 -m64'

sed -i -e '/codesign/d' ds9/unix/Makefile.in
;;
*)
echo "Unsupported"
exit 1
;;
esac

unix/configure TKFLAGS="--disable-xss"  # not all machines have libXss
make
mkdir -p $PREFIX/bin
cp -a bin/ds9* bin/x* $PREFIX/bin