File: add-tcl-multiarch.diff

package info (click to toggle)
plplot 5.10.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 26,280 kB
  • ctags: 13,512
  • sloc: ansic: 83,001; xml: 27,081; ada: 18,878; cpp: 15,966; tcl: 11,651; python: 7,075; f90: 7,058; ml: 6,974; java: 6,665; perl: 5,029; sh: 2,210; makefile: 199; lisp: 75; sed: 25; fortran: 7
file content (83 lines) | stat: -rw-r--r-- 2,685 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Description: Change the location of tcl binaries to make the packages multiarch compliant.
Author: Andrew Ross <andrewross@users.sourceforge.net>
Index: plplot-5.10.0/bindings/tk/CMakeLists.txt
===================================================================
--- plplot-5.10.0.orig/bindings/tk/CMakeLists.txt	2014-02-28 09:59:44.890958194 +0000
+++ plplot-5.10.0/bindings/tk/CMakeLists.txt	2014-02-28 09:59:44.870958194 +0000
@@ -50,7 +50,7 @@
 
   install(TARGETS plserver
     EXPORT export_plplot
-    DESTINATION ${BIN_DIR}
+    DESTINATION ${LIBEXEC_DIR}
     )
 endif(ENABLE_tkX)
 
Index: plplot-5.10.0/cmake/modules/instdirs.cmake
===================================================================
--- plplot-5.10.0.orig/cmake/modules/instdirs.cmake	2014-02-28 09:59:44.890958194 +0000
+++ plplot-5.10.0/cmake/modules/instdirs.cmake	2014-02-28 09:59:44.870958194 +0000
@@ -71,6 +71,12 @@
 CACHE PATH "install location for man documentation"
 )
 
+set(
+CMAKE_INSTALL_LIBEXECDIR
+${CMAKE_INSTALL_LIBDIR}/${PACKAGE}${VERSION}/bin
+CACHE PATH "install location for executables called by other executables or libraries"
+)
+
 # Configured PLplot install locations determined from user-updatable
 # cached values above.
 
@@ -112,6 +118,9 @@
 # Man pages.
 set(MAN_DIR ${CMAKE_INSTALL_MANDIR})
 
+# Libexec.
+set(LIBEXEC_DIR ${CMAKE_INSTALL_LIBEXECDIR})
+
 # Other path-related variables.
 
 # Absolute path of top-level build directory.
Index: plplot-5.10.0/plplot_config.h.in
===================================================================
--- plplot-5.10.0.orig/plplot_config.h.in	2014-02-28 09:59:44.890958194 +0000
+++ plplot-5.10.0/plplot_config.h.in	2014-02-28 09:59:44.874958194 +0000
@@ -20,6 +20,9 @@
 // Location of executables
 #define BIN_DIR                  "@BIN_DIR@"
 
+// Location of library executables
+#define LIBEXEC_DIR              "@LIBEXEC_DIR@"
+
 // Location of Build tree
 #define BUILD_DIR                "@BUILD_DIR@"
 
Index: plplot-5.10.0/src/plctrl.c
===================================================================
--- plplot-5.10.0.orig/src/plctrl.c	2014-02-28 09:59:44.890958194 +0000
+++ plplot-5.10.0/src/plctrl.c	2014-02-28 09:59:44.878958194 +0000
@@ -2124,6 +2124,7 @@
 //!	current directory
 //!	PLPLOT_HOME_ENV/bin = $(PLPLOT_HOME)/bin
 //!	BIN_DIR
+//!	LIBEXEC_DIR
 //!
 //! The caller must free the returned pointer (points to malloc'ed memory)
 //! when finished with it.
@@ -2189,6 +2190,14 @@
     if ( !plFindName( fs ) )
         return fs;
 #endif
+
+// LIBEXEC_DIR
+
+#if defined ( LIBEXEC_DIR )
+    plGetName( LIBEXEC_DIR, "", fn, &fs );
+    if ( !plFindName( fs ) )
+        return fs;
+#endif
 
 // Crapped out