Package: libsbml / 5.10.0+dfsg-1

mexext.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: get the matching mex extension
 Matlabs script $MATLABROOT/bin/mexext fails in an chrooted environment.
 .
Author: Ivo Maintz <ivo@maintz.de>

---
Last-Update: <2014-03-01>

--- libsbml-5.10.0.orig/src/bindings/matlab/FindMatlab.cmake
+++ libsbml-5.10.0/src/bindings/matlab/FindMatlab.cmake
@@ -162,7 +162,7 @@ IF(WIN32)
   SET(MATLAB_MATLAB_COMMAND "${MATLAB_ROOT_PATH}/bin/matlab.bat")
 ELSE (WIN32)
 	SET(MATLAB_MEX_COMMAND "${MATLAB_ROOT_PATH}/bin/mex")
-	SET(MATLAB_MEXEXT ${MATLAB_ROOT_PATH}/bin/mexext)
+	SET(MATLAB_MEXEXT "${CMAKE_SOURCE_DIR}/debian/bin/mexext")
 	SET(MATLAB_MATLAB_COMMAND "${MATLAB_ROOT_PATH}/bin/matlab")
 	MESSAGE(STATUS ${MATLAB_ROOT_PATH}/bin/maci64/)
 	if(APPLE)