/
octave-3.6.0.info
629 lines (572 loc) · 20.9 KB
/
octave-3.6.0.info
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
Info2: <<
Package: octave%type_pkg[-atlas]%type_pkg[-x11]
Type: -atlas (boolean), oct(3.6.0), gcc (4.6), -x11 (boolean)
Version: 3.6.0
Revision: 1
Maintainer: Alexander Hansen <alexkhansen@users.sourceforge.net>
BuildDepends: <<
fftw3 (>= 3.1.1-7),
fontconfig2-dev,
freetype219,
gcc%type_pkg[gcc]-compiler,
glpk-dev,
graphicsmagick-dev,
hdf5.7,
libcurl4,
libftgl2,
pcre,
pkgconfig,
qhull6-dev,
readline5,
sed,
suitesparse,
fink (>= 0.30.0-1),
fink-package-precedence,
flag-sort,
(%type_raw[-x11] != -x11) fltk13-aqua,
(%type_raw[-x11] = -x11) fltk-x11,
(%type_raw[-x11] = -x11) x11-dev,
(%type_raw[-atlas] != -atlas) arpack-ng (>=3.0.2-1),
(%type_raw[-atlas] != -atlas) qrupdate (>=1.1.1-5),
(%type_raw[-atlas] = -atlas) atlas (>= 3.8.1-1),
(%type_raw[-atlas] = -atlas) arpack-ng-atlas (>=3.0.2-1),
(%type_raw[-atlas] = -atlas) qrupdate-atlas (>=1.1.1-5)
<<
Depends: %{Ni}%type_pkg[oct]%type_pkg[-atlas]%type_pkg[-x11] (=%v-%r)
BuildConflicts: coot-dev, broken-gcc, lammpi-dev, fort77, 4ti2-dev
Suggests: %{Ni}%type_pkg[oct]-docs
Provides: <<
octave-interpreter,
(%type_raw[-x11] = -x11) octave-interpreter-x11,
(%type_raw[-x11] != -x11) octave-interpreter-aqua,
(%type_raw[-atlas] = -atlas) octave-interpreter-atlas,
(%type_raw[-atlas] != -atlas) octave-interpreter-veclib
<<
Conflicts: <<
%{Ni},
%{Ni}-atlas,
%{Ni}-x11,
%{Ni}-atlas-x11,
%{Ni}3.0.2 ( << 3.0.2-5),
%{Ni}3.0.2-atlas ( << 3.0.2-5)
<<
Replaces: <<
%{Ni},
%{Ni}-atlas,
%{Ni}-x11,
%{Ni}-atlas-x11,
%{Ni}3.0.2 ( << 3.0.2-5),
%{Ni}3.0.2-atlas ( << 3.0.2-5)
<<
Source: mirror:gnu:%{Ni}/%{Ni}-%v.tar.gz
Source-MD5: e1affdd948a558b7bd8bdd397bc2ad8d
PatchFile: %{ni}-glpk.patch
PatchFile-MD5: a4861a0803cfbbbb8892019cd5f217d2
PatchFile2: %{ni}-3.4.3-manpages.patch
PatchFile2-MD5: 213530118b9a34a947f01c6ddd6f4f2b
PatchFile3: %{ni}.patch
PatchFile3-MD5: 5a6fc121b863a789cb4bcb645ed0f24b
PatchFile4: %{ni}-10.7.patch
PatchFile4-MD5: 8304ed39a2c8783f01c81133971166e8
PatchFile5: %{ni}-10.7-x11.patch
PatchFile5-MD5: 6dd5be3b8d199fb76a72997ea50d05d4
PatchFile6: %{ni}-qhull.patch
PatchFile6-MD5: b3838e73c493d954390862544147ff9f
PatchScript: <<
#!/bin/sh -ev
#fix for use of glpk private internals
patch -p1 < %{PatchFile}
# create versioned manpages
cp doc/interpreter/%{Ni}.1 doc/interpreter/%{Ni}-%v.1
cp doc/interpreter/%{Ni}-config.1 doc/interpreter/%{Ni}-config-%v.1
cp doc/interpreter/mkoctfile.1 doc/interpreter/mkoctfile-%v.1
# fix executable names in versioned manpages
sed -e 's/@OCTVERSION@/%v/g' %{PatchFile2} | patch -p1
#Fink-specific structural changes
sed -e 's/@OCTVERSION@/%v/g' -e 's|@FINKPREFIX@|%p|g' %{PatchFile3} | patch -p1
# Put in the Fink tree.
sed -i.orig -e 's|@FINKPREFIX@|%p|g' %{Ni}-forge* %{Ni}rc doc/interpreter/*.1 src/mkoctfile*in
# Put OS-version-invariant links to compilers into oct-conf.h, which in
# turn gets harcoded into the Octave interpreter's 'octave_config_info'
# function, which is then used by some of the octave-forge packages at
# configure time. Also do this for mkoctfile.in.
sed -i.orig -e "s|%%OCTAVE_CONF_CC%%|\"oct-cc\"|" \
-e "s|%%OCTAVE_CONF_CXXCPP%%|\"oct-cxx -E\"|" \
-e "s|%%OCTAVE_CONF_CXX%%|\"oct-cxx\"|" \
-e "s|%%OCTAVE_CONF_DL_LD%%|\"oct-cxx\"|" \
-e "s|%%OCTAVE_CONF_LD_CXX%%|\"oct-cxx\"|" \
-e "s|%%OCTAVE_CONF_SH_LD%%|\"oct-cxx\"|" \
src/oct-conf.h.in src/mkoctfile*in
# Make sure GraphicsMagick gets activated properly.
perl -pi.orig -e \
's|(#include \<)(Magick\+\+\.h\>)|\1GraphicsMagick/\2\nusing namespace Magick;|' \
src/DLD-FUNCTIONS/__magick_read__.cc
# fix lack of CGDisplayBitsPerPixel on 10.7
osversion=`uname -r | cut -d. -f1`
if [ $osversion -ge 10 ]
then
if [ "%type_pkg[-x11]" != "-x11" ]
then
patch -p1 < %{PatchFile4}
perl -pi.orig -e 's/CGDisplayBitsPerPixel/displayBitsPerPixel/' src/display.cc
else
patch -l -p1 < %{PatchFile5}
fi
fi
# fix lib name for qhull6 in configure
perl -pi.orig -e ' s|(qhull/)|lib\1|g; s|lqhull|lqhull6|' configure
# fix macro for libqhull/liqhull.h in configure
perl -pi.bak -e 's,(.*HAVE_QHULL_LIBQHULL_H.*),\1 || defined (HAVE_LIBQHULL_LIBQHULL_H),g' \
configure
# patching oct-qhull.h for qhull6
patch -p1 < %{PatchFile6}
# more patching by fangism
# silence some warnings
sed -i.orig -e '/ibasea/s|\*ibasea, ||' \
-e '/ibasea/s| ibasea =.*||' \
liboctave/oct-sort.cc
# should this accompany -D_THREAD_SAFE? in CFLAGS,CXXFLAGS
# need size_t from <cstddef>
sed -i.orig -e '/#define octave_oct_alloc_h/a\
using std::size_t;' liboctave/oct-alloc.h
# needed by clang++, safe for g++: using-declaration as typedef
# missing qualifier to dependent-name member-function
sed -i.orig -e '/truncate_int/s|\(return\) \(truncate_int\)|\1 octave_int_base<T>::\2|' \
liboctave/oct-inttypes.h
sed -i.orig -e 's|template static|template|g' liboctave/eigs-base.cc
<<
GCC: 4.0
UseMaxBuildJobs: false
SetCC: flag-sort -r gcc
SetCXX: flag-sort -r g++
SetLDFLAGS: -Wl,-dead_strip_dylibs
ConfigureParams: <<
(%type_raw[-atlas] != -atlas) --with-lapack=-Wl,-framework,Accelerate \
(%type_raw[-atlas] != -atlas) --with-blas=-Wl,-framework,Accelerate \
(%type_raw[-atlas] = -atlas) --with-lapack="-llapack" \
(%type_raw[-atlas] = -atlas) --with-blas="-lf77blas -lcblas" \
(%type_raw[-x11] != -x11) --with-framework-carbon \
(%type_raw[-x11] = -x11) --without-framework-carbon \
--with-x \
--x-libraries=/usr/X11/lib \
--x-includes=/usr/X11/include \
--with-magick=GraphicsMagick \
--with-qhull-includedir=%p/include/libqhull \
--host=%m-apple-darwin \
--build=%m-apple-darwin \
--infodir='${prefix}/share/info' \
--mandir='${prefix}/share/man' \
--libexecdir='${prefix}/lib' \
--enable-shared \
--enable-dl \
--disable-static \
--disable-docs \
--enable-dependency-tracking
<<
CompileScript: <<
#!/bin/sh -ev
export FFLAGS='-O3'
# avoid package installation failure
if [ "%m" = "i386" ]
then export CXXFLAGS="-O1"
else export CXXFLAGS="-O3"
fi
export F77=%p/bin/gfortran-fsf-%type_raw[gcc]
FLIBDIR="%p/lib/gcc%type_raw[gcc]/lib"
export FLIBS="-L${FLIBDIR} -lgfortran"
if [ "%type_pkg[-atlas]" = "" ]
then export FFLAGS='-O3 -ff2c'
else export FFLAGS='-O3'
fi
%{default_script}
fink-package-precedence .
<<
InfoTest: <<
TestScript: <<
make check || exit 2
<<
<<
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
# Install manpages manually
mkdir -p %i/share/man/man1
cp doc/interpreter/*.1 %i/share/man/man1
# Install info pages manually
mkdir -p %i/share/info
cp doc/interpreter/*.info* %i/share/info
# Install Fink-specific octaverc which points at our oct-versioned
# package directory.
cp %{Ni}rc %i/share/%{Ni}/%v/m/startup
mkdir -p %i/var/%{Ni}/%v/
# install examples
mkdir -p %i/share/%{Ni}/%v/doc/examples
cp -R examples %i/share/%{Ni}/%v/doc/examples
# remove autogenerated freedesktop.org desktop file
rm -f %i/share/applications/www.%{Ni}.org-%{Ni}.desktop
mkdir -p %i/share/%{Ni}/%v/scripts
# install the octave-forge helper scripts
cp %{Ni}-forge* %i/share/%{Ni}/%v/scripts
chmod a+x %i/share/%{Ni}/%v/scripts/*
# clear out hardcoded Fink sed.
pushd %i/bin
for file in mkoctfile-%v %{Ni}-config-%v
do
perl -pi -e 's|%p/bin/sed|/usr/bin/sed|g' $file
done
# generate Fink-gcc enabled mkoctfile
cp mkoctfile-%type_raw[oct] mkoctfile-%type_raw[oct]-gcc%type_raw[gcc]
perl -pi -e \
's,oct\-cc,%p/bin/gcc-fsf-%type_raw[gcc],g; \
s,oct\-cxx,%p/bin/g++-fsf-%type_raw[gcc],g' \
mkoctfile-%type_raw[oct]-gcc%type_raw[gcc]
# create convenience symlink
ln -s mkoctfile-%type_raw[oct]-gcc%type_raw[gcc] mkoctfile-gcc%type_raw[gcc]
popd
# sanitize .la file
cd %i/lib/%{Ni}/%v/
perl -pi -e 's/(\-framework)\s(\w+)/-Wl,$1,$2/g' liboctinterp.la
<<
InfoDocs: %{Ni}.info
RuntimeVars: <<
GNUTERM: aqua
<<
DocFiles: AUTHORS BUGS COPYING ChangeLog NEWS README
SplitOff: <<
Package: octave%type_pkg[oct]%type_pkg[-atlas]%type_pkg[-x11]-shlibs
Conflicts: <<
%{Ni}%type_pkg[oct]-shlibs,
%{Ni}%type_pkg[oct]-x11-shlibs,
%{Ni}%type_pkg[oct]-atlas-shlibs,
%{Ni}%type_pkg[oct]-atlas-x11-shlibs,
(%type_raw[-atlas] = -atlas) %{Ni} (<< 3.0.5-5),
(%type_raw[-atlas] != -atlas) %{Ni}-atlas (<< 3.0.5-5),
%{Ni}3.0.2 ( << 3.0.2-5),
%{Ni}3.0.2-atlas ( << 3.0.2-5)
<<
Replaces: <<
(%type_raw[-atlas] = atlas) %{Ni}%type_pkg[oct]-shlibs,
(%type_raw[-atlas] != atlas) %{Ni}%type_pkg[oct]-atlas-shlibs,
%{Ni} (<< 3.0.5-5),
%{Ni}-atlas (<< 3.0.5-5),
%{Ni}3.0.2 ( << 3.0.2-5),
%{Ni}3.0.2-atlas ( << 3.0.2-5)
<<
Depends: <<
fftw3-shlibs,
hdf5.7-shlibs,
readline5-shlibs,
fontconfig2-shlibs,
freetype219-shlibs,
(%type_raw[-atlas] = -atlas) atlas-shlibs (>= 3.8.1-1),
(%type_raw[-atlas] = -atlas) arpack-ng-atlas-shlibs (>= 3.0.1-2),
(%type_raw[-atlas] = -atlas) qrupdate-atlas-shlibs (>= 1.1.1-5),
(%type_raw[-atlas] != -atlas) arpack-ng-shlibs (>= 3.0.1-2),
(%type_raw[-atlas] != -atlas) qrupdate-shlibs (>= 1.1.1-5)
<<
Provides: <<
liboctave%type_pkg[oct]-v2,
liboctave%type_pkg[oct],
(%type_raw[-atlas] = -atlas) liboctave%type_pkg[oct]-atlas,
(%type_raw[-atlas] != -atlas) liboctave%type_pkg[oct]-veclib,
(%type_raw[-x11] = -x11) liboctave%type_pkg[oct]-x11,
(%type_raw[-x11] != -x11) liboctave%type_pkg[oct]-aqua
<<
Files: <<
lib/%{Ni}/%v/lib{cruft,%{Ni},octinterp}.1.dylib
<<
Shlibs: <<
%p/lib/%{Ni}/%v/libcruft.1.dylib 2.0.0 %n (>=3.6.0-1)
%p/lib/%{Ni}/%v/lib%{Ni}.1.dylib 2.0.0 %n (>=3.6.0-1)
%p/lib/%{Ni}/%v/liboctinterp.1.dylib 2.0.0 %n (>=3.6.0-1)
<<
DescDetail: <<
This package contains shared libraries which are used by the Octave
interpreter itself, as well as for packages that build against Octave,
such as the various octave-forge packages.
<<
DescUsage: <<
Any package that either links to the libraries in %{Ni}%type_pkg[-atlas]%type_pkg[-x11]-shlibs or
installs an extension should Depend on %{Ni}%type_pkg[oct]%type_pkg[-atlas]%type_pkg[-x11]-shlibs and BuildDepend
on %{Ni}%type_pkg[oct]%type_pkg[-atlas]-dev. In addition, it will need to BuildDepend on
hdf5-oldapi and fftw3.
<<
DocFiles: AUTHORS BUGS COPYING ChangeLog NEWS README
<<
SplitOff2: <<
Package: octave%type_pkg[oct]%type_pkg[-atlas]%type_pkg[-x11]-dev
Depends: <<
octave%type_pkg[oct]%type_pkg[-atlas]%type_pkg[-x11]-shlibs (=%v-%r),
gcc%type_pkg[gcc]-compiler
<<
Conflicts: <<
%{Ni}%type_pkg[oct]-dev,
%{Ni}%type_pkg[oct]-x11-dev,
%{Ni}%type_pkg[oct]-atlas-dev,
%{Ni}%type_pkg[oct]-atlas-x11-dev,
%{Ni}305-dev,
%{Ni}305-atlas-dev,
%{Ni}324-dev,
%{Ni}324-atlas-dev,
%{Ni}324-x11-dev,
%{Ni}324-atlas-x11-dev,
%{Ni}343-dev,
%{Ni}343-atlas-dev,
%{Ni}343-x11-dev,
%{Ni}343-atlas-x11-dev,
(%type_raw[-atlas] = atlas) %{Ni} (<< 3.0.5-5),
(%type_raw[-atlas] != atlas) %{Ni}-atlas (<< 3.0.5-5),
%{Ni}3.0.2 ( << 3.0.2-5),
%{Ni}3.0.2-atlas ( << 3.0.2-5)
<<
Replaces: <<
%{Ni}%type_pkg[oct]-dev,
%{Ni}%type_pkg[oct]-x11-dev,
%{Ni}%type_pkg[oct]-atlas-dev,
%{Ni}%type_pkg[oct]-atlas-x11-dev,
%{Ni}305-dev,
%{Ni}305-atlas-dev,
%{Ni}324-dev,
%{Ni}324-atlas-dev,
%{Ni}324-x11-dev,
%{Ni}324-atlas-x11-dev,
%{Ni}343-dev,
%{Ni}343-atlas-dev,
%{Ni}343-x11-dev,
%{Ni}343-atlas-x11-dev,
%{Ni} (<< 3.0.5-5),
%{Ni}-atlas (<< 3.0.5-5),
%{Ni}3.0.2 ( << 3.0.2-5),
%{Ni}3.0.2-atlas ( << 3.0.2-5)
<<
Provides: <<
liboctave%type_pkg[oct]-v2-dev,
liboctave%type_pkg[oct]-dev,
(%type_raw[-atlas] = -atlas) liboctave%type_pkg[oct]-atlas-dev,
(%type_raw[-atlas] != -atlas) liboctave%type_pkg[oct]-veclib-dev,
(%type_raw[-x11] = -x11) liboctave%type_pkg[oct]-x11-dev,
(%type_raw[-x11] != -x11) liboctave%type_pkg[oct]-aqua-dev
<<
BuildDependsOnly: true
Files: <<
include/%{Ni}-%v
lib/%{Ni}/%v/*.la
bin/mkoctfile*
bin/octave-config*
share/man/man1/mkoctfile*.1
share/man/man1/octave-config*.1
<<
DescDetail: <<
This package contains files needed to build against Octave, including
headers and the mkoctfile executable. It also contains symlinks to Fink's
compiler wrappers, which are set up at install time to be appropriate to
the current machine setup.
<<
DescUsage: <<
To use mkoctfile to build dynamically loadable modules, you will need
to install the hdf5-oldapi and fftw3 packages.
%n cannot Depend on them since they are BuildDependsOnly.
<<
DescPackaging: <<
We make up an extra mkoctfile which uses a Fink gcc for packages that need
stuff which isn't included in Xcode.
<<
DocFiles: AUTHORS BUGS COPYING ChangeLog NEWS README
PostInstScript: <<
osversion=`uname -r | cut -d. -f1`
cd %p/bin
case $osversion in
11) ln -s %p/var/lib/fink/path-prefix-clang/cc oct-cc
ln -s %p/var/lib/fink/path-prefix-clang/c++ oct-cxx ;;
10) ln -s %p/var/lib/fink/path-prefix-10.6/cc oct-cc
ln -s %p/var/lib/fink/path-prefix-10.6/c++ oct-cxx ;;
9) if [ "%m" = "x86_64"]; then
ln -s /usr/bin/gcc-4.2 oct-cc
ln -s /usr/bin/g++-4.2 oct-cxx ;;
# fangism--feel free to update this
*) printf "You will need to generate your own %p/bin/oct-cc and %p/bin/oct-cxx symlinks.\n" ;;
esac
<<
PreRmScript: <<
if [ -h %p/bin/oct-cc ]
then rm %p/bin/oct-cc
else printf "%p/bin/oct-cc is not a symlink or is not present.\n"
fi
if [ -h %p/bin/oct-cxx ]
then rm %p/bin/oct-cxx
else printf "%p/bin/oct-cxx is not a symlink or is not present.\n"
fi
<<
<<
Splitoff3: <<
Package: octave%type_pkg[oct]%type_pkg[-atlas]%type_pkg[-x11]
Depends: <<
%{Ni}%type_pkg[oct]%type_pkg[-atlas]%type_pkg[-x11]-shlibs (=%v-%r),
ncurses, gnuplot | gnuplot-nox | gnuplot-nogtk,
fftw3-shlibs (>= 3.1.1-7),
fontconfig2-shlibs,
freetype219-shlibs,
glpk-shlibs,
graphicsmagick-shlibs,
hdf5.7-shlibs,
libcurl4-shlibs,
pcre-shlibs,
qhull6-shlibs,
readline5-shlibs,
(%type_raw[-x11] != -x11) fltk13-aqua-shlibs,
(%type_raw[-x11] = -x11) fltk-x11-shlibs,
(%type_raw[-atlas] != -atlas) qrupdate-shlibs,
(%type_raw[-atlas] = -atlas) atlas-shlibs (>= 3.8.1-1),
(%type_raw[-atlas] = -atlas) qrupdate-atlas-shlibs
<<
Conflicts: <<
%{Ni}%type_pkg[oct],
%{Ni}%type_pkg[oct]-x11,
%{Ni}%type_pkg[oct]-atlas,
%{Ni}%type_pkg[oct]-atlas-x11,
(%type_raw[-atlas] = atlas) %{Ni} (<< 3.0.5-5),
(%type_raw[-atlas] != atlas) %{Ni}-atlas (<< 3.0.5-5),
%{Ni}3.0.2 ( << 3.0.2-5), %{Ni}3.0.2-atlas ( << 3.0.2-5)
<<
Replaces: <<
%{Ni}%type_pkg[oct],
%{Ni}%type_pkg[oct]-x11,
%{Ni}%type_pkg[oct]-atlas,
%{Ni}%type_pkg[oct]-atlas-x11,
%{Ni} (<< 3.0.5-5),
%{Ni}-atlas (<< 3.0.5-5),
%{Ni}3.0.2 ( << 3.0.2-5),
%{Ni}3.0.2-atlas ( << 3.0.2-5)
<<
Provides: <<
octave%type_pkg[oct]-interpreter,
(%type_raw[-x11] = -x11) octave%type_pkg[oct]-interpreter-x11,
(%type_raw[-x11] != -x11) octave%type_pkg[oct]-interpreter-aqua,
(%type_raw[-atlas] = -atlas) octave%type_pkg[oct]-interpreter-atlas,
(%type_raw[-atlas] != -atlas) octave%type_pkg[oct]-interpreter-veclib
<<
Files: <<
share/%{Ni}/%v
lib/%{Ni}/%v
bin/%{Ni}-%v
var/%{Ni}/%v
share/man/man1/%{Ni}-%v.1
<<
DescDetail: <<
The %{Ni}%type_pkg[oct]%type_pkg[-atlas] package contains versioned executables, as well as all of the
core functionality of the Octave interpreter. Note that the GNU info file,
which provides the core documentation, is installed as part of the %{Ni}
package.
Octave provides a convenient command line interface for solving linear and
nonlinear problems numerically, and for performing other numerical
experiments using a language that is mostly compatible with Matlab.
It may also be used as a batch-oriented language.
Octave has extensive tools for solving common numerical linear algebra
problems, finding the roots of nonlinear equations, integrating ordinary
functions, manipulating polynomials, and integrating ordinary differential
and differential-algebraic equations. It is easily extensible and
customizable via user-defined functions written in Octave's own language,
or using dynamically loaded modules written in C++, C, Fortran,
or other languages.
<<
DescUsage: <<
By default the plotting output (via gnuplot) is directed to AquaTerm.
This can be overidden in your startup scripts, e.g.
export GNUTERM=x11
in bash
or
setenv GNUTERM x11
in tcsh.
Note: Fink's Octave implementation modifies one of the startup files,
%p/share/%{Ni}/%v/m/startup/octaverc,
to initialize octave sessions to know about Fink's octave-versioned
install location for octave-forge packages. If you use the '--norc'
or '-f' flags in your Octave script, these packages won't be visible.
You'll need to run the following command in your script:
pkg global_list %p/var/octave/%v/octave_packages
<<
DocFiles: AUTHORS BUGS COPYING ChangeLog NEWS README
<<
Description: MATLAB-like language for computations
DescDetail: <<
The %{Ni}%type_pkg[-atlas] package contains unversioned executables and an
unversioned directory tree.
Octave provides a convenient command line interface for solving linear and
nonlinear problems numerically, and for performing other numerical
experiments using a language that is mostly compatible with Matlab.
It may also be used as a batch-oriented language.
Octave has extensive tools for solving common numerical linear algebra
problems, finding the roots of nonlinear equations, integrating ordinary
functions, manipulating polynomials, and integrating ordinary differential
and differential-algebraic equations. It is easily extensible and
customizable via user-defined functions written in Octave's own language,
or using dynamically loaded modules written in C++, C, Fortran,
or other languages.
<<
DescUsage: <<
By default the plotting output (via gnuplot) is directed to AquaTerm.
This can be overidden in your startup scripts, e.g.
export GNUTERM=x11
in bash
or
setenv GNUTERM x11
in tcsh.
Note: Fink's Octave implementation modifies one of the startup files,
%p/share/%{Ni}/%v/m/startup/octaverc,
to initialize octave sessions to know about Fink's octave-versioned
install location for octave-forge packages. If you use the '--norc' or '-f'
flags in your Octave script, these packages won't be visible. You'll need to
run the following command in your script:
pkg global_list %p/var/octave/%v/octave_packages
<<
DescPort: <<
Thanks to Per Persson for most (if not all) of the work on the macos X port.
Apply fix from http://lukassen.wordpress.com/2010/01/18/taming-snow-leopard-cgdisplaybitsperpixel-deprication/ ,
with improvements from Peter O'Gorman and Daniel Macks, to display.cc to work around the lack of
CGDisplayBitsPerPixel on 10.7.
Cleanups from David Fang to get the package to build using clang.
The non-atlas variant is built with -ff2c in the FFLAGS,
because this appears to be necessary when using the Accelerate framework.
The package won't build on 10.5/x86_64 or 10.6/x86_64 against the vecLib
framework, so we disable the non-atlas option on those platforms.
<<
DescPackaging: <<
Not sane (and now not even compilable) to use private code
from glpk. Import the functions needed so can still use it
even when glpk stops exporting its internals. See:
http://octave.1599824.n4.nabble.com/GLPK-interface-was-Re-Multithreaded-Atlas-td1654632.html
Set the GNUTERM environment variable to AquaTerm because autodetection
of DISPLAY seems to cause options to be fed to our gnuplot that it doesn't understand.
AquaTerm seems to be a sensible default, particularly since gnuplot-nox is also a
legal dependency.
Create manpages for the versioned executables.
Remove a desktop file that gets generated only for users with GNOME/KDE installed.
We have split the package up into runtime, development, and library packages,
to make upgrades easier for us and for users.
We generate common octave-forge bash and octave scripts,
based on the ones by Johnathan Stickel in the original octave-forge-foo
packages, in _this_ package, so that any required changes can be made in
a common location rather than spread out over many packages.
Unfortunately, Octave's 'pkg' tool doesn't seem to know how to deal with
variables, and the individual octave-forge packages have to make copies
of the octave scripts during their build process and edit them to use the
package's name.
The -atlas variant depends on -atlas variants (only) of qrupdate and arpack.
The non-atlas variant depends on non-atlas variants (only) of these.
Patch oct-conf.h, and mkoctfile to use compiler wrappers which are part of the
-dev package to avoid issues which would propagate as dependendencies, e.g.
encoding 'flag-sort' or a ccache-default compiler in the compiler name. These
are symlinks to Fink's compiler wrappers and are resolved in PostInstall so that
they point to the right place for the system.
Includes an additional mkoctfile which uses Fink's gcc46 compilers instead
of Xcode's.
We turn off building docs to save time, since we'd throw them out anyway
because the package builds differently with and without TeX executables in
the PATH. However, this entails manual installation of the manpages and the
GNU info file.
We use Provides in a new namespace and new projections to avoid
unwieldy | lists in the octave-forge packages.
<<
Homepage: http://www.octave.org/
License: GPL
<<