[MacPorts] #20325: libsdl_mixer fails to build under Snow Leopard

MacPorts noreply at macports.org
Sat Sep 5 14:07:42 PDT 2009


#20325: libsdl_mixer fails to build under Snow Leopard
---------------------------------+------------------------------------------
 Reporter:  info@…               |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  ports                |     Version:  1.8.0                                
 Keywords:  SnowLeopard          |        Port:  libsdl_mixer                         
---------------------------------+------------------------------------------

Comment(by stephan.diederich@…):

 seems like sdl_mixer can't be build in 64bit as it uses 32bit only API
 from Quicktime:
 {{{
 ./native_midi/native_midi_mac.c:49: error: 'NoteRequest' undeclared here
 (not in a function)
 }}}

 Things I've done to get it to build:

  * to fix above I added few things to the Portfile:
    * universal_variant       no
    * configure.build_arch i386
  * fixed libsdl/libsdl-devel dependency
  * arch (-arch i386) isn't set for libtool in Makefile.in so I added
 {{{configure.ldflags-append "-arch i386" }}}
 to the Portfile

  * there are 2 extra rules in Makefile.in that need -arch i386. Hacked:
 {{{
 $(objects)/playwave$(EXE): $(objects)/playwave.lo $(objects)/$(TARGET)
         $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo
 $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET) -arch i386

 $(objects)/playmus$(EXE): $(objects)/playmus.lo $(objects)/$(TARGET)
         $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo
 $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET) -arch i386
 }}}

 Besides building this is totally untested :/

 HTH,
 stephan

-- 
Ticket URL: <http://trac.macports.org/ticket/20325#comment:9>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list