[MacPorts] #30120: NetCDF 4 c++ headers.
#30120: NetCDF 4 c++ headers. -------------------------------+-------------------------------------------- Reporter: f.baart@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: c++ netcdf | Port: netcdf -------------------------------+-------------------------------------------- Starting from netCDF 4.1.1 netcdf has a new c++ interface. This can be build using: ./configure --enable-cxx-4 [plus other options] Can you add this option to the netCDF portfile. I think the following should be added: variant cxx-4 description {enable netCDF-4 c++ interface} { configure.args-delete --disable-cxx-4 configure.args-append --enable-cxx-4 } Or maybe it makes more sense to add it to the netcdf4 variant. For details about the new c++ interface, see: http://www.unidata.ucar.edu/software/netcdf/docs/cxx4/ -- Ticket URL: <https://trac.macports.org/ticket/30120> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30120: NetCDF 4 c++ headers. -------------------------------+-------------------------------------------- Reporter: f.baart@… | Owner: takeshi@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: netcdf -------------------------------+-------------------------------------------- Changes (by macsforever2000@…): * keywords: c++ netcdf => * owner: macports-tickets@… => takeshi@… * version: 1.9.2 => * cc: f.baart@… (removed) Old description:
Starting from netCDF 4.1.1 netcdf has a new c++ interface. This can be build using:
./configure --enable-cxx-4 [plus other options]
Can you add this option to the netCDF portfile. I think the following should be added:
variant cxx-4 description {enable netCDF-4 c++ interface} { configure.args-delete --disable-cxx-4 configure.args-append --enable-cxx-4 }
Or maybe it makes more sense to add it to the netcdf4 variant. For details about the new c++ interface, see: http://www.unidata.ucar.edu/software/netcdf/docs/cxx4/
New description: Starting from netCDF 4.1.1 netcdf has a new c++ interface. This can be build using: {{{ ./configure --enable-cxx-4 [plus other options] }}} Can you add this option to the netCDF portfile. I think the following should be added: {{{ variant cxx-4 description {enable netCDF-4 c++ interface} { configure.args-delete --disable-cxx-4 configure.args-append --enable-cxx-4 } }}} Or maybe it makes more sense to add it to the netcdf4 variant. For details about the new c++ interface, see: http://www.unidata.ucar.edu/software/netcdf/docs/cxx4/ -- -- Ticket URL: <https://trac.macports.org/ticket/30120#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30120: NetCDF 4 c++ headers. -------------------------------+-------------------------------------------- Reporter: f.baart@… | Owner: takeshi@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: netcdf -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Is there any reason not to enable this all the time? Having fewer variants is better. -- Ticket URL: <https://trac.macports.org/ticket/30120#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30120: NetCDF 4 c++ headers. -------------------------------+-------------------------------------------- Reporter: f.baart@… | Owner: takeshi@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: netcdf -------------------------------+-------------------------------------------- Comment(by f.baart@…): I checked a build with and without --enable-cxx-4 and the old header files are always there, so it's not likely to break anything build against the old header files. It is not useful if netcdf-4 is not used, because in the configure.ac enable-cxx is disabled if netcdf-4 is not enabled: {{{ if test "x$enable_netcdf_4" = xno; then enable_cxx_4=no fi }}} So the --enable-cxx-4 flag can be set when the netcdf-4 variant is used. No need for an extra variant. -- Ticket URL: <https://trac.macports.org/ticket/30120#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30120: NetCDF 4 c++ headers. -------------------------------+-------------------------------------------- Reporter: f.baart@… | Owner: takeshi@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: netcdf -------------------------------+-------------------------------------------- Comment(by takeshi@…): I included --enable-cxx-4 in netcdf4 variant. Committed in r80405. -- Ticket URL: <https://trac.macports.org/ticket/30120#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30120: NetCDF 4 c++ headers. --------------------------------+------------------------------------------- Reporter: f.baart@… | Owner: takeshi@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: netcdf | --------------------------------+------------------------------------------- Changes (by takeshi@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/30120#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30120: NetCDF 4 c++ headers. --------------------------------+------------------------------------------- Reporter: f.baart@… | Owner: takeshi@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: netcdf | --------------------------------+------------------------------------------- Comment(by f.baart@…): I tested it and it works fine, thanks. -- Ticket URL: <https://trac.macports.org/ticket/30120#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts