Ticket #34472: Portfile-splash.diff

File Portfile-splash.diff, 4.4 KB (added by danieljprice (Daniel Price), 13 years ago)
  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                splash
    7 version             1.15.0
     7version             2.1.0
    88categories          science graphics
    99platforms           darwin
    1010maintainers         monash.edu:daniel.price
     
    1818
    1919worksrcdir          ${name}
    2020
    21 checksums           rmd160  430e64f7740dc04cc8bd898b3b0e4ddc87f277ab \
    22                     sha256  f3e3331dbf544f35bfbe2dc2b4dd3da7963011f2b1bd2c7e5d1418244c32eb55
     21checksums           rmd160   2a76792b19781a45fe72359f9d4a14a029540174 \
     22                    sha256   28fb4b7319a3aec784b10aaaa7a64f32f936f4c1d1b85b32a98dcecab13d172f
    2323
    24 if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc46]} {
     24if { ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
    2525   default_variants      +gcc45
    2626}
    27 default_variants-append    +pgplot
     27default_variants-append  +giza
    2828
    2929use_configure       no
    3030
     
    3434destroot.args       PREFIX=${prefix}
    3535use_parallel_build  no
    3636
    37 variant pgplot description {use PGPLOT as the backend graphics library} {
     37variant giza description {use giza as the backend graphics library} conflicts pgplot {
     38   depends_lib-append      port:cairo \
     39                           port:xorg-libx11
     40   build.args-append       X11DIR=${prefix} X11LIBS='-L${prefix}/lib -lX11'
     41}
     42
     43variant pgplot description {use PGPLOT as the backend graphics library} conflicts giza {
    3844   depends_lib-append      port:pgplot
    3945   build.env-append        PGPLOT_DIR=${prefix}/lib \
    4046                           PGPLOT_DEV=/xw
     47   build.args-append       BACKEND=pgplot
    4148}
    4249
    43 variant gcc46 description {build with gfortran/gcc v4.6} conflicts gcc42 gcc43 gcc44 gcc45 {
     50variant gcc46 description {build with gfortran/gcc v4.6} conflicts gcc44 gcc45 {
    4451   depends_build-append    port:gcc46
    45    build.args-append       F90C=gfortran-mp-4.6
     52   build.args-append       F90C=gfortran-mp-4.6 FC=gfortran-mp-4.6
    4653}
    4754
    48 variant gcc45 description {build with gfortran/gcc v4.5} conflicts gcc42 gcc43 gcc44 gcc46 {
     55variant gcc45 description {build with gfortran/gcc v4.5} conflicts gcc44 gcc46 {
    4956   depends_build-append    port:gcc45
    50    build.args-append       F90C=gfortran-mp-4.5
     57   build.args-append       F90C=gfortran-mp-4.5 FC=gfortran-mp-4.5
    5158}
    5259
    53 variant gcc44 description {build with gfortran/gcc v4.4} conflicts gcc42 gcc43 gcc45 gcc46 {
     60variant gcc44 description {build with gfortran/gcc v4.4} conflicts gcc45 gcc46 {
    5461   depends_build-append    port:gcc44
    55    build.args-append       F90C=gfortran-mp-4.4
    56 }
    57 
    58 variant gcc43 description {build with gfortran/gcc v4.3} conflicts gcc42 gcc44 gcc45 gcc46 {
    59    depends_build-append    port:gcc43
    60    build.args-append       F90C=gfortran-mp-4.3
     62   build.args-append       F90C=gfortran-mp-4.4 FC=gfortran-mp-4.4
    6163}
    6264
    63 variant gcc42 description {build with gfortran/gcc v4.2} conflicts gcc43 gcc44 gcc45 gcc46 {
    64    depends_build-append    port:gcc42
    65    build.args-append       F90C=gfortran-mp-4.2
     65variant hdf5 description {compiles data reads that depend on HDF5} {
     66   build.args-append       gadgethdf5 HDF5ROOT=${prefix}
     67   depends_lib-append      port:hdf5
    6668}
    6769
    68 variant read_hdf5formats description {compiles data reads that depend on HDF5} conflicts read_extraformats1 {
    69    build.args-append       flash HDF5ROOT=${prefix}
    70    depends_lib-append      port:hdf5
     70variant h5part description {compiles H5Part data read} {
     71   build.args-append       h5part HDF5ROOT=${prefix} H5PART_DIR=${prefix} H5PART_LIBS="-L${prefix}/lib -lH5Part"
     72   depends_lib-append      port:h5part
    7173}
    7274
    73 variant read_extraformats1 description {compiles additional data reads: foulkes, mbatesph, oilonwater, rsph, urban (f/b/o/r/usplash)} conflicts read_hdf5formats read_extraformats2 {
    74    build.args-append       all foulkes mbatesph oilonwater rsph urban
     75variant read_extraformats1 description {compiles additional data reads: foulkes, mbatesph, oilonwater, rsph, urban (f/b/o/r/usplash)} conflicts read_extraformats2 {
     76   build.args-append       foulkes mbatesph oilonwater rsph urban
    7577}
    7678
    7779variant read_extraformats2 description {compiles additional data reads: Bauswein, UCLA, vanaverbeke data read (bsplash, usplash, vsplash)} conflicts read_extraformats1 {
    78    build.args-append       all bauswein ucla vanaverbeke
     80   build.args-append       bauswein ucla vanaverbeke
    7981}