Ticket #38260: Portfile-libxc.diff

File Portfile-libxc.diff, 2.0 KB (added by larryv (Lawrence Velázquez), 12 years ago)

update Portfile to 2.0.1 and add compiler variants

  • trunk/dports/science/libxc/Portfile

    diff --git a/trunk/dports/science/libxc/Portfile b/trunk/dports/science/libxc/Portfile
    a b  
    44PortSystem          1.0
    55
    66name                libxc
    7 version             1.0
    8 revision            1
     7version             2.0.1
    98categories          science
    109platforms           darwin
    1110maintainers         googlemail.com:fabian.renn
     
    1918                    ETSF codes and also other codes.
    2019
    2120homepage            http://www.tddft.org/programs/octopus/wiki/index.php/Libxc
    22 master_sites        http://www.tddft.org/programs/octopus/down.php?file=libxc/
     21master_sites        http://www.tddft.org/programs/octopus/download/libxc
    2322
    24 checksums           sha1    48a54c718bfb8784bf5e6aadf82d62ffb70bc5a2 \
    25                     rmd160  0e48a6ab484d1c9f6e305dfc9c860e46c01aa330
     23checksums           rmd160  4aea4331120d78ced6cc1cb0740d4eddb4472797 \
     24                    sha256  c332f08648ec2bc7ccce83e45a84776215aa5dfebc64fae2a23f2ac546d41ea4
    2625
    27 depends_lib         port:gcc45
    28 configure.compiler  macports-gcc-4.5
     26pre-configure {
     27    configure.args  FCCPP="${configure.cpp} -C -ansi"
     28}
    2929
    30 configure.args      --with-gnu-ld
     30use_parallel_build  no
    3131
    32 use_parallel_build  no
     32universal_variant   no
     33
     34variant gcc45 conflicts gcc46 gcc47 description {Build with GCC 4.5} {
     35    configure.compiler  macports-gcc-4.5
     36    depends_lib-append  port:gcc45
     37}
     38variant gcc46 conflicts gcc45 gcc47 description {Build with GCC 4.6} {
     39    configure.compiler  macports-gcc-4.6
     40    depends_lib-append  port:gcc46
     41}
     42variant gcc47 conflicts gcc45 gcc46 description {Build with GCC 4.7} {
     43    configure.compiler  macports-gcc-4.7
     44    depends_lib-append  port:gcc47
     45}
     46
     47if {![variant_isset gcc46] && ![variant_isset gcc47]} {
     48    default_variants    +gcc45
     49}