diff --git a/macOS/build.sh b/macOS/build.sh index fec2090562f15bf6c43ea323a318cceac9a0958b..d86768d78c8edc063d793272ebf34822bfad1da1 100755 --- a/macOS/build.sh +++ b/macOS/build.sh @@ -92,7 +92,6 @@ PKGFILES="$ROOTDIR"/macOS/pkg/"$NAME" mkdir -p \ "$PKGFILES"/mex/matlab/maci64-7.9-9.3 \ "$PKGFILES"/mex/matlab/maci64-9.4-9.9 \ - "$PKGFILES"/mex/octave \ "$PKGFILES"/doc/dynare++ \ "$PKGFILES"/dynare++ \ "$PKGFILES"/scripts \ @@ -151,26 +150,6 @@ make -j"$NTHREADS" cp -L "$ROOTDIR"/mex/matlab/* "$PKGFILES"/mex/matlab/maci64-9.4-9.9 -## -## Create mex for Octave -## -cd "$ROOTDIR"/mex/build/octave -OCTAVE_VERSION=$(grep OCTAVE_VERSION "$ROOTDIR"/macOS/deps/versions.mk | cut -d'=' -f2 | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') -OCTAVE_USR_DIR="/Applications/Octave-$OCTAVE_VERSION.app/Contents/Resources/usr" -OCTAVE_BIN_DIR="$OCTAVE_USR_DIR/Cellar/octave-octave-app@$OCTAVE_VERSION/$OCTAVE_VERSION/bin" -PATH="$OCTAVE_BIN_DIR:$PATH" CC=$CC CXX=$CXX ./configure \ - PACKAGE_VERSION="$VERSION" \ - PACKAGE_STRING="dynare $VERSION" \ - CXXFLAGS=-I/usr/local/include \ - LDFLAGS="-static-libgcc -L$OCTAVE_USR_DIR/lib " \ - --with-gsl="$LIB64"/gsl \ - --with-matio="$LIB64"/matio \ - --with-slicot="$LIB64"/Slicot/with-underscore -PATH="$OCTAVE_BIN_DIR:$PATH" make -j"$NTHREADS" -cp -L "$ROOTDIR"/mex/octave/* "$PKGFILES"/mex/octave -echo -e "function v = supported_octave_version\nv=\"$OCTAVE_VERSION\";\nend" > "$PKGFILES"/matlab/supported_octave_version.m - - ## ## Make package ## diff --git a/macOS/deps/Makefile b/macOS/deps/Makefile index c1cb2d12ed9eaede3da3cff89a629c1184dc9eba..ba6b2c6e2ba521159f8683b065a4e89ee8c6bd18 100644 --- a/macOS/deps/Makefile +++ b/macOS/deps/Makefile @@ -1,4 +1,4 @@ -# Copyright © 2019-2020 Dynare Team +# Copyright © 2019-2021 Dynare Team # # This file is part of Dynare. # @@ -21,8 +21,7 @@ ROOT_PATH = $(realpath .) WGET_OPTIONS := --no-verbose --no-use-server-timestamps --retry-connrefused --retry-on-host-error -.PHONY: all build octave \ - build build-slicot build-x13as \ +.PHONY: all build build-slicot build-x13as \ clean-lib clean-libslicot clean-x13as-bin \ clean-src clean-slicot-src clean-x13as-src \ clean-tar clean-slicot-tar clean-x13as-tar \ diff --git a/macOS/deps/versions.mk b/macOS/deps/versions.mk index 19f041cf5b8474883f39f03c5723fa075c32408a..c3e232fe34baca6372497762adb337250baa1fd1 100644 --- a/macOS/deps/versions.mk +++ b/macOS/deps/versions.mk @@ -1,3 +1,2 @@ SLICOT_VERSION = 5.0+20101122 X13AS_VERSION = 1.1_B39 -OCTAVE_VERSION = 4.4.1 diff --git a/mex/build/octave/configure.ac b/mex/build/octave/configure.ac index 0e8db7012b4899104ba3096ce821bbb99eeb721f..d29942c0640a08a9352922070cdb345445b9fe21 100644 --- a/mex/build/octave/configure.ac +++ b/mex/build/octave/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -dnl Copyright © 2009-2020 Dynare Team +dnl Copyright © 2009-2021 Dynare Team dnl dnl This file is part of Dynare. dnl @@ -36,12 +36,6 @@ CXXFLAGS="$($MKOCTFILE -p CXXFLAGS) -Wall -Wno-parentheses -Wold-style-cast" LDFLAGS="$($MKOCTFILE -p LFLAGS) $($MKOCTFILE -p LDFLAGS)" AC_CANONICAL_HOST -case ${host_os} in - darwin*) - CXXFLAGS="$($MKOCTFILE -p ALL_CXXFLAGS) -Wall -Wno-parentheses -Wold-style-cast -O2" - LDFLAGS+=" $($MKOCTFILE -p OCTAVE_LIBS)" - ;; -esac OCTAVE_VERSION=$($MKOCTFILE -v 2>&1 | sed 's/mkoctfile, version //') AX_COMPARE_VERSION([$OCTAVE_VERSION], [lt], [4.2], [AC_MSG_ERROR([Your Octave is too old, please upgrade to version 4.2 at least (or disable Octave support with --disable-octave).])])