view src/octave.mk @ 2862:e93d77b61f17

Include support for building Octave.
author John W. Eaton <jwe@octave.org>
date Fri, 16 Nov 2012 12:56:23 -0500
parents
children 028eabbb0f76
line wrap: on
line source

# 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