Index: head/emulators/vba/Makefile =================================================================== --- head/emulators/vba/Makefile +++ head/emulators/vba/Makefile @@ -12,8 +12,7 @@ COMMENT= Open source Gameboy Advance emulator LICENSE= GPLv2 - -BROKEN= fails to build +LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= nasm:devel/nasm LIB_DEPENDS= libpng.so:graphics/png Index: head/emulators/vba/files/patch-src_Cheats.cpp =================================================================== --- head/emulators/vba/files/patch-src_Cheats.cpp +++ head/emulators/vba/files/patch-src_Cheats.cpp @@ -0,0 +1,21 @@ +--- src/Cheats.cpp.orig 2018-12-29 21:27:02 UTC ++++ src/Cheats.cpp +@@ -1344,12 +1344,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 + };