summaryrefslogtreecommitdiff
path: root/ds9/build.sh
blob: 31f3d89703437718053e73c2edba7a1e8baa5116 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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