1 | Index: dports/math/octave-forge/Portfile |
---|
2 | =================================================================== |
---|
3 | --- dports/math/octave-forge/Portfile (revision 0) |
---|
4 | +++ dports/math/octave-forge/Portfile (revision 0) |
---|
5 | @@ -0,0 +1,70 @@ |
---|
6 | +# $Id $ |
---|
7 | + |
---|
8 | +PortSystem 1.0 |
---|
9 | +name octave-forge |
---|
10 | +version 2006.07.09 |
---|
11 | +revision 0 |
---|
12 | +categories math science |
---|
13 | +maintainers nomaintainer@macports.org |
---|
14 | +platforms darwin |
---|
15 | +description Additional script and function files for Octave. |
---|
16 | +long_description \ |
---|
17 | + The GNU Octave Repository is a central location for the \ |
---|
18 | + the collaborative development of packages for GNU Octave. \ |
---|
19 | + The The octave-forge package contains the source for all \ |
---|
20 | + the the functions plus build and install scripts. |
---|
21 | + |
---|
22 | +homepage http://octave.sourceforge.net/ |
---|
23 | +master_sites sourceforge:octave |
---|
24 | + |
---|
25 | +checksums md5 94a844d1e41aca9580fde00e023e4e5b |
---|
26 | + |
---|
27 | +depends_build port:gcc40 |
---|
28 | + |
---|
29 | +depends_lib port:ginac \ |
---|
30 | + port:gsl \ |
---|
31 | + port:jpeg \ |
---|
32 | + port:libpng \ |
---|
33 | + port:octave |
---|
34 | + |
---|
35 | +patch { |
---|
36 | + # touch extra/mex/NOINSTALL because it's already in octave 2.9.9 |
---|
37 | + close [open "${worksrcpath}/extra/mex/NOINSTALL" w] |
---|
38 | + |
---|
39 | + # touch extra/Windows/NOINSTALL for hopefully obvious reasons :-) |
---|
40 | + close [open "${worksrcpath}/extra/Windows/NOINSTALL" w] |
---|
41 | +} |
---|
42 | + |
---|
43 | +configure.env F77="gfortran-dp-4.0" \ |
---|
44 | + CFLAGS="-O2" \ |
---|
45 | + CXXFLAGS="-O2" \ |
---|
46 | + LDFLAGS="-L${prefix}/lib" \ |
---|
47 | + CPPFLAGS="-I${prefix}/include" |
---|
48 | + |
---|
49 | +configure.args --enable-shared \ |
---|
50 | + --enable-dl \ |
---|
51 | + --disable-static \ |
---|
52 | + --infodir=${prefix}/share/info \ |
---|
53 | + --mandir=${prefix}/share/man |
---|
54 | + |
---|
55 | +platform darwin 8 i386 { |
---|
56 | + depends_build-delete port:gcc40 |
---|
57 | + depends_build-append port:gcc42 |
---|
58 | + |
---|
59 | + configure.env-delete F77="gfortran-dp-4.0" |
---|
60 | + configure.env-append F77="gfortran-dp-4.2" |
---|
61 | + configure.env-append CC="gcc-dp-4.2" |
---|
62 | + configure.env-append CXX="g++-dp-4.2" |
---|
63 | + |
---|
64 | + post-patch { |
---|
65 | + reinplace "s|-ObjC|-x objective-c|" \ |
---|
66 | + "${worksrcpath}/extra/MacOSX/Makefile" |
---|
67 | + } |
---|
68 | + |
---|
69 | +} |
---|
70 | + |
---|
71 | +default_variants +test |
---|
72 | +variant test { test.run yes |
---|
73 | + test.target check |
---|
74 | + } |
---|
75 | + |
---|