[MacPorts] #41203: gmt5 update to 5.1.0 and related packages

MacPorts noreply at macports.org
Thu Nov 7 04:29:07 PST 2013


#41203: gmt5 update to 5.1.0 and related packages
-------------------------------------------+-------------------------------
  Reporter:  florian@…                     |      Owner:  macports-
      Type:  submission                    |  tickets@…
  Priority:  Normal                        |     Status:  new
 Component:  ports                         |  Milestone:
Resolution:                                |    Version:  2.2.1
      Port:  gmt5, gshhg-gmt-nc4, dcw-gmt  |   Keywords:  haspatch
                                           |  maintainer
-------------------------------------------+-------------------------------

Comment (by florian@…):

 I would be happy to oblige but using the cmake portgroup is not as
 straightforward as it seems. When I set
 {{{
 PortGroup                   cmake 1.0
 configure.cflags-append     -DNDEBUG -fstrict-aliasing
 }}}
 in Portfile, cmake is invoked with
 {{{
 -DCMAKE_C_FLAGS="-I/opt/local/include" -DCMAKE_C_FLAGS_RELEASE="-Os"
 }}}
 When I reorder:
 {{{
 configure.cflags-append     -DNDEBUG -fstrict-aliasing
 PortGroup                   cmake 1.0
 }}}
 cmake is invoked with:
 {{{
 -DCMAKE_C_FLAGS="-I/opt/local/include" -DCMAKE_C_FLAGS_RELEASE="-Os
 -DNDEBUG -fstrict-aliasing"
 }}}
 CMake's `CMAKE_C_FLAGS_RELEASE` defaults to `-O3 -NDEBUG` but you never
 get this when leaving `configure.cflags` blank.

 Btw, where does the `-Os` come from. I never set `configure.optflags`.

 To get CMake's default `DCMAKE_C_FLAGS_RELEASE` I would have to specify
 this (in order):
 {{{
 configure.optflags          -O3
 configure.cflags-append     -DNDEBUG
 PortGroup                   cmake 1.0
 }}}

 I haven't yet seen another portfile including cmake portgroup after
 setting configure options. I'm puzzled.

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


More information about the macports-tickets mailing list