[MacPorts] #67850: lmms: updating and fixing: some help with bundling and clang testing wanted

MacPorts noreply at macports.org
Sat Jul 29 10:31:04 UTC 2023


#67850: lmms: updating and fixing: some help with bundling and clang testing wanted
---------------------------+------------------------
  Reporter:  barracuda156  |      Owner:  ryandesign
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:
      Port:  lmms          |
---------------------------+------------------------

Comment (by barracuda156):

 P. S. Specifically, where Apple Midi is used and has to be disabled with
 GCC, unless fixed:

 `include/MidiApple.h`

 {{{
 #ifndef MIDI_APPLE_H
 #define MIDI_APPLE_H

 #include "lmmsconfig.h"

 #if defined(LMMS_BUILD_APPLE) && defined(__clang__)
 }}}

 `src/core/midi/MidiApple.cpp`

 {{{
 #include "MidiApple.h"

 #if defined(LMMS_BUILD_APPLE) && defined(__clang__)
 }}}

 `src/core/Mixer.cpp`

 {{{
 #if defined(LMMS_BUILD_APPLE) && defined(__clang__)
     if (name == MidiApple::name())
     {
                 return true;
     }
 #endif
 . . .
 #if defined(LMMS_BUILD_APPLE) && defined(__clang__)
     printf( "trying midi apple...\n" );
     if( client_name == MidiApple::name() || client_name == "" )
     {
         MidiApple * mapple = new MidiApple;
         m_midiClientName = MidiApple::name();
         printf( "Returning midi apple\n" );
         return mapple;
     }
     printf( "midi apple didn't work: client_name=%s\n",
 client_name.toUtf8().constData());
 #endif
 }}}

 `src/gui/SetupDialog.cpp`

 {{{
 #if defined(LMMS_BUILD_APPLE) && defined(__clang__)
     m_midiIfaceSetupWidgets[MidiApple::name()] =
                     MidiSetupWidget::create<MidiApple>( msw );
 #endif
 }}}


 (Only the defined is modified in all these.)

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


More information about the macports-tickets mailing list