[MacPorts] #51303: netcdf: Request: Add static library libnetcdf.a to build

MacPorts noreply at macports.org
Wed May 4 03:32:48 PDT 2016


#51303: netcdf: Request: Add static library libnetcdf.a to build
-----------------------------+--------------------------------
  Reporter:  andy.nowacki@…  |      Owner:  macports-tickets@…
      Type:  enhancement     |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.3.4
Resolution:                  |   Keywords:
      Port:  netcdf          |
-----------------------------+--------------------------------

Comment (by takeshi@…):

 {{{hdf5}}} and {{{netcdf-fortran}}} are configured with traditional
 {{{autotools}}} and have {{{enable-shared}}} and {{{enable-static}}}
 options. {{{netcdf}}} uses CMake and the upstream developers offer a
 switch {{{BUILD_SHARED_LIBS}}} to build either shared ({{{ON}}}) or static
 ({{{OFF}}}). It is possible to build both by conducting {{{configure}}}
 and {{{build}}} phases twice, but it will complicate {{{Portfile}}}, which
 I don't like to do.  You can ask the upstream developers to add an option
 to build both. However, I could easily add a static variant, which does
 not install shared libraries with the current {{{CMakeLists.txt}}}.

-- 
Ticket URL: <https://trac.macports.org/ticket/51303#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list