]> git.pld-linux.org Git - packages/plplot.git/commitdiff
- parametrized OCTAVE_M_DIR var
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 28 Jul 2010 22:23:57 +0000 (22:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    plplot-octave.patch -> 1.1

plplot-octave.patch [new file with mode: 0644]

diff --git a/plplot-octave.patch b/plplot-octave.patch
new file mode 100644 (file)
index 0000000..9bd15ab
--- /dev/null
@@ -0,0 +1,43 @@
+--- plplot-5.9.6/cmake/modules/octave.cmake~   2010-06-05 18:11:39.000000000 +0200
++++ plplot-5.9.6/cmake/modules/octave.cmake    2010-07-28 19:03:30.645624474 +0200
+@@ -180,6 +180,7 @@
+   
+   # octave-2.1 (or higher) logic.
+   #_OCTAVE_M_DIR
++  if(NOT DEFINED OCTAVE_M_DIR)
+   file(WRITE ${CMAKE_BINARY_DIR}/octave_command
+   "printf(octave_config_info(\"localfcnfiledir\"));"
+   )
+@@ -188,6 +189,16 @@
+   WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
+   OUTPUT_VARIABLE _OCTAVE_M_DIR
+   )
++  # Replace the OCTAVE_PREFIX with the PLplot prefix in OCTAVE_M_DIR
++  string(REPLACE
++  "${OCTAVE_PREFIX}" 
++  "${CMAKE_INSTALL_PREFIX}"
++  OCTAVE_M_DIR
++  ${_OCTAVE_M_DIR}
++  )
++  endif(NOT DEFINED OCTAVE_M_DIR)
++  message(STATUS "OCTAVE_M_DIR = ${OCTAVE_M_DIR}")
++  
+   #OCTAVE_OCT_DIR
+   if(NOT DEFINED OCTAVE_OCT_DIR)
+   file(WRITE ${CMAKE_BINARY_DIR}/octave_command
+@@ -200,15 +211,6 @@
+   )
+   endif(NOT DEFINED OCTAVE_OCT_DIR)
+-  # Replace the OCTAVE_PREFIX with the PLplot prefix in OCTAVE_M_DIR
+-  string(REPLACE
+-  "${OCTAVE_PREFIX}" 
+-  "${CMAKE_INSTALL_PREFIX}"
+-  OCTAVE_M_DIR
+-  ${_OCTAVE_M_DIR}
+-  )
+-  message(STATUS "OCTAVE_M_DIR = ${OCTAVE_M_DIR}")
+-  
+   # Transform OCTAVE_OCT_DIR if prefixes not the same.
+   if(NOT CMAKE_INSTALL_PREFIX STREQUAL "${OCTAVE_PREFIX}")
+     set(OCTAVE_OCT_DIR ${PLPLOT_OCTAVE_DIR})
This page took 0.153949 seconds and 4 git commands to generate.