Skip to content

Commit

Permalink
Create matlab-runtime
Browse files Browse the repository at this point in the history
For now, keep the package non-relocatable. The `patchelf` tool fails
with obscure error messages on MATLAB Runtime binaries.
  • Loading branch information
DimitriPapadopoulos committed Oct 11, 2024
1 parent ffdb132 commit 6102bcb
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
16 changes: 16 additions & 0 deletions recipes/matlab-runtime/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Create the matlab-runtime package

Find more information in the
[MATLAB Runtime](https://mathworks.com/help/compiler/matlab-runtime.html)
MathWorks documentation.

The binaries are available starting from the
[Download and Install MATLAB Runtime](https://mathworks.com/help/compiler/install-the-matlab-runtime.html)
page.

Choose 9.7 as the Matlab runtime version, as it is the official
MATLAB Runtime Version number according to the
[MATLAB Runtime](https://mathworks.com/products/compiler/matlab-runtime.html)
download page. Alternatives include v97 or R2019b. None of these
versioning schemes account for the update version (R2019b Update 9) of
the MATLAB release. Sigh.
30 changes: 30 additions & 0 deletions recipes/matlab-runtime/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package:
name: matlab-runtime
version: 9.7

source:
url: https://ssd.mathworks.com/supportfiles/downloads/R2019b/Release/9/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2019b_Update_9_glnxa64.zip
sha256: d213e2960a20332f121ec4addf81469b2a2aab2ad8b4ed4226875da6e8af7c65

build:
number: 0
script:
- unzip MATLAB_Runtime_R2019b_Update_9_glnxa64.zip
- ./install -mode silent -agreeToLicense yes -outputFile install_log.txt -destinationFolder $PREFIX/MATLAB/MATLAB_Runtime
dynamic_linking:
binary_relocation: false

requirements:
build:
- unzip

about:
homepage: https://mathworks.com/help/compiler/install-the-matlab-runtime.html
license_file: MCR_license.txt
summary: |
Run packaged MATLAB applications on computers without MATLAB
description: |
MATLAB Runtime (MCR) is a freely-available set of shared libraries,
MATLAB code, and other files that enables the execution of MATLAB files
on computers without an installed version of MATLAB.
documentation: https://mathworks.com/help/compiler/matlab-runtime.html

0 comments on commit 6102bcb

Please sign in to comment.