]> git.pld-linux.org Git - packages/OpenCASCADE.git/blame - OpenCASCADE6.3.0-DESTDIR.patch
- from Debian changelog:
[packages/OpenCASCADE.git] / OpenCASCADE6.3.0-DESTDIR.patch
CommitLineData
ab499437
TP
1diff -uNr old-OpenCASCADE6.3.0/ros/Makefile.am OpenCASCADE6.3.0/ros/Makefile.am
2--- old-OpenCASCADE6.3.0/ros/Makefile.am 2008-09-09 17:49:10.000000000 +0200
3+++ OpenCASCADE6.3.0/ros/Makefile.am 2008-10-01 19:19:50.000000000 +0200
4@@ -108,126 +108,126 @@
5 dir_SunOS=sun
6
7 install-exec-local:
8- $(INSTALL) -d $(prefix)/$(platform)
9- if [ -e $(prefix)/bin -a ! -e $(prefix)/$(platform)/bin ]; then \
10- cd $(prefix)/$(platform) && ln -s ../bin bin; \
11+ $(INSTALL) -d $(DESTDIR)$(prefix)/$(platform)
12+ if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(platform)/bin ]; then \
13+ cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../bin bin; \
14 fi
15- if [ -e $(prefix)/lib -a ! -e $(prefix)/$(platform)/lib ]; then \
16- cd $(prefix)/$(platform) && ln -s ../lib lib; \
17+ if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(platform)/lib ]; then \
18+ cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../lib lib; \
19 fi
20- $(INSTALL) -d $(prefix)/$(dir_$(platform))
21- if [ -e $(prefix)/bin -a ! -e $(prefix)/$(dir_$(platform))/bin ]; then \
22- cd $(prefix)/$(dir_$(platform)) && ln -s ../bin bin; \
23+ $(INSTALL) -d $(DESTDIR)$(prefix)/$(dir_$(platform))
24+ if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(dir_$(platform))/bin ]; then \
25+ cd $(DESTDIR)$(prefix)/$(dir_$(platform)) && ln -s ../bin bin; \
26 fi
27- if [ -e $(prefix)/lib -a ! -e $(prefix)/$(dir_$(platform))/lib ]; then \
28- cd $(prefix)/$(dir_$(platform)) && ln -s ../lib lib; \
29+ if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(dir_$(platform))/lib ]; then \
30+ cd $(DESTDIR)$(prefix)/$(dir_$(platform)) && ln -s ../lib lib; \
31 fi
32- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
33+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
34 if [ "$$pd" != "$$sd" ]; then \
35- $(INSTALL) -d $(prefix)/inc; \
36- cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(prefix); \
37+ $(INSTALL) -d $(DESTDIR)$(prefix)/inc; \
38+ cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(DESTDIR)$(prefix); \
39 fi; \
40 if [ "$$pd" != "$$bd" ]; then \
41- cp -fr$(CP_$(platform)) $$bd/config.h $(prefix); \
42+ cp -fr$(CP_$(platform)) $$bd/config.h $(DESTDIR)$(prefix); \
43 fi
44- if [ -e $(prefix)/inc/config.h ]; then \
45- unlink $(prefix)/inc/config.h; \
46+ if [ -e $(DESTDIR)$(prefix)/inc/config.h ]; then \
47+ unlink $(DESTDIR)$(prefix)/inc/config.h; \
48 fi
49- cd $(prefix)/inc && ln -s ../config.h config.h
50- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
51+ cd $(DESTDIR)$(prefix)/inc && ln -s ../config.h config.h
52+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
53 if [ "$$pd" != "$$sd" -a -d $(top_srcdir)/src/UnitsAPI ]; then \
54- $(INSTALL) -d $(prefix)/src; \
55- $(INSTALL) -d $(prefix)/src/UnitsAPI; \
56- cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(prefix)/src; \
57- cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(prefix); \
58+ $(INSTALL) -d $(DESTDIR)$(prefix)/src; \
59+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/UnitsAPI; \
60+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(DESTDIR)$(prefix)/src; \
61+ cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(DESTDIR)$(prefix); \
62 fi
63- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
64+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
65 if [ "$$pd" != "$$sd" ]; then \
66 inst_dirs="$(FoundationClasses_DIRS)"; \
67 if test "x$(FoundationClasses_DIRS)" != "x"; then \
68 for d in $$inst_dirs; do \
69- $(INSTALL) -d $(prefix)/src/$$d; \
70- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
71+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
72+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
73 done; \
74 fi; \
75 fi
76- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
77+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
78 if [ "$$pd" != "$$sd" ]; then \
79 inst_dirs="$(ModelingData_DIRS)"; \
80 if test "x$(ModelingData_DIRS)" != "x"; then \
81 for d in $$inst_dirs; do \
82- $(INSTALL) -d $(prefix)/src/$$d; \
83- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
84+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
85+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
86 done; \
87 fi; \
88 fi
89- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
90+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
91 if [ "$$pd" != "$$sd" ]; then \
92 inst_dirs="$(ModelingAlgorithms_DIRS)"; \
93 if test "x$(ModelingAlgorithms_DIRS)" != "x"; then \
94 for d in $$inst_dirs; do \
95- $(INSTALL) -d $(prefix)/src/$$d; \
96- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
97+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
98+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
99 done; \
100 fi; \
101 fi
102- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
103+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
104 if [ "$$pd" != "$$sd" ]; then \
105 inst_dirs="$(Visualization_DIRS)"; \
106 if test "x$(Visualization_DIRS)" != "x"; then \
107 for d in $$inst_dirs; do \
108- $(INSTALL) -d $(prefix)/src/$$d; \
109- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
110+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
111+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
112 done; \
113 fi; \
114 fi
115- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
116+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
117 if [ "$$pd" != "$$sd" ]; then \
118 inst_dirs="$(ApplicationFramework_DIRS)"; \
119 if test "x$(ApplicationFramework_DIRS)" != "x"; then \
120 for d in $$inst_dirs; do \
121- $(INSTALL) -d $(prefix)/src/$$d; \
122- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
123+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
124+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
125 done; \
126 fi; \
127 fi
128- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
129+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
130 if [ "$$pd" != "$$sd" ]; then \
131 inst_dirs="$(DataExchange_DIRS)"; \
132 if test "x$(DataExchange_DIRS)" != "x"; then \
133 for d in $$inst_dirs; do \
134- $(INSTALL) -d $(prefix)/src/$$d; \
135- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
136+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
137+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
138 done; \
139 fi; \
140 fi
141- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
142+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
143 if [ "$$pd" != "$$sd" ]; then \
144 inst_dirs="$(Draw_DIRS)"; \
145 if test "x$(Draw_DIRS)" != "x"; then \
146 for d in $$inst_dirs; do \
147- $(INSTALL) -d $(prefix)/src/$$d; \
148- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
149+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
150+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
151 done; \
152 fi; \
153 fi
154- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
155+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
156 if [ "$$pd" != "$$sd" ]; then \
157 inst_dirs="$(WOK_DIRS)"; \
158 if test "x$(WOK_DIRS)" != "x"; then \
159 for d in $$inst_dirs; do \
160- $(INSTALL) -d $(prefix)/src/$$d; \
161- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
162+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
163+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
164 done; \
165 fi; \
166 fi
167- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
168+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
169 if [ "$$pd" != "$$sd" ]; then \
170 inst_dirs="$(Wrappers_DIRS)"; \
171 if test "x$(Wrappers_DIRS)" != "x"; then \
172 for d in $$inst_dirs; do \
173- $(INSTALL) -d $(prefix)/src/$$d; \
174- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
175+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
176+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
177 done; \
178 fi; \
179 fi
This page took 0.057472 seconds and 4 git commands to generate.