[80267] trunk/dports/science/netcdf-devel/Portfile
takeshi at macports.org
takeshi at macports.org
Fri Jul 8 00:57:29 PDT 2011
Revision: 80267
http://trac.macports.org/changeset/80267
Author: takeshi at macports.org
Date: 2011-07-08 00:57:28 -0700 (Fri, 08 Jul 2011)
Log Message:
-----------
netcdf-devel: more work to make this port replaced.
Modified Paths:
--------------
trunk/dports/science/netcdf-devel/Portfile
Modified: trunk/dports/science/netcdf-devel/Portfile
===================================================================
--- trunk/dports/science/netcdf-devel/Portfile 2011-07-08 07:52:17 UTC (rev 80266)
+++ trunk/dports/science/netcdf-devel/Portfile 2011-07-08 07:57:28 UTC (rev 80267)
@@ -6,7 +6,7 @@
name netcdf-devel
epoch 1
version 4.1.1
-revision 1
+revision 2
maintainers nomaintainer
replaced_by netcdf
platforms darwin
@@ -20,89 +20,11 @@
homepage http://www.unidata.ucar.edu/packages/netcdf/
-distname netcdf-${version}
-dist_subdir netcdf
-master_sites ftp://ftp.unidata.ucar.edu/pub/netcdf/ \
- http://www.gfd-dennou.org/arch/netcdf/unidata-mirror/ \
- ftp://www.gfd-dennou.org/arch/netcdf/unidata-mirror/
+distfiles
-checksums md5 79c5ff14c80d5e18dd8f1fceeae1c8e1 \
- sha1 6fece208825b978fc2240732f6f57927d71a0552 \
- rmd160 89b6e1a2115ef348ac83166aa7a50e045fbd98e2
-
-patch {
- reinplace {s|enable_shared\" !|enable_shared\" |} ${worksrcpath}/configure
- reinplace {/^AM_CPPFLAGS/s/\(\$(am__append_5)\) \(\$(am__append_7)\)/\2 \1/} ${worksrcpath}/ncdump/Makefile.in
+pre-configure {
+ ui_error "${name} has been renamed to ${replaced_by}. Please install ${replaced_by} instead."
+ return -code error "obsolete port"
}
-configure.cppflags-append -DNDEBUG
-configure.cxxflags-append -fno-common
-configure.cflags-append -fno-common
-configure.args --prefix=${prefix}/lib/${name} \
- --enable-shared \
- --disable-fortran-compiler-check \
- --disable-f77 --disable-f90 \
- --enable-netcdf-4 \
- --with-hdf5=${prefix} \
- --with-szlib=${prefix} \
- --enable-hdf4 \
- --with-hdf4=${prefix} \
- --disable-hdf4-file-tests \
- --with-libcf \
- --enable-dap \
- --without-udunits
-
-test.run yes
-test.target check
-
-destroot.destdir prefix=${destroot}${prefix}/lib/${name}
-
-post-destroot {
- file delete -force ${destroot}${prefix}/share/man/whatis.db
-}
-
-depends_lib port:hdf5-18 \
- port:hdf4 \
- port:curl
-depends_build bin:tex:texlive
-
-variant gcc43 conflicts g95 gcc44 description {Enable Fortran support with gfortran 4.3} {
- depends_lib-append port:gcc43
- configure.args-delete --disable-fortran-compiler-check --disable-f77 --disable-f90
- configure.cppflags-append -DpgiFortran
- configure.compiler macports-gcc-4.3
-}
-
-variant gcc44 conflicts g95 gcc43 description {Enable Fortran support with gfortran 4.4} {
- depends_lib-append port:gcc44
- configure.args-delete --disable-fortran-compiler-check --disable-f77 --disable-f90
- configure.cppflags-append -DpgiFortran
- configure.compiler macports-gcc-4.4
-}
-
-variant g95 conflicts gcc43 gcc44 description {Enable Fortran support with g95} {
- depends_lib-append port:g95
- configure.args-delete --disable-fortran-compiler-check --disable-f77 --disable-f90
- #-lfg95 required or the tests fail
- configure.ldflags-append -lf95
- configure.fc ${prefix}/bin/g95
- configure.f77 ${configure.fc}
-}
-
-variant openmpi conflicts mpich2 description {compile with openmpi} {
- depends_lib-append port:openmpi
- configure.fc openmpif77
- configure.cc openmpicc
- configure.cxx openmpicxx
-}
-
-variant mpich2 conflicts openmpi description {compile with mpich2} {
- depends_lib-append port:mpich2
- configure.fc mpif90
- configure.cc mpicc
- configure.cxx mpicxx
-}
-
-variant static description {build static libraries} {
- configure.args-delete --enable-shared
-}
+livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110708/4ec53977/attachment.html>
More information about the macports-changes
mailing list