Index: head/emulators/visualboyadvance-m/Makefile =================================================================== --- head/emulators/visualboyadvance-m/Makefile (revision 492674) +++ head/emulators/visualboyadvance-m/Makefile (revision 492675) @@ -1,104 +1,103 @@ # Created by: Nicole Reid # $FreeBSD$ PORTNAME= visualboyadvance-m PORTVERSION= 2.0.0b2 PORTREVISION= 6 CATEGORIES= emulators MAINTAINER= root@cooltrainer.org COMMENT= Game Boy Advance emulator with GTK frontend LICENSE= GPLv2 LIB_DEPENDS= libpng.so:graphics/png -BROKEN= fails to build BROKEN_aarch64= fails to build: regparm is not valid on this platform BROKEN_armv6= fails to build: regparm is not valid on this platform BROKEN_armv7= fails to build: regparm is not valid on this platform USE_GITHUB= yes GH_TAGNAME= VBA-M_Beta_2 OPTIONS_DEFINE= NLS FFMPEG LINK LIRC DEBUGGER OPTIONS_MULTI= INTERFACE OPTIONS_MULTI_INTERFACE= GVBAM SDL OPTIONS_DEFINE_i386= ASMCORE ASMSCALERS OPTIONS_DEFAULT= DEBUGGER SDL OPTIONS_SUB= yes GVBAM_DESC= Enable GTK interface SDL_DESC= Enable SDL interface FFMPEG_DESC= Enable FFmpeg A/V recording LINK_DESC= Enable GBA linking functionality LIRC_DESC= Enable LIRC infrared support DEBUGGER_DESC= Enable the debugger ASMCORE_DESC= Enable x86 ASM CPU cores (i386 only) ASMSCALERS_DESC= Enable x86 ASM graphic filters (i386 only) DOS2UNIX_REGEX= .*\.(c|cpp|h|ypp) USE_XORG= x11 xext USE_GL= gl glu USE_SDL= sdl -USES= cmake:insource dos2unix pkgconfig +USES= compiler:c++11-lang cmake:insource dos2unix gnome gl pkgconfig INSTALLS_ICONS= yes CMAKE_ARGS= -DVERSION:STRING="${PORTVERSION}" \ -DSYSCONFDIR:STRING="${PREFIX}/etc" \ -DENABLE_WX:BOOL=no ASMCORE_BUILD_DEPENDS= as:devel/binutils ASMCORE_CMAKE_BOOL= ENABLE_ASM_CORE ASMSCALERS_BUILD_DEPENDS= as:devel/binutils ASMSCALERS_CMAKE_ARGS= ENABLE_ASM_SCALERS GVBAM_USE_GNOME= gtk20 GVBAM_LIB_DEPENDS= libgtkmm-2.4.so:x11-toolkits/gtkmm24 \ libglibmm-2.4.so:devel/glibmm \ libgiomm-2.4.so:devel/glibmm \ libcairomm-1.0.so:graphics/cairomm \ libglademm-2.4.so:devel/libglademm24 \ libgdkglextmm-x11-1.2.so:x11-toolkits/gtkglextmm GVBAM_CMAKE_BOOL= ENABLE_GTK GVBAM_USES= desktop-file-utils SDL_IMPLIES= DEBUGGER SDL_CMAKE_BOOL= ENABLE_SDL DEBUGGER_CMAKE_BOOL= ENABLE_DEBUGGER FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg FFMPEG_CMAKE_BOOL= ENABLE_FFMPEG NLS_USES= gettext NLS_CMAKE_BOOL= ENABLE_NLS LINK_CMAKE_BOOL= ENABLE_LINK LINK_LIB_DEPENDS= libsfml-system.so:devel/sfml LIRC_LIB_DEPENDS= liblirc_client.so:comms/lirc LIRC_RUN_DEPENDS= lircd:comms/lirc LIRC_CMAKE_BOOL= ENABLE_LIRC post-patch: @${REINPLACE_CMD} -e '/SET.*LIRC_CLIENT_LIBRARY/ s|lirc_client|${LOCALBASE}/lib/lib&.so|; \ s|share/man|man|' ${WRKSRC}/CMakeLists.txt maint-gen-distfile: @if [ -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ ${ECHO_CMD} "ERROR: the distfile already exists."; \ ${FALSE}; \ fi svn export -r${SVN_REV} \ https://svn.code.sf.net/p/vbam/code/trunk/ ${DISTNAME} ${TAR} jcf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${DISTNAME} ${RM} -r ${DISTNAME} post-install-SDL-on: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/vbam post-install-GVBAM-on: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gvbam .include Index: head/emulators/visualboyadvance-m/files/patch-fex_fex_blargg__common.h =================================================================== --- head/emulators/visualboyadvance-m/files/patch-fex_fex_blargg__common.h (nonexistent) +++ head/emulators/visualboyadvance-m/files/patch-fex_fex_blargg__common.h (revision 492675) @@ -0,0 +1,11 @@ +--- fex/fex/blargg_common.h.orig 2019-02-11 08:38:11 UTC ++++ fex/fex/blargg_common.h +@@ -12,7 +12,7 @@ + typedef const char* blargg_err_t; // 0 on success, otherwise error string + + // Success; no error +-int const blargg_ok = 0; ++const char* const blargg_ok = 0; + + // BLARGG_RESTRICT: equivalent to C99's restrict, where supported + #if __GNUC__ >= 3 || _MSC_VER >= 1100 Property changes on: head/emulators/visualboyadvance-m/files/patch-fex_fex_blargg__common.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/visualboyadvance-m/files/patch-src_gba_Cheats.cpp =================================================================== --- head/emulators/visualboyadvance-m/files/patch-src_gba_Cheats.cpp (nonexistent) +++ head/emulators/visualboyadvance-m/files/patch-src_gba_Cheats.cpp (revision 492675) @@ -0,0 +1,21 @@ +--- src/gba/Cheats.cpp.orig 2019-02-11 08:37:58 UTC ++++ src/gba/Cheats.cpp +@@ -2477,12 +2477,12 @@ void cheatsAddCBACode(const char *code, const char *de + sscanf(buffer, "%x", &value); + + u8 array[8] = { +- address & 255, +- (address >> 8) & 255, +- (address >> 16) & 255, +- (address >> 24) & 255, +- (value & 255), +- (value >> 8) & 255, ++ static_cast(address & 255), ++ static_cast((address >> 8) & 255), ++ static_cast((address >> 16) & 255), ++ static_cast((address >> 24) & 255), ++ static_cast((value & 255)), ++ static_cast((value >> 8) & 255), + 0, + 0 + }; Property changes on: head/emulators/visualboyadvance-m/files/patch-src_gba_Cheats.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property