Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updates for osx binary.

  • Loading branch information...
commit 09db8fe333ad0d8cd22d006347fcc204bc4bb8f6 1 parent dab8e66
Andrej Vodopivec andrejv authored
8 macosx/Makefile
View
@@ -1,5 +1,5 @@
APPDIR = $(HOME)/Desktop
-VERSION = 5.24.0
+VERSION = 5.27.0
LISP_PROGRAM = /usr/local/bin/sbcl
LISP_NAME = sbcl
@@ -12,14 +12,14 @@ all:
./configure --with-$(LISP_NAME) --prefix=$(PREFIX)
make
platypus -F -y -a Maxima \
- -c macosx/script \
-p /bin/sh \
-o None \
- -i interfaces/xmaxima/maxima-new.png \
+ -i macosx/appIcon.icns \
-V $(VERSION) \
-u "Maxima Development Team" \
-I net.sourceforge.maxima \
- $(MAXIMA_APP)
+ macosx/script $(MAXIMA_APP)
make install
install -c macosx/maxima.sh $(APPRESOURCES)
+ install -c macosx/xmaxima.sh $(APPRESOURCES)
install -c $(LISP_PROGRAM) $(BINDIR)
BIN  macosx/appIcon.icns
View
Binary file not shown
7 macosx/maxima.sh
View
@@ -1,6 +1,9 @@
-#!/bin/sh
+#!/bin/bash
-ROOT=`(cd \`dirname $0\` > /dev/null 2>&1 ; pwd)`
+SCRIPT="${BASH_SOURCE[0]}"
+while [ -L "$SCRIPT" ] ; do SCRIPT=`(readlink "$SCRIPT")` ; done
+
+ROOT=`(cd \`dirname "$SCRIPT"\` > /dev/null 2>&1 ; pwd)`
MAXIMA_PREFIX=$ROOT/maxima/
export MAXIMA_PREFIX
16 macosx/xmaxima.sh
View
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+SCRIPT="${BASH_SOURCE[0]}"
+while [ -L "$SCRIPT" ] ; do SCRIPT=`(readlink "$SCRIPT")` ; done
+
+ROOT=`(cd \`dirname "$SCRIPT"\` > /dev/null 2>&1 ; pwd)`
+
+VERSION=`ls "$ROOT/maxima/share/maxima/"`
+MAXIMA_XMAXIMADIR=$ROOT/maxima/share/maxima/$VERSION/xmaxima
+export MAXIMA_XMAXIMADIR
+XMAXIMA_MAXIMA=$ROOT/maxima.sh
+
+PATH="$MAXIMA_PREFIX/bin:$PATH"
+export PATH
+
+exec wish $ROOT/maxima/bin/xmaxima "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.