Ticket #14913: Portfile.diff
File Portfile.diff, 2.4 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago) |
---|
-
Portfile
old new 17 17 rmd160 2dbbcccd32986dcd66ce804c5e90ac6c949b71f6 18 18 19 19 depends_lib port:zlib 20 patchfiles patch-commence.in patch-c-commence.in 20 patchfiles patch-commence.in patch-c-commence.in \ 21 patch-fortran-commence.in patch-H5f90i.h 21 22 22 23 use_parallel_build yes 23 24 configure.args --enable-cxx --with-zlib=yes --with-szlib=no 24 configure.ldflags "-L${worksrcpath}/src/.libs -L${prefix}/lib"25 configure.ldflags -L${worksrcpath}/src/.libs -L${prefix}/lib 25 26 destroot.destdir prefix=${destroot}${prefix} 26 27 test.run yes 27 28 test.target check 28 29 29 variant szip description "Enable szip compression support"{30 variant szip description {Enable szip compression support} { 30 31 configure.args-delete --with-szlib=no 31 32 configure.args-append --with-szlib=yes 32 33 depends_lib-append port:szip 33 34 } 34 35 35 variant gcc43 description "Use GCC 4.3 for compilation of HDF-5 - optimized for host machine (+ Fotran support)"{36 variant optimized description {Use GCC 4.3 for compilation of HDF-5 - optimized for host machine} { 36 37 depends_build-append port:gcc43 37 configure.args-append --enable-fortran38 38 configure.compiler macports-gcc-4.3 39 configure.cflags-append "-ftree-vectorize -march=native -O3" 40 configure.cxxflags-append "-ftree-vectorize -march=native -O3" 39 configure.cflags-delete -O2 40 configure.cxxflags-delete -O2 41 configure.cflags-append -ftree-vectorize -march=native -O3 42 configure.cxxflags-append -ftree-vectorize -march=native -O3 43 if { [variant_isset gcc43] } { 44 configure.fflags-delete -O2 45 configure.fflags-append -ftree-vectorize -march=native -O3 46 } else { 47 configure.fflags-delete -O2 48 configure.fflags-append -ftree-vectorize -O3 49 } 50 } 51 52 variant gcc43 description {compile the Fortran interface using GCC 4.3} conflicts g95 { 53 depends_build-append port:gcc43 54 configure.args-append --enable-fortran 55 configure.fc ${prefix}/bin/gfortran-mp-4.3 56 } 57 58 variant g95 description {compile the Fortran interface using G95} conflicts gcc43 { 59 depends_build-append port:g95 60 configure.args-append --enable-fortran 61 configure.fc ${prefix}/bin/g95 41 62 }