Ticket #15222: Portfile.diff

File Portfile.diff, 3.5 KB (added by alakazam@…, 16 years ago)
Line 
11c1,2
2< # $Id: Portfile 36526 2008-05-05 07:28:18Z takeshi@macports.org $
3---
4> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
5> # $Id: Portfile $
64d4
7<
86,7c6
9< version               2.9.15
10< revision        2
11---
12> version               3.0.1
1321c20
14< master_sites  ftp://ftp.octave.org/pub/octave/bleeding-edge/
15---
16> master_sites  ftp://ftp.octave.org/pub/octave/
1724,31c23,25
18< checksums     md5    c7c0449a5e1418479bebbdd565eb9cc2 \
19<                 sha1   4643c9681749bcb6cf7dd7190d82cc28484524b0 \
20<                 rmd160 bf0b56ae2a1c5baaacf65483f6fe98c1b885da03
21<
22< patch.args    -p1
23< patchfiles    patch-configure.diff \
24<               patch-configure-2.diff \
25<               patch-dynamic-ld-cc.diff
26---
27> checksums     md5 230f3895a42386ec625bf2593a44c441 \
28>     sha1 e4cebe74a1182df610d91e45974653227dd4b342 \
29>     rmd160 3141454b1e9a8efcac0772aed63c27aaad082861
3036c30,35
31<               port:gsed
32---
33>               port:gsed \
34>               bin:perl:perl5.8 \
35>               bin:gs:ghostscript \
36>               bin:tex:texlive \
37>               bin:texi2dvi:texinfo \
38>               bin:texi2pdf:texinfo
3946c45,47
40<               port:gnuplot
41---
42>               port:gnuplot \
43>               port:ncurses \
44>               port:qhull \
4553,54c54,65
46<               --without-mpi   \
47<               --with-blas="-framework Accelerate"
48---
49>               --with-blas="-framework Accelerate" \
50>               --enable-static \
51>               --enable-readline \
52>               --with-zlib     \
53>               --with-glpk     \
54>               --with-curl     \
55>               --with-lapack \
56>               --with-umfpack \
57>               --with-colamd \
58>               --with-ccolamd \
59>               --with-cholmod \
60>               --with-cxsparse
6157,63c68,81
62<                       SED="${prefix}/bin/gsed"
63< build.env-append      AWK="${prefix}/bin/gawk" \
64<                       SED="${prefix}/bin/gsed"
65<
66< post-patch {
67<       # Avoid using heimdal's broken fnmatch.h
68<       reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/liboctave/glob-match.cc
69---
70>                       SED="${prefix}/bin/gsed" \
71>                       PERL="${prefix}/bin/perl" \
72>                       PYTHON=' ' \
73>                       GHOSTSCRIPT="${prefix}/bin/gs" \
74>                       MAKEINFO="${prefix}/bin/makeinfo" \
75>                       TEXI2DVI="${prefix}/bin/texi2dvi" \
76>                       TEXI2PDF="${prefix}/bin/texi2pdf"
77>
78> test.run      yes
79> test.target   check
80>
81> variant gcc43 {
82>       depends_lib-append      port:gcc43
83>       configure.f77           "${prefix}/bin/gfortran-mp-4.3"
8466,93c84
85< pre-destroot {
86<       file copy ${worksrcpath}/src/defaults.h ${worksrcpath}/src/defaults.h.tmp
87<       file copy ${worksrcpath}/src/oct-conf.h ${worksrcpath}/src/oct-conf.h.tmp
88< }
89< destroot.destdir      prefix=${destroot}${prefix}
90< post-destroot {
91<       file rename -force ${worksrcpath}/src/defaults.h.tmp ${destroot}${prefix}/include/${name}-${version}/${name}/defaults.h
92<       file rename -force ${worksrcpath}/src/oct-conf.h.tmp ${destroot}${prefix}/include/${name}-${version}/${name}/oct-conf.h
93< }
94<
95< if {![variant_isset g95]} {
96<       depends_lib-append      port:gcc42
97<       configure.compiler      macports-gcc-4.2
98< }
99<
100< default_variants +test
101< variant test description {runs tests} {
102<                 depends_build-append bin:runtest:dejagnu
103<                 test.run      yes
104<                 test.target   check
105<               }
106<
107< variant ptex description {use pTeX instead of teTeX } {
108<       depends_build-delete    bin:tex:teTeX
109<       depends_build-append    bin:tex:pTeX
110< }
111<
112< variant g95 description {build with g95} {
113---
114> if {![variant_isset gcc43]} {
11596c87,92
116<         configure.fflags -O2
117---
118> }
119>
120> post-patch {
121>     reinplace "s|glp_lpx_simplex|_glp_lpx_simplex|g" ${worksrcpath}/configure
122>     reinplace "s|-lcholmod|-lcholmod -lmetis|g" ${worksrcpath}/configure
123>     reinplace "s|#define GLPK_PRE_4_14 1|#undef GLPK_PRE_4_14|g" ${worksrcpath}/configure
124101c97
125< livecheck.regex               Version (\\d+(\\.\\d+)*) is now available
126---
127> livecheck.regex               Version (\\d+(\\.\\d+)*)