Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 157508
Collapse All | Expand All

(-)scilab-4.1/Makefile.in.orig (-95 / +12 lines)
Lines 1-19 Link Here
1
SHELL = /bin/sh
1
SHELL = /bin/sh
2
2
3
binary:
4
	@if test -f .binary; then \
5
		echo "Humm... this is a binary version"; \
6
		config/findpath; \
7
		(cd scripts; make); \
8
		echo "Installation done"; \
9
	else \
10
		echo "***************************************"; \
11
		echo "Humm... this is a source version."; \
12
		echo "Please read the README_Unix file first."; \
13
		echo "***************************************"; \
14
	fi
15
16
#SCIDIR=.
17
include Path.incl
3
include Path.incl
18
include Makefile.incl
4
include Makefile.incl
19
5
Lines 125-155 Link Here
125
	$(SCIBASE)/pvm3/bin/@PVMARCH@/*
111
	$(SCIBASE)/pvm3/bin/@PVMARCH@/*
126
112
127
BINDISTFILES = \
113
BINDISTFILES = \
128
	$(SCIBASE)/.binary \
129
	$(SCIBASE)/.pvmd.conf \
130
	$(SCIBASE)/ACKNOWLEDGEMENTS \
131
	$(SCIBASE)/CHANGES \
132
	$(SCIBASE)/Makefile \
133
	$(SCIBASE)/Makefile.OBJ \
134
	$(SCIBASE)/Makefile.incl \
114
	$(SCIBASE)/Makefile.incl \
135
	$(SCIBASE)/Makemex \
136
	$(SCIBASE)/Path.incl \
137
	$(SCIBASE)/README_Unix \
138
	$(SCIBASE)/RELEASE_NOTES \
139
	$(SCIBASE)/SVN_revision.incl \
140
	$(SCIBASE)/Version.incl \
115
	$(SCIBASE)/Version.incl \
141
	$(SCIBASE)/configure \
116
	$(SCIBASE)/configure \
142
	$(SCIBASE)/libtool \
143
	$(SCIBASE)/license.txt \
144
	$(SCIBASE)/licence.txt \
145
	$(SCIBASE)/scilab.quit \
117
	$(SCIBASE)/scilab.quit \
146
	$(SCIBASE)/scilab.star \
118
	$(SCIBASE)/scilab.star \
147
	$(SCIBASE)/X11_defaults \
119
	$(SCIBASE)/X11_defaults \
148
	$(SCIBASE)/bin \
120
	$(SCIBASE)/bin \
149
	$(SCIBASE)/config \
121
	$(SCIBASE)/config/Makeso.incl \
122
	$(SCIBASE)/libtool \
150
	$(SCIBASE)/contrib \
123
	$(SCIBASE)/contrib \
151
	$(SCIBASE)/demos \
124
	$(SCIBASE)/demos \
152
	$(SCIBASE)/examples \
153
	$(SCIBASE)/imp/NperiPos.ps \
125
	$(SCIBASE)/imp/NperiPos.ps \
154
	$(SCIBASE)/imp/giffonts \
126
	$(SCIBASE)/imp/giffonts \
155
	$(SCIBASE)/macros \
127
	$(SCIBASE)/macros \
Lines 181-193 Link Here
181
	$(SCIBASE)/tcl \
153
	$(SCIBASE)/tcl \
182
	$(SCIBASE)/util
154
	$(SCIBASE)/util
183
155
184
tarbindist:
185
	touch .binary
186
	@STRIP@ bin/scilex
187
	cd examples; make distclean
188
	cd .. ; tar cvf $(SCIBASE)/$(SCIBASE)-bin.tar $(BINDISTFILES) @PVMINST@ 
189
	$(RM) .binary
190
191
#-------------------------------------------------
156
#-------------------------------------------------
192
# installation 
157
# installation 
193
# Scilab is installed in $(PREFIX)/lib/SCIBASE
158
# Scilab is installed in $(PREFIX)/lib/SCIBASE
Lines 210-237 Link Here
210
	pvm3/bin/@PVMARCH@/*
175
	pvm3/bin/@PVMARCH@/*
211
176
212
INSTBINDISTFILES = \
177
INSTBINDISTFILES = \
213
	.pvmd.conf \
214
	ACKNOWLEDGEMENTS \
215
	CHANGES \
216
	Makefile \
217
        Makefile.OBJ \
218
	Makefile.incl \
178
	Makefile.incl \
219
	Makemex \
220
        Path.incl \
221
	README_Unix \
222
	Version.incl \
223
	configure \
224
	libtool \
179
	libtool \
225
	license.txt \
226
	licence.txt \
227
	scilab.quit \
180
	scilab.quit \
228
	scilab.star \
181
	scilab.star \
229
	X11_defaults \
182
	X11_defaults \
230
	bin \
183
	bin \
231
	config \
184
	config/Makeso.incl \
232
	contrib \
185
	contrib \
233
	demos \
186
	demos \
234
	examples \
235
	imp/NperiPos.ps \
187
	imp/NperiPos.ps \
236
	imp/giffonts \
188
	imp/giffonts \
237
	macros \
189
	macros \
Lines 262-310 Link Here
262
DOCNAME=$(SCIBASE)
214
DOCNAME=$(SCIBASE)
263
215
264
install:
216
install:
265
	@if test `pwd`/..  != $(PREFIX)/lib ; then \
217
	install -d ${D}$(PREFIX)/lib/$(SCIBASE); \
266
		install -d $(PREFIX)/lib/$(SCIBASE); \
218
		( for file in $(INSTBINDISTFILES) $(INSTPVMBINDISTFILES) $(INSTPVMBINDISTFILES1); do tar cf - $${file} | (cd ${D}$(PREFIX)/lib/$(SCIBASE); tar xf -); done); 
267
		( for file in $(INSTBINDISTFILES) @PVMINST1@; do tar cf - $${file}  | (cd $(PREFIX)/lib/$(SCIBASE); tar xf -); done); \
219
268
		(cd $(PREFIX)/lib/$(SCIBASE);touch .binary; make postinstall PREFIX=$(PREFIX) ) \
220
	install -d ${D}$(PREFIX)/share/doc/$(DOCNAME)/
269
	fi
270
	install -d $(PREFIX)/share/doc/$(DOCNAME)/
271
	install ACKNOWLEDGEMENTS CHANGES README_Unix Version.incl \
221
	install ACKNOWLEDGEMENTS CHANGES README_Unix Version.incl \
272
		licence.txt license.txt  $(PREFIX)/share/doc/$(DOCNAME)
222
		licence.txt license.txt ${D}$(PREFIX)/share/doc/$(DOCNAME)
273
	install -d $(PREFIX)/bin 
223
	install -d ${D}$(PREFIX)/bin 
274
	$(RM)  $(PREFIX)/bin/scilab
224
	ln -fs $(PREFIX)/lib/$(SCIBASE)/bin/scilab ${D}$(PREFIX)/bin/scilab
275
	ln -fs $(PREFIX)/lib/$(SCIBASE)/bin/scilab $(PREFIX)/bin/scilab
225
	ln -fs $(PREFIX)/lib/$(SCIBASE)/bin/intersci ${D}$(PREFIX)/bin/intersci
276
	$(RM)  $(PREFIX)/bin/intersci
226
	ln -fs $(PREFIX)/lib/$(SCIBASE)/bin/intersci-n ${D}$(PREFIX)/bin/intersci-n
277
	ln -fs $(PREFIX)/lib/$(SCIBASE)/bin/intersci $(PREFIX)/bin/intersci
278
	$(RM)  $(PREFIX)/bin/intersci-n
279
	ln -fs $(PREFIX)/lib/$(SCIBASE)/bin/intersci-n $(PREFIX)/bin/intersci-n
280
281
# DESTDIR is the final destination of the file 
282
# it can be different from $(PREFIX)/lib
283
# when we use package builders for rpm or deb files 
284
285
DESTDIR=$(PREFIX)/lib
286
287
postinstall: 
288
	@echo "creating Path.incl SCIDIR=$(DESTDIR)/$(SCIBASE)"
289
	@echo "SCIDIR=$(DESTDIR)/$(SCIBASE)"  > Path.incl
290
	@cd scripts; make
291
	@cd examples ; make distclean > /dev/null
292
	@cp contrib/loader.sce contrib-loader.sce 
293
	@$(RM) -f -r contrib 
294
	@mkdir contrib 
295
	@mv contrib-loader.sce contrib/loader.sce
296
	@find man -name "*.xml" -print0 | xargs -0 $(RM)
297
	@@STRIP@ bin/scilex;
298
299
uninstall:
300
	$(RM) -r $(PREFIX)/$(SCIBASE)
301
	$(RM) $(PREFIX)/bin/scilab
302
	$(RM) $(PREFIX)/bin/intersci
303
	$(RM) $(PREFIX)/bin/intersci-n
304
305
cvsclean::
306
	@$(RM) -f -r geci xless wless xmetanet routines/comm routines/libcomm
307
	@cd man; $(RM) -f -r arma comm control dcd elementary fileio functions graphics gui identification linear metanet nonlinear polynomials programming pvm robust scicos signal sound strings tdcs time-date tclsci translation utilities
308
227
309
setversion : 
310
	echo "SCIVERSION=Scilab-4.1-SVN-`date --iso`" > Version.incl

Return to bug 157508