]> git.pld-linux.org Git - packages/plplot.git/blob - plplot-octave.patch
3b67c2702590ba04d25e07b03a2a62e7db8404fd
[packages/plplot.git] / plplot-octave.patch
1 --- plplot-5.9.9/cmake/modules/octave.cmake.orig        2011-10-13 02:43:01.000000000 +0200
2 +++ plplot-5.9.9/cmake/modules/octave.cmake     2011-11-18 21:36:22.706537040 +0100
3 @@ -241,6 +241,7 @@
4    
5    # octave-2.1 (or higher) logic.
6    #_OCTAVE_M_DIR
7 +  if(NOT DEFINED OCTAVE_M_DIR)
8    file(WRITE ${CMAKE_BINARY_DIR}/octave_command
9    "printf(octave_config_info(\"localfcnfiledir\"));"
10    )
11 @@ -249,9 +250,19 @@
12    WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
13    OUTPUT_VARIABLE _OCTAVE_M_DIR
14    )
15 +  # Replace the OCTAVE_PREFIX with the PLplot prefix in OCTAVE_M_DIR
16 +  string(REPLACE
17 +  "${OCTAVE_PREFIX}" 
18 +  "${CMAKE_INSTALL_PREFIX}"
19 +  OCTAVE_M_DIR
20 +  ${_OCTAVE_M_DIR}
21 +  )
22 +
23    #message(STATUS "_OCTAVE_M_DIR = ${_OCTAVE_M_DIR}")
24    file(TO_CMAKE_PATH ${_OCTAVE_M_DIR} _OCTAVE_M_DIR)
25    #message(STATUS "(CMake) _OCTAVE_M_DIR = ${_OCTAVE_M_DIR}")
26 +  endif(NOT DEFINED OCTAVE_M_DIR)
27 +  message(STATUS "OCTAVE_M_DIR = ${OCTAVE_M_DIR}")
28    
29    #OCTAVE_OCT_DIR
30    if(NOT DEFINED OCTAVE_OCT_DIR)
31 @@ -268,15 +279,6 @@
32      #message(STATUS "(CMake) OCTAVE_OCT_DIR = ${OCTAVE_OCT_DIR}")
33    endif(NOT DEFINED OCTAVE_OCT_DIR)
34    
35 -  # Replace the OCTAVE_PREFIX with the PLplot prefix in OCTAVE_M_DIR
36 -  string(REPLACE
37 -  "${OCTAVE_PREFIX}" 
38 -  "${CMAKE_INSTALL_PREFIX}"
39 -  OCTAVE_M_DIR
40 -  ${_OCTAVE_M_DIR}
41 -  )
42 -  message(STATUS "OCTAVE_M_DIR = ${OCTAVE_M_DIR}")
43 -  
44    # Transform OCTAVE_OCT_DIR if prefixes not the same.
45    if(NOT CMAKE_INSTALL_PREFIX STREQUAL "${OCTAVE_PREFIX}")
46      set(OCTAVE_OCT_DIR ${PLPLOT_OCTAVE_DIR})
This page took 0.092198 seconds and 2 git commands to generate.