aboutsummaryrefslogtreecommitdiff
path: root/ds9
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-10-04 14:09:21 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-10-04 14:09:21 -0400
commitb36f594450a401300d9f83ea365009cd146ae24f (patch)
tree12b16156348ad0daaa4e0a631edcfc9e543bd0ae /ds9
parent950119e49cd074efdc7e8e21a2f77ed91798ec41 (diff)
downloadcbc-recipes-b36f594450a401300d9f83ea365009cd146ae24f.tar.gz
Fix compatibility issues
Diffstat (limited to 'ds9')
-rw-r--r--ds9/ds9.ini30
1 files changed, 22 insertions, 8 deletions
diff --git a/ds9/ds9.ini b/ds9/ds9.ini
index 449aa04..be6b0e4 100644
--- a/ds9/ds9.ini
+++ b/ds9/ds9.ini
@@ -29,14 +29,28 @@ commands :
[cbc_build]
linux :
- ln -s make.darwinmavericks make.include
- sed -i -e '/^ZZ/ s/$$/ -arch x86_64/' \
- -e '/^AA/ s/$$/ -arch x86_64/' make.include
-
- sed -i -e '/CODESIGN =/c \
- CODESIGN = echo' make.include
-
- make LDFLAGS='-arch x86_64 -m64'
+ case "$$(uname)" in
+ Linux)
+ LDFLAGS='-m64'
+ ln -s make.linux64 make.include
+ ;;
+ Darwin)
+ LDFLAGS='-arch x86_64 -m64'
+ cp -a make.darwinmavericks make.include
+
+ sed -i -e '/^ZZ/ s/$$/ -arch x86_64/' \
+ -e '/^AA/ s/$$/ -arch x86_64/' make.include
+ sed -i -e '/CODESIGN =/c \
+ CODESIGN = echo' make.include
+ ;;
+ *)
+ echo "Unsupported"
+ exit 1
+ ;;
+ esac
+
+
+ make
mkdir -p $$PREFIX/bin
cp -a bin/ds9* bin/x* $$PREFIX/bin
windows :