changeset 2862:e93d77b61f17

Include support for building Octave.
author John W. Eaton <jwe@octave.org>
date Fri, 16 Nov 2012 12:56:23 -0500
parents 18e1f9937a9c
children 54464afe91f3
files index.html src/octave.mk
diffstat 2 files changed, 33 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/index.html	Thu Nov 15 18:06:01 2012 -0500
+++ b/index.html	Fri Nov 16 12:56:23 2012 -0500
@@ -1664,6 +1664,11 @@
         <td id="ocaml-flexdll-website"><a href="http://alain.frisch.fr/">flexdll</a></td>
     </tr>
     <tr>
+        <td id="octave-package">octave</td>
+        <td id="octave-version">3.7.0+</td>
+        <td id="octave-website"><a href="http://octave.org/">Octave</a></td>
+    </tr>
+    <tr>
         <td id="ogg-package">ogg</td>
         <td id="ogg-version">1.3.0</td>
         <td id="ogg-website"><a href="http://www.xiph.org/ogg/">OGG</a></td>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/octave.mk	Fri Nov 16 12:56:23 2012 -0500
@@ -0,0 +1,28 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := octave
+$(PKG)_IGNORE   :=
+$(PKG)_CHECKSUM := 1ea936554aaabaabb747a4fcf98ecfbbfb265656
+$(PKG)_FILE     := octave-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL      := http://jweaton.org/$($(PKG)_FILE)
+$(PKG)_DEPS     := blas lapack pcre readline gcc
+
+define $(PKG)_UPDATE
+    echo 'Warning: Updates are temporarily disabled for package octave.' >&2;
+    echo $(octave_VERSION)
+endef
+
+define $(PKG)_BUILD
+    # build GCC and support libraries
+    mkdir '$(1).build'
+    cd '$(1).build' && '$(1)/octave-$($(PKG)_VERSION)/configure' \
+        --host='$(TARGET)' \
+        --build="`config.guess`" \
+        --prefix='$(PREFIX)/$(TARGET)' \
+        --without-opengl \
+        --disable-docs \
+        --disable-gui
+    sed -i '/^#define \(gm\|local\)time rpl_/d' '$(1).build/config.h'
+    $(MAKE) -C '$(1).build' -j '$(JOBS)' install
+endef