Ticket #12144: octave-gcc42.diff
File octave-gcc42.diff, 1.5 KB (added by ryandesign (Ryan Carsten Schmidt), 17 years ago) |
---|
-
Portfile
27 27 patch-dynamic-ld-cc patch-glpk patch-glpk.m 28 28 29 29 depends_build bin:texinfo:texinfo \ 30 bin:tex:teTeX 30 bin:tex:teTeX \ 31 port:gcc42 31 32 32 33 depends_lib port:readline \ 33 34 port:hdf5 \ … … 41 42 configure.env CFLAGS="-O2" \ 42 43 CXXFLAGS="-O2" \ 43 44 LDFLAGS="-L${prefix}/lib" \ 44 CPPFLAGS="-I${prefix}/include" 45 CPPFLAGS="-I${prefix}/include" \ 46 F77="gfortran-mp-4.2" \ 47 CC="gcc-mp-4.2" \ 48 CXX="g++-mp-4.2" 45 49 46 50 configure.args --enable-shared \ 47 51 --enable-dl \ … … 66 70 file rename -force ${worksrcpath}/src/oct-conf.h.tmp ${destroot}${prefix}/include/${name}-${version}/${name}/oct-conf.h 67 71 } 68 72 69 platform powerpc {70 if {![variant_isset g95]} {71 depends_lib-append port:gcc4072 configure.env-append F77="gfortran-dp-4.0"73 }74 }75 76 platform i386 {77 if {![variant_isset g95]} {78 depends_lib-append port:gcc4279 configure.env-append F77="gfortran-mp-4.2"80 configure.env-append CC="gcc-mp-4.2"81 configure.env-append CXX="g++-mp-4.2"82 }83 }84 85 73 default_variants +test 86 74 variant test { depends_build-append bin:runtest:dejagnu 87 75 test.run yes … … 94 82 } 95 83 96 84 variant g95 { 97 depends_lib-append port:g95 85 depends_build-delete port:gcc42 86 depends_build-append port:g95 87 configure.env-delete F77="gfortran-mp-4.2" CC="gcc-mp-4.2" CXX="g++-mp-4.2" 98 88 configure.env-append F77="${prefix}/bin/g95" FFLAGS=-O2 MACOSX_DEPLOYMENT_TARGET=10.4 99 89 }