[MacPorts] #54699: mame: New port

MacPorts noreply at macports.org
Fri Sep 1 19:20:00 UTC 2017


#54699: mame: New port
-------------------------+-----------------
  Reporter:  mf2k        |      Owner:
      Type:  submission  |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  mame        |
-------------------------+-----------------

Comment (by kencu):

 As a data point, I took a slightly different approach.
 {{{
 build.args-append   CC=${configure.cc} \
                     CXX=${configure.cxx} \
                     -e

 build.env-append    USE_LIBSDL = 1 \
                     USE_BUNDLED_LIB_SDL2=0 \
                     PYTHON_EXECUTABLE=/opt/local/bin/python3.6 \
                     MESA_INSTALL_ROOT=${prefix} \
                     SDL_INSTALL_ROOT=${prefix}
 }}}

 which builds through all the way to:
 {{{
 In file included from
 ../../../../../src/osd/modules/input/input_common.cpp:36:
 In file included from /opt/local/include/SDL2/SDL.h:32:
 In file included from /opt/local/include/SDL2/SDL_main.h:25:
 In file included from /opt/local/include/SDL2/SDL_stdinc.h:31:
 In file included from /opt/local/include/SDL2/SDL_config.h:33:
 /opt/local/include/SDL2/SDL_platform.h:73:5: error: 'TARGET_OS_TV' is not
 defined, evaluates to 0 [-Werror,-Wundef]
 #if TARGET_OS_TV
     ^
 }}}

 which is actually a minor error in the say the SLD_platform.h is written,
 which I fixed like this in that header for the moment:
 {{{
 //#if TARGET_OS_TV
 #if defined(TARGET_OS_TV)
 }}}
 but in the end (after a very long build) still fails to link at final
 stages because no SDL.framework is found.
 {{{
 Linking mame...
 ld: framework not found SDL2
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 }}}

 So I'll leave this with you, but I'd still look at fixing this logic.
 <https://trac.macports.org/ticket/54699#comment:3>

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


More information about the macports-tickets mailing list