]> git.pld-linux.org Git - packages/plplot.git/blame - plplot-octave.patch
- release 2
[packages/plplot.git] / plplot-octave.patch
CommitLineData
72d0ef85
JR
1--- plplot-5.9.6/cmake/modules/octave.cmake~ 2010-06-05 18:11:39.000000000 +0200
2+++ plplot-5.9.6/cmake/modules/octave.cmake 2010-07-28 19:03:30.645624474 +0200
3@@ -180,6 +180,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@@ -188,6 +189,16 @@
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+ endif(NOT DEFINED OCTAVE_M_DIR)
23+ message(STATUS "OCTAVE_M_DIR = ${OCTAVE_M_DIR}")
24+
25 #OCTAVE_OCT_DIR
26 if(NOT DEFINED OCTAVE_OCT_DIR)
27 file(WRITE ${CMAKE_BINARY_DIR}/octave_command
28@@ -200,15 +211,6 @@
29 )
30 endif(NOT DEFINED OCTAVE_OCT_DIR)
31
32- # Replace the OCTAVE_PREFIX with the PLplot prefix in OCTAVE_M_DIR
33- string(REPLACE
34- "${OCTAVE_PREFIX}"
35- "${CMAKE_INSTALL_PREFIX}"
36- OCTAVE_M_DIR
37- ${_OCTAVE_M_DIR}
38- )
39- message(STATUS "OCTAVE_M_DIR = ${OCTAVE_M_DIR}")
40-
41 # Transform OCTAVE_OCT_DIR if prefixes not the same.
42 if(NOT CMAKE_INSTALL_PREFIX STREQUAL "${OCTAVE_PREFIX}")
43 set(OCTAVE_OCT_DIR ${PLPLOT_OCTAVE_DIR})
This page took 0.096571 seconds and 4 git commands to generate.