New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80267


Ignore:
Timestamp:
07/08/11 00:57:28 (4 years ago)
Author:
takeshi@…
Message:

netcdf-devel: more work to make this port replaced.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/netcdf-devel/Portfile

    r80256 r80267  
    77epoch                       1 
    88version                     4.1.1 
    9 revision                    1 
     9revision                    2 
    1010maintainers                 nomaintainer 
    1111replaced_by                 netcdf 
     
    2121homepage                    http://www.unidata.ucar.edu/packages/netcdf/ 
    2222 
    23 distname                    netcdf-${version} 
    24 dist_subdir                 netcdf 
    25 master_sites                ftp://ftp.unidata.ucar.edu/pub/netcdf/ \ 
    26                             http://www.gfd-dennou.org/arch/netcdf/unidata-mirror/ \ 
    27                             ftp://www.gfd-dennou.org/arch/netcdf/unidata-mirror/ 
     23distfiles 
    2824 
    29 checksums                   md5     79c5ff14c80d5e18dd8f1fceeae1c8e1 \ 
    30                             sha1    6fece208825b978fc2240732f6f57927d71a0552 \ 
    31                             rmd160  89b6e1a2115ef348ac83166aa7a50e045fbd98e2 
    32  
    33 patch { 
    34     reinplace {s|enable_shared\" !|enable_shared\" |} ${worksrcpath}/configure 
    35     reinplace {/^AM_CPPFLAGS/s/\(\$(am__append_5)\) \(\$(am__append_7)\)/\2 \1/} ${worksrcpath}/ncdump/Makefile.in 
     25pre-configure { 
     26    ui_error "${name} has been renamed to ${replaced_by}. Please install ${replaced_by} instead." 
     27    return -code error "obsolete port" 
    3628} 
    3729 
    38 configure.cppflags-append   -DNDEBUG 
    39 configure.cxxflags-append   -fno-common 
    40 configure.cflags-append     -fno-common 
    41 configure.args              --prefix=${prefix}/lib/${name} \ 
    42                             --enable-shared \ 
    43                             --disable-fortran-compiler-check \ 
    44                             --disable-f77 --disable-f90 \ 
    45                             --enable-netcdf-4 \ 
    46                             --with-hdf5=${prefix} \ 
    47                             --with-szlib=${prefix} \ 
    48                             --enable-hdf4 \ 
    49                             --with-hdf4=${prefix} \ 
    50                             --disable-hdf4-file-tests \ 
    51                             --with-libcf \ 
    52                             --enable-dap \ 
    53                             --without-udunits 
    54  
    55 test.run                    yes 
    56 test.target                 check 
    57  
    58 destroot.destdir            prefix=${destroot}${prefix}/lib/${name} 
    59  
    60 post-destroot { 
    61     file delete -force ${destroot}${prefix}/share/man/whatis.db 
    62 } 
    63  
    64 depends_lib                 port:hdf5-18 \ 
    65                             port:hdf4 \ 
    66                             port:curl 
    67 depends_build               bin:tex:texlive 
    68  
    69 variant gcc43 conflicts g95 gcc44 description {Enable Fortran support with gfortran 4.3} { 
    70     depends_lib-append      port:gcc43 
    71     configure.args-delete   --disable-fortran-compiler-check --disable-f77 --disable-f90 
    72     configure.cppflags-append -DpgiFortran 
    73     configure.compiler      macports-gcc-4.3 
    74 } 
    75  
    76 variant gcc44 conflicts g95 gcc43 description {Enable Fortran support with gfortran 4.4} { 
    77     depends_lib-append      port:gcc44 
    78     configure.args-delete   --disable-fortran-compiler-check --disable-f77 --disable-f90 
    79     configure.cppflags-append -DpgiFortran 
    80     configure.compiler      macports-gcc-4.4 
    81 } 
    82  
    83 variant g95 conflicts gcc43 gcc44 description {Enable Fortran support with g95} { 
    84     depends_lib-append      port:g95 
    85     configure.args-delete   --disable-fortran-compiler-check --disable-f77 --disable-f90 
    86     #-lfg95 required or the tests fail 
    87     configure.ldflags-append    -lf95 
    88     configure.fc            ${prefix}/bin/g95 
    89     configure.f77           ${configure.fc} 
    90 } 
    91  
    92 variant openmpi conflicts mpich2 description {compile with openmpi} { 
    93     depends_lib-append      port:openmpi 
    94     configure.fc            openmpif77 
    95     configure.cc            openmpicc 
    96     configure.cxx           openmpicxx 
    97 } 
    98  
    99 variant mpich2 conflicts openmpi description {compile with mpich2} { 
    100     depends_lib-append      port:mpich2 
    101     configure.fc            mpif90 
    102     configure.cc            mpicc 
    103     configure.cxx           mpicxx 
    104 } 
    105  
    106 variant static description {build static libraries} { 
    107     configure.args-delete  --enable-shared 
    108 } 
     30livecheck.type              none 
Note: See TracChangeset for help on using the changeset viewer.