Ticket #42580: Portfile-splash.diff
File Portfile-splash.diff, 4.0 KB (added by danieljprice (Daniel Price), 11 years ago) |
---|
-
Portfile.
old new 4 4 PortSystem 1.0 5 5 6 6 name splash 7 version 2.3.1 8 revision 1 7 version 2.4.0 9 8 categories science graphics 10 9 platforms darwin 11 10 maintainers monash.edu:daniel.price … … 19 18 20 19 worksrcdir ${name} 21 20 22 checksums rmd160 d16bc15ceb3ac2714a19653a41bb589000e32a34\23 sha256 214d3d8a95e9816a103cc05ecc7f8ad5e14c1e8ff9b65f009b1e7e5b020eedd821 checksums rmd160 981bc357a8f6b73c515d6bc9f267a6f00d28869e \ 22 sha256 5ff612ed988dbddcf57136317347529f7cf3c85ffac99167a14db5877b7e5333 24 23 25 if {![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} {26 default_variants +gcc4727 }28 24 default_variants +giza 29 25 30 26 use_configure no 31 32 build.args SYSTEM=gfortran \ 33 CC="${configure.cc}" \ 34 CFLAGS="[get_canonical_archflags cc]" \ 35 FFLAGS="[get_canonical_archflags fc]" \ 36 F90FLAGS="[get_canonical_archflags f90]" 27 build.args SYSTEM=gfortran 37 28 38 29 destroot.args PREFIX=${prefix} 39 30 use_parallel_build no … … 51 42 build.args-append BACKEND=pgplot 52 43 } 53 44 54 variant gcc47 description {build with gfortran/gcc v4.7} conflicts gcc44 gcc45 gcc46 { 55 depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc 56 depends_build-append port:gcc47 57 build.args-append F90C=gfortran-mp-4.7 FC=gfortran-mp-4.7 58 } 45 set gcc_versions {4.5 4.6 4.7 4.8} 46 set default_fortran_variant +gcc48 47 48 foreach ver ${gcc_versions} { 49 set ver_no_dot [join [split ${ver} "."] ""] 50 51 set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}"} 52 53 foreach over ${gcc_versions} { 54 if {${ver} == ${over}} { 55 continue 56 } 59 57 60 variant gcc46 description {build with gfortran/gcc v4.6} conflicts gcc44 gcc45 gcc47 { 61 depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc 62 depends_build-append port:gcc46 63 build.args-append F90C=gfortran-mp-4.6 FC=gfortran-mp-4.6 58 set over_no_dot [join [split ${over} "."] ""] 59 append variant_line " conflicts gcc${over_no_dot}" 60 } 61 append variant_line { {}} 62 63 eval $variant_line 64 65 if {[variant_isset gcc${ver_no_dot}]} { 66 if {${default_fortran_variant} != "+gcc${ver_no_dot}"} { 67 set default_fortran_variant "" 68 } 69 } 64 70 } 65 71 66 variant gcc45 description {build with gfortran/gcc v4.5} conflicts gcc44 gcc46 gcc47 { 67 depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc 68 depends_build-append port:gcc45 69 build.args-append F90C=gfortran-mp-4.5 FC=gfortran-mp-4.5 72 if {${default_fortran_variant} != ""} { 73 default_variants-append "${default_fortran_variant}" 70 74 } 71 75 72 variant gcc44 description {build with gfortran/gcc v4.4} conflicts gcc45 gcc46 gcc47 { 73 depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc 74 depends_build-append port:gcc44 75 build.args-append F90C=gfortran-mp-4.4 FC=gfortran-mp-4.4 76 foreach ver ${gcc_versions} { 77 set ver_no_dot [join [split ${ver} "."] ""] 78 79 if {[variant_isset gcc${ver_no_dot}]} { 80 depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc 81 depends_build-append port:gcc${ver_no_dot} 82 83 configure.fc ${prefix}/bin/gfortran-mp-${ver} 84 configure.f77 ${prefix}/bin/gfortran-mp-${ver} 85 configure.f90 ${prefix}/bin/gfortran-mp-${ver} 86 } 76 87 } 77 88 89 build.args-append FC="${configure.fc}" \ 90 CC="${configure.cc}" \ 91 CFLAGS="[get_canonical_archflags cc]" \ 92 FFLAGS="[get_canonical_archflags fc]" 93 78 94 variant hdf5 description {compiles data reads that depend on HDF5} { 79 95 build.args-append gadgethdf5 HDF5ROOT=${prefix} 80 96 depends_lib-append port:hdf5-18