[MacPorts] #49711: [cpp-netlib][0.11.2][new port]

MacPorts noreply at macports.org
Mon Dec 14 07:56:46 PST 2015


#49711: [cpp-netlib][0.11.2][new port]
-------------------------+--------------------------------
  Reporter:  nikkoara@…  |      Owner:  macports-tickets@…
      Type:  submission  |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  cpp-netlib  |
-------------------------+--------------------------------

Comment (by raimue@…):

 I tried to build the default, which is `+shared`. I should not need static
 boost libraries for this. However, looking at the `+shared` variant, I
 noticed it is not actually doing anything:

 {{{
 variant shared description {Build shared libraries} {
     configure.args-replace -DBUILD_SHARED_LIBS:BOOL=OFF
 -DBUILD_SHARED_LIBS:BOOL=ON
 }
 }}}

 The cmake port group provides a list of default options in
 `configure.args`. The one listed here is not in this list, so the
 `-replace` finds nothing to replace. Probably you meant to use `-append`
 with the second argument only? This works for me:

 {{{
 variant shared description {Build shared libraries} {
     configure.args-append -DBUILD_SHARED_LIBS:BOOL=ON
 }
 }}}

 I did not test the `+static` variant, as I would have to recompile boost
 `-no_static` to test it.

 I would recommend to also add `-DCPP-NETLIB_BUILD_EXAMPLES:BOOL=OFF` to
 avoid wasting CPU time to build examples which will not be installed at
 all. I am unsure if the same is true for `-DCPP-
 NETLIB_BUILD_TESTS:BOOL=OFF` and `-DCPP-
 NETLIB_BUILD_EXPERIMENTS:BOOL=OFF`, since they could be used for `port
 test`, but I did not try.

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


More information about the macports-tickets mailing list