Ticket #46703: Portfile-splash.diff
File Portfile-splash.diff, 3.0 KB (added by danieljprice (Daniel Price), 10 years ago) |
---|
-
Portfile.
old new 2 2 # $Id: Portfile 131063 2015-01-05 17:37:19Z mmoll@macports.org $ 3 3 4 4 PortSystem 1.0 5 PortGroup compilers 1.0 5 6 6 7 name splash 7 version 2.5.0 8 revision 1 8 version 2.5.1 9 9 categories science graphics 10 10 platforms darwin 11 11 maintainers monash.edu:daniel.price … … 19 19 20 20 worksrcdir ${name} 21 21 22 checksums rmd160 b098299abb6888d596a5e7485b67f87c3ef20225\23 sha256 33b55fba75c1ea080a7ba2b01a639758f0c0efc6ca0e65cf981b59b24a3be05322 checksums rmd160 5c87a5394c53b0f1b9a0e89170bc8ea8a7ed77b3 \ 23 sha256 57d9eb6c8ff411ffc19e6be976debed2fd1bc1dcbe52cb42c30f5e05f6d37918 24 24 25 25 default_variants +giza 26 26 27 27 use_configure no 28 build.args SYSTEM=gfortran 28 29 compilers.setup require_fortran -dragonegg -g95 -gcc44 -clang -llvm 30 31 build.cmd make 32 build.args SYSTEM=gfortran CC=${configure.cc} FC=${configure.fc} 29 33 30 34 destroot.args PREFIX=${prefix} 31 35 use_parallel_build no … … 43 47 build.args-append BACKEND=pgplot 44 48 } 45 49 46 set gcc_versions {4.5 4.6 4.7 4.8 4.9} 47 set default_fortran_variant +gcc48 48 49 foreach ver ${gcc_versions} { 50 set ver_no_dot [join [split ${ver} "."] ""] 51 52 set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}"} 53 54 foreach over ${gcc_versions} { 55 if {${ver} == ${over}} { 56 continue 57 } 58 59 set over_no_dot [join [split ${over} "."] ""] 60 append variant_line " conflicts gcc${over_no_dot}" 61 } 62 append variant_line { {}} 63 64 eval $variant_line 65 66 if {[variant_isset gcc${ver_no_dot}]} { 67 if {${default_fortran_variant} != "+gcc${ver_no_dot}"} { 68 set default_fortran_variant "" 69 } 70 } 71 } 72 73 if {${default_fortran_variant} != ""} { 74 default_variants-append "${default_fortran_variant}" 75 } 76 77 foreach ver ${gcc_versions} { 78 set ver_no_dot [join [split ${ver} "."] ""] 79 80 if {[variant_isset gcc${ver_no_dot}]} { 81 depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc 82 depends_build-append port:gcc${ver_no_dot} 50 build.args-append FC="${configure.fc}" \ 51 CC="${configure.cc}" 83 52 84 configure.fc ${prefix}/bin/gfortran-mp-${ver} 85 configure.f77 ${prefix}/bin/gfortran-mp-${ver} 86 configure.f90 ${prefix}/bin/gfortran-mp-${ver} 87 } 53 pre-build { 54 build.args-append CC=${configure.cc} FC=${configure.fc} 88 55 } 89 56 90 build.args-append FC="${configure.fc}" \91 CC="${configure.cc}" \92 CFLAGS="[get_canonical_archflags cc]" \93 FFLAGS="[get_canonical_archflags fc]"94 95 57 variant hdf5 description {compiles data reads that depend on HDF5} { 96 build.args-append gadgethdf5 HDF5ROOT=${prefix}58 build.args-append gadgethdf5 amuse_hdf5 HDF5ROOT=${prefix} 97 59 depends_lib-append port:hdf5 98 60 } 99 61