From 12027af6c6cfa5be83724c33a916fe420e5983ef Mon Sep 17 00:00:00 2001 From: martymac Date: Tue, 21 Jan 2014 07:26:24 +0000 Subject: - Remove useless USE_GCC (should fix build where Clang is the default compiler) - Use new options framework - Rename CMakeLists' USE_ICONV option to ICONV_LINK --- emulators/dolphin-emu/Makefile | 77 ++++++++-------------- .../patch-Source-Core-DolphinWX-CMakeLists.txt | 8 +-- 2 files changed, 33 insertions(+), 52 deletions(-) (limited to 'emulators') diff --git a/emulators/dolphin-emu/Makefile b/emulators/dolphin-emu/Makefile index e287290dba4b..d45391475495 100644 --- a/emulators/dolphin-emu/Makefile +++ b/emulators/dolphin-emu/Makefile @@ -27,8 +27,6 @@ USE_WX= 2.9+ WX_UNICODE= yes USE_GL= gl glew glu -USE_GCC= yes - USES= dos2unix cmake iconv openal pkgconfig DOS2UNIX_REGEX= .*\.(h|c|cpp) @@ -40,61 +38,44 @@ CMAKE_ARGS+= -DOPENMP:BOOL=OFF \ -DUSE_X11:BOOL=ON \ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON -OPTIONS_DEFINE= PULSEAUDIO PORTAUDIO DEBUG FRAMEDUMPS UPNP +OPTIONS_DEFINE= PULSEAUDIO PORTAUDIO DEBUG FRAMEDUMPS UPNP NLS +OPTIONS_DEFAULT= PORTAUDIO FRAMEDUMPS UPNP NLS +OPTIONS_SUB= yes +PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio +PULSEAUDIO_CMAKE_ON= -DDISABLE_PULSEAUDIO:BOOL=OFF +PULSEAUDIO_CMAKE_OFF= -DDISABLE_PULSEAUDIO:BOOL=ON PORTAUDIO_DESC= Enable PortAudio (mic) support +PORTAUDIO_LIB_DEPENDS= libportaudio.so.2:${PORTSDIR}/audio/portaudio2 +PORTAUDIO_CMAKE_ON= -DDISABLE_PORTAUDIO:BOOL=OFF +PORTAUDIO_CMAKE_OFF= -DDISABLE_PORTAUDIO:BOOL=ON +DEBUG_MAKE_ENV= VERBOSE=yes +DEBUG_CMAKE_ON= -DFASTLOG:BOOL=ON +DEBUG_CMAKE_OFF= -DFASTLOG:BOOL=OFF FRAMEDUMPS_DESC= Encode framedumps in AVI format -OPTIONS_DEFAULT= PORTAUDIO FRAMEDUMPS UPNP - -.include +FRAMEDUMPS_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \ + libavformat.so:${PORTSDIR}/multimedia/ffmpeg \ + libswscale.so:${PORTSDIR}/multimedia/ffmpeg \ + libavutil.so:${PORTSDIR}/multimedia/ffmpeg +FRAMEDUMPS_CMAKE_ON= -DENCODE_FRAMEDUMPS:BOOL=ON +FRAMEDUMPS_CMAKE_OFF= -DENCODE_FRAMEDUMPS:BOOL=OFF +UPNP_LIB_DEPENDS= libminiupnpc.so:${PORTSDIR}/net/miniupnpc +UPNP_CMAKE_ON= -DUSE_UPNP:BOOL=ON +UPNP_CMAKE_OFF= -DUSE_UPNP:BOOL=OFF +NLS_USES= gettext +NLS_CMAKE_ON= -DDISABLE_NLS:BOOL=OFF +NLS_CMAKE_OFF= -DDISABLE_NLS:BOOL=ON -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CMAKE_ARGS+= -DDISABLE_NLS:BOOL=ON -PLIST_SUB+= NLS="@comment " -.endif +.include +# XXX Temporary workaround for ports/184540 .if ${PORT_OPTIONS:MDEBUG} -CMAKE_ARGS+= -DFASTLOG:BOOL=ON -MAKE_ENV+= VERBOSE=yes +INSTALL_TARGET= install .endif -.if ${PORT_OPTIONS:MPULSEAUDIO} -LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio -.else -CMAKE_ARGS+= -DDISABLE_PULSEAUDIO:BOOL=ON -.endif - -.if ${PORT_OPTIONS:MPORTAUDIO} -LIB_DEPENDS+= libportaudio.so.2:${PORTSDIR}/audio/portaudio2 -.else -CMAKE_ARGS+= -DDISABLE_PORTAUDIO:BOOL=ON -.endif - -.if ${PORT_OPTIONS:MFRAMEDUMPS} -CMAKE_ARGS+= -DENCODE_FRAMEDUMPS:BOOL=ON -LIB_DEPENDS+= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \ - libavformat.so:${PORTSDIR}/multimedia/ffmpeg \ - libswscale.so:${PORTSDIR}/multimedia/ffmpeg \ - libavutil.so:${PORTSDIR}/multimedia/ffmpeg -.else -CMAKE_ARGS+= -DENCODE_FRAMEDUMPS:BOOL=OFF -.endif - -.if ${PORT_OPTIONS:MUPNP} -CMAKE_ARGS+= -DUSE_UPNP:BOOL=ON -LIB_DEPENDS+= libminiupnpc.so:${PORTSDIR}/net/miniupnpc -.else -CMAKE_ARGS+= -DUSE_UPNP:BOOL=OFF -.endif - -.include - .if !empty(ICONV_LIB) -CMAKE_ARGS+= -DUSE_ICONV:BOOL=ON +CMAKE_ARGS+= -DICONV_LINK:BOOL=ON .else -CMAKE_ARGS+= -DUSE_ICONV:BOOL=OFF +CMAKE_ARGS+= -DICONV_LINK:BOOL=OFF .endif .include diff --git a/emulators/dolphin-emu/files/patch-Source-Core-DolphinWX-CMakeLists.txt b/emulators/dolphin-emu/files/patch-Source-Core-DolphinWX-CMakeLists.txt index f4318033089c..5d1293660c6c 100644 --- a/emulators/dolphin-emu/files/patch-Source-Core-DolphinWX-CMakeLists.txt +++ b/emulators/dolphin-emu/files/patch-Source-Core-DolphinWX-CMakeLists.txt @@ -14,12 +14,12 @@ else() - set(LIBS ${LIBS} png iconv) + set(LIBS ${LIBS} png) -+ set(USE_ICONV True) ++ set(ICONV_LINK True) +endif() + -+if(USE_ICONV) -+ message( "-- Adding iconv") -+ set(LIBS ${LIBS} iconv) ++if(ICONV_LINK) ++ message( "-- Linking to libiconv") ++ set(LIBS ${LIBS} iconv) endif() if(LIBAV_FOUND) -- cgit