Changeset 144223


Ignore:
Timestamp:
Jan 5, 2016, 12:49:16 AM (4 years ago)
Author:
sean@…
Message:

ccpnmr: use compilers portgroup; fixes #49010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/ccpnmr/Portfile

    r134561 r144223  
    33
    44PortSystem          1.0
     5PortGroup           compilers 1.0
    56
    67name                ccpnmr
     
    2829use_configure       no
    2930
     31compilers.choose    cc cxx
     32compilers.setup     -clang -dragonegg -g95 -gfortran -llvm
     33
    3034set python.branch       2.7
    3135set python.prefix       ${frameworks_dir}/Python.framework/Versions/${python.branch}
     
    3539set python.include      ${python.prefix}/include/python${python.branch}
    3640
    37 set lib ""
    38 
    3941post-patch {
     42    set lib ""
     43    if {[gcc_variant_isset]} {
     44        set lib "${prefix}/lib/[gcc_variant_name]"
     45    }
    4046    reinplace  "s|@PYTHON_BIN@|${python.bin}|g"   ${worksrcpath}/bin/analysis \
    4147                                                  ${worksrcpath}/bin/formatConverter \
     
    7985}
    8086
    81 variant gcc45 conflicts gcc46 gcc47 gcc48 gcc49  description {Build with GCC 4.5} {
    82     configure.compiler  macports-gcc-4.5
    83     set lib ${prefix}/lib/gcc45
     87if {![gcc_variant_isset]} {
     88    default_variants-append +${compilers.gcc_default}
    8489}
    85 variant gcc46 conflicts gcc45 gcc47 gcc48 gcc49 description {Build with GCC 4.6} {
    86     configure.compiler  macports-gcc-4.6
    87     set lib ${prefix}/lib/gcc46
    88 }
    89 variant gcc47 conflicts gcc45 gcc46 gcc48 gcc49 description {Build with GCC 4.7} {
    90     configure.compiler  macports-gcc-4.7
    91     set lib ${prefix}/lib/gcc47
    92 }
    93 variant gcc48 conflicts gcc45 gcc46 gcc47 gcc49 description {Build with GCC 4.8} {
    94     configure.compiler  macports-gcc-4.8
    95     set lib ${prefix}/lib/gcc48
    96 }
    97 variant gcc49 conflicts gcc45 gcc46 gcc47 gcc48 description {Build with GCC 4.9} {
    98     configure.compiler  macports-gcc-4.9
    99     set lib ${prefix}/lib/gcc49
    100 }
    101 
    102 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48] && ![variant_isset gcc49]} {
    103     default_variants    +gcc48
    104 }
Note: See TracChangeset for help on using the changeset viewer.