[MacPorts] #50199: gnuplot: opportunistically uses gtk2 when building with wxwidgets enabled

MacPorts noreply at macports.org
Sun Jan 3 23:05:33 PST 2016


#50199: gnuplot: opportunistically uses gtk2 when building with wxwidgets enabled
-----------------------+---------------------
  Reporter:  devans@…  |      Owner:  mojca@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  gnuplot   |
-----------------------+---------------------

Comment (by mojca@…):

 I checked what difference it makes when `HAVE_GTK` is defined. From the
 point of view of functionality it doesn't seem to make any difference:
 {{{
 /* if the gtk headers are available, use them to tweak some behaviours */
 #if defined(__WXGTK__)&&defined(HAVE_GTK)
 # define USE_GTK
 #endif
 }}}
 but there is still a problem with:
 {{{
     WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
     WX_LIBS="$WX_LIBS $GTK_LIBS"
 }}}
 which shouldn't have been there.

 David, do you have any suggestions for a proper fix? The only thing that
 comes to my might would be either this:
 {{{
 # when using Cocoa:
 > wx-config --list

     Default config is osx_cocoa-unicode-3.0

   Default config will be used for output
 }}}

 {{{
 # when using GTK:
 > wx-config --list

     Default config is gtk3-unicode-3.0

   Default config will be used for output
 }}}
 or actually trying to compile a minimal example with wxWidgets and
 checking whether `__WXGTK__` is defined or not with one of `AC_RUN_IFELSE`
 (or other `AC_<FOO>` functions).

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


More information about the macports-tickets mailing list