Index: head/emulators/ppsspp/Makefile =================================================================== --- head/emulators/ppsspp/Makefile (revision 398679) +++ head/emulators/ppsspp/Makefile (revision 398680) @@ -1,104 +1,102 @@ # $FreeBSD$ PORTNAME= ppsspp DISTVERSIONPREFIX= v -DISTVERSION?= 1.0.1 -PORTREVISION?= 5 +DISTVERSION?= 1.1.0 +PORTREVISION?= 0 CATEGORIES= emulators +# XXX Get from Debian once #697821 lands +MASTER_SITES= https://bazaar.launchpad.net/~sergio-br2/${PORTNAME}/debian-sdl/download/1/${PORTNAME}.1-20140802045408-dd26dik367ztj5xg-8/:manpage +DISTFILES= ${PORTNAME}.1:manpage +EXTRACT_ONLY= ${DISTFILES:N*\:manpage:C/:.*//} -.ifndef PKGNAMESUFFIX -PATCH_SITES= https://projects.archlinux.org/svntogit/community.git/plain/trunk/ -PATCHFILES= ${PORTNAME}-ffmpeg.patch?id=f2b9251:-p1 -.endif - MAINTAINER= jbeich@FreeBSD.org COMMENT= PSP emulator in C++ with dynarec JIT for x86, ARM, MIPS LICENSE= GPLv2 # or any later version -LIB_DEPENDS+= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg +LIB_DEPENDS= libzip.so:${PORTSDIR}/archivers/libzip \ + libsnappy.so:${PORTSDIR}/archivers/snappy \ + libavcodec.so:${PORTSDIR}/multimedia/ffmpeg RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils USE_GITHUB= yes GH_ACCOUNT= hrydgard:DEFAULT,lang Kingcom:ext_armips GH_PROJECT= ${PORTNAME}-lang:lang armips:ext_armips -GH_TAGNAME?= 52c757e:lang 52ce9c1:native a0b878f:ext_armips +GH_TAGNAME?= 38e1efe:lang a0b878f:ext_armips -.ifndef PKGNAMESUFFIX -GH_ACCOUNT+= hrydgard:native -GH_PROJECT+= native:native -.endif - CONFLICTS_INSTALL?= ${PORTNAME}-devel-[0-9]* USES= compiler:c++11-lib localbase pkgconfig -USE_GL+= glu +EXCLUDE= glew snappy libzip zlib +EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude ,} +USE_GL= glew glu USE_SDL= sdl2 # joystick CMAKE_ARGS= -DUSE_SYSTEM_FFMPEG=on QMAKE_SOURCE_PATH= ${WRKSRC}/Qt/PPSSPPQt.pro QMAKE_ARGS= CONFIG+="system_ffmpeg" LREL_TOOL="${LRELEASE}" NINJA_VERBOSE= yes NO_INSTALL= yes # ports/202949 DESKTOP_ENTRIES="PPSSPP" \ "" \ "${PORTNAME}" \ "${PORTNAME} %f" \ "Game;Emulator;" \ "" OPTIONS_DEFAULT=QT5 OPTIONS_SINGLE= GUI OPTIONS_SINGLE_GUI= QT4 QT5 SDL QT4_USES= qmake:outsource QT4_USE= QT4=qmake_build,moc_build,rcc_build,uic_build,linguisttools_build,gui,opengl QT5_USES= qmake:outsource QT5_USE= QT5=qmake_build,buildtools_build,linguisttools_build,gui,opengl,widgets SDL_USES= cmake:outsource ninja SDL_BUILD_DEPENDS= png>=1.6:${PORTSDIR}/graphics/png SDL_LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png SDL_VARS= PORTDATA+="assets ${PORTNAME}" post-extract: # Convert USE_GITHUB groups to git-submodule(1) paths .for group in ${GH_PROJECT:C/.*://} @${RMDIR} ${WRKSRC}/${group:S,_,/,g} @${MV} ${WRKSRC_${group}} ${WRKSRC}/${group:S,_,/,g} .endfor post-patch: @${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,' \ ${WRKSRC}/UI/NativeApp.cpp + @${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},' \ + ${WRKSRC}/Qt/*.pr* @${REINPLACE_CMD} \ -e 's/"unknown"/"${GH_TAGNAME}"/' \ -e 's/^\(VERSION =\).*/\1 ${GH_TAGNAME}/' \ ${WRKSRC}/git-version.cmake \ ${WRKSRC}/Qt/Settings.pri do-install-SDL-on: # cmake doesn't pack assets into the app unlike qmake # XXX Convert to ${PORTDATA:N${PORTNAME}} once fmake is EOL (cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} \ "${PORTDATA:Nppsspp}" ${STAGEDIR}${DATADIR}) # Install the app alongside assets to avoid warnings with GetExeDirectory() ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME:tu}* \ ${STAGEDIR}${DATADIR}/${PORTNAME} ${LN} -sf ${DATADIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin do-install-SDL-off: ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \ ${STAGEDIR}${PREFIX}/bin post-install: -.ifndef PKGNAMESUFFIX - ${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.1 \ + ${INSTALL_MAN} ${_DISTDIR}/${PORTNAME}.1 \ ${STAGEDIR}${MAN1PREFIX}/man/man1 -.endif (cd ${WRKSRC}/assets/unix-icons && ${COPYTREE_SHARE} \ "hicolor" ${STAGEDIR}${PREFIX}/share/icons) ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps ${INSTALL_DATA} ${WRKSRC}/assets/unix-icons/icon-512.svg \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}.svg .include Index: head/emulators/ppsspp/distinfo =================================================================== --- head/emulators/ppsspp/distinfo (revision 398679) +++ head/emulators/ppsspp/distinfo (revision 398680) @@ -1,10 +1,8 @@ -SHA256 (hrydgard-ppsspp-v1.0.1_GH0.tar.gz) = e2d656671301a13e13f94c0a3021eaacacc9428fa9df60307b16ed5b4498812c -SIZE (hrydgard-ppsspp-v1.0.1_GH0.tar.gz) = 14199883 -SHA256 (hrydgard-ppsspp-lang-52c757e_GH0.tar.gz) = 9f9c97e1d506645f68dfb7fbd6c380be0bb66d23f56a33251bb50ac95b498e8a -SIZE (hrydgard-ppsspp-lang-52c757e_GH0.tar.gz) = 193165 -SHA256 (hrydgard-native-52ce9c1_GH0.tar.gz) = 2d3fbcc0685046326f21158892c235a1dcd4770d1cfedd29da0e06daa9c2ce5e -SIZE (hrydgard-native-52ce9c1_GH0.tar.gz) = 1393991 +SHA256 (ppsspp.1) = 8e335555393a6400c97d5f6d23798af801f88b909181bb5af676dfdcb4f8f8be +SIZE (ppsspp.1) = 1507 +SHA256 (hrydgard-ppsspp-v1.1.0_GH0.tar.gz) = b65d95e66d37bdcb2e9ab4d176014f2088951f4be7e0d13fc1de6786ab4ef736 +SIZE (hrydgard-ppsspp-v1.1.0_GH0.tar.gz) = 14767366 +SHA256 (hrydgard-ppsspp-lang-38e1efe_GH0.tar.gz) = 5585ff0b46d7ff7633b23d0069a20d27107003454c77f06762f4e6701725cd1c +SIZE (hrydgard-ppsspp-lang-38e1efe_GH0.tar.gz) = 214388 SHA256 (Kingcom-armips-a0b878f_GH0.tar.gz) = 64623bbddda609f9692904e6b6823b1d2d4dd0149349f2be9edcc600bf12bafa SIZE (Kingcom-armips-a0b878f_GH0.tar.gz) = 136535 -SHA256 (ppsspp-ffmpeg.patch?id=f2b9251) = 4d60b99f9e6fe1bb81b2b1b648845f9e76289ba824fcb5e53f2117d0319e086d -SIZE (ppsspp-ffmpeg.patch?id=f2b9251) = 6304 Index: head/emulators/ppsspp/files/patch-Core_Reporting.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Core_Reporting.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Core_Reporting.cpp (nonexistent) @@ -1,28 +0,0 @@ ---- Core/Reporting.cpp.orig 2015-02-26 20:05:06 UTC -+++ Core/Reporting.cpp -@@ -189,8 +189,6 @@ namespace Reporting - return "Mac"; - #elif defined(__SYMBIAN32__) - return "Symbian"; --#elif defined(__FreeBSD__) -- return "BSD"; - #elif defined(BLACKBERRY) - return "Blackberry"; - #elif defined(LOONGSON) -@@ -199,6 +197,16 @@ namespace Reporting - return "Nokia Maemo"; - #elif defined(__linux__) - return "Linux"; -+#elif defined(__Bitrig__) -+ return "Bitrig"; -+#elif defined(__DragonFly__) -+ return "DragonFly"; -+#elif defined(__FreeBSD__) -+ return "FreeBSD"; -+#elif defined(__NetBSD__) -+ return "NetBSD"; -+#elif defined(__OpenBSD__) -+ return "OpenBSD"; - #else - return "Unknown"; - #endif Property changes on: head/emulators/ppsspp/files/patch-Core_Reporting.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-native_net_http__headers.cpp =================================================================== --- head/emulators/ppsspp/files/patch-native_net_http__headers.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-native_net_http__headers.cpp (nonexistent) @@ -1,26 +0,0 @@ ---- native/net/http_headers.cpp.orig 2015-02-23 23:22:58 UTC -+++ native/net/http_headers.cpp -@@ -1,11 +1,5 @@ - #include "net/http_headers.h" - --#ifdef _WIN32 -- --#include // for timeval -- --#endif -- - #include - #include - -@@ -132,11 +126,6 @@ int RequestHeader::ParseHttpHeader(const - } - - void RequestHeader::ParseHeaders(int fd) { -- // Get the request, with a timeout. -- struct ::timeval tv; -- tv.tv_sec = 5; -- tv.tv_usec = 0; -- - int line_count = 0; - // Loop through request headers. - while (true) { Property changes on: head/emulators/ppsspp/files/patch-native_net_http__headers.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-native_image_png__load.cpp =================================================================== --- head/emulators/ppsspp/files/patch-native_image_png__load.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-native_image_png__load.cpp (nonexistent) @@ -1,11 +0,0 @@ ---- native/image/png_load.cpp.orig 2015-02-23 23:22:58 UTC -+++ native/image/png_load.cpp -@@ -5,7 +5,7 @@ - #ifdef USING_QT_UI - #include - #else --#include "libpng17/png.h" -+#include "png.h" - #endif - - #include "png_load.h" Property changes on: head/emulators/ppsspp/files/patch-native_image_png__load.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-native_base_basictypes.h =================================================================== --- head/emulators/ppsspp/files/patch-native_base_basictypes.h (revision 398679) +++ head/emulators/ppsspp/files/patch-native_base_basictypes.h (nonexistent) @@ -1,11 +0,0 @@ ---- native/base/basictypes.h.orig 2015-02-23 23:22:58 UTC -+++ native/base/basictypes.h -@@ -87,7 +87,7 @@ inline uint64 swap64(uint64 _data) {retu - inline uint16 swap16(uint16 _data) {return bswap_16(_data);} - inline uint32 swap32(uint32 _data) {return bswap_32(_data);} - inline uint64 swap64(uint64 _data) {return bswap_64(_data);} --#elif defined(__FreeBSD__) -+#elif defined(__DragonFly__) || defined(__FreeBSD__) - #include - inline uint16 swap16(uint16 _data) {return bswap16(_data);} - inline uint32 swap32(uint32 _data) {return bswap32(_data);} Property changes on: head/emulators/ppsspp/files/patch-native_base_basictypes.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Core_FileSystems_tlzrc.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Core_FileSystems_tlzrc.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Core_FileSystems_tlzrc.cpp (nonexistent) @@ -1,12 +0,0 @@ ---- Core/FileSystems/tlzrc.cpp.orig 2015-02-26 20:05:06 UTC -+++ Core/FileSystems/tlzrc.cpp -@@ -22,9 +22,6 @@ - #include - #include - #include --#if !defined(__SYMBIAN32__) && !defined(__MAC_10_6) --#include --#endif - - #include "Common.h" - Property changes on: head/emulators/ppsspp/files/patch-Core_FileSystems_tlzrc.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-native_net_http__client.h =================================================================== --- head/emulators/ppsspp/files/patch-native_net_http__client.h (revision 398679) +++ head/emulators/ppsspp/files/patch-native_net_http__client.h (nonexistent) @@ -1,14 +0,0 @@ ---- native/net/http_client.h.orig 2015-02-23 23:22:58 UTC -+++ native/net/http_client.h -@@ -11,11 +11,8 @@ - #define NOMINMAX - #include - #else --#if defined(__FreeBSD__) || defined(__SYMBIAN32__) - #include --#else - #include --#endif - #include - #include - #endif Property changes on: head/emulators/ppsspp/files/patch-native_net_http__client.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-native_file_file__util.cpp =================================================================== --- head/emulators/ppsspp/files/patch-native_file_file__util.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-native_file_file__util.cpp (nonexistent) @@ -1,11 +0,0 @@ ---- native/file/file_util.cpp.orig 2015-02-23 23:22:58 UTC -+++ native/file/file_util.cpp -@@ -25,7 +25,7 @@ - #include "file/file_util.h" - #include "util/text/utf8.h" - --#if defined(__FreeBSD__) || defined(__APPLE__) -+#if !defined(__linux__) && !defined(_WIN32) && !defined(__QNX__) - #define stat64 stat - #endif - Property changes on: head/emulators/ppsspp/files/patch-native_file_file__util.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-UI_NativeApp.cpp =================================================================== --- head/emulators/ppsspp/files/patch-UI_NativeApp.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-UI_NativeApp.cpp (nonexistent) @@ -1,11 +0,0 @@ ---- UI/NativeApp.cpp.orig 2015-02-26 20:05:06 UTC -+++ UI/NativeApp.cpp -@@ -291,7 +291,7 @@ void NativeInit(int argc, const char *ar - #elif defined(BLACKBERRY) || defined(IOS) - // Packed assets are included in app - VFSRegister("", new DirectoryAssetReader(external_directory)); --#elif defined(__APPLE__) || (defined(__linux__) && !defined(ANDROID)) -+#elif !defined(MOBILE_DEVICE) && !defined(_WIN32) - VFSRegister("", new DirectoryAssetReader((File::GetExeDirectory() + "assets/").c_str())); - VFSRegister("", new DirectoryAssetReader((File::GetExeDirectory()).c_str())); - VFSRegister("", new DirectoryAssetReader("/usr/share/ppsspp/assets/")); Property changes on: head/emulators/ppsspp/files/patch-UI_NativeApp.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Qt_PPSSPP.pro =================================================================== --- head/emulators/ppsspp/files/patch-Qt_PPSSPP.pro (revision 398679) +++ head/emulators/ppsspp/files/patch-Qt_PPSSPP.pro (nonexistent) @@ -1,11 +0,0 @@ ---- Qt/PPSSPP.pro.orig 2015-02-26 20:05:06 UTC -+++ Qt/PPSSPP.pro -@@ -91,7 +91,7 @@ mobile_platform { - INCLUDEPATH += $$P/Qt $$P/Qt/Debugger - - # Creating translations should be done by Qt, really -- LREL_TOOL = lrelease -+ isEmpty(LREL_TOOL): LREL_TOOL = lrelease - # Grab all possible directories (win32/unix) - win32: PATHS = $$split($$(PATH), ;) - else: PATHS = $$split($$(PATH), :) Property changes on: head/emulators/ppsspp/files/patch-Qt_PPSSPP.pro ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-CVE-2015-2331 =================================================================== --- head/emulators/ppsspp/files/patch-CVE-2015-2331 (revision 398679) +++ head/emulators/ppsspp/files/patch-CVE-2015-2331 (nonexistent) @@ -1,18 +0,0 @@ -From ef8fc4b53d92fbfcd8ef1abbd6f2f5fe2c4a11e5 Mon Sep 17 00:00:00 2001 -From: Stanislav Malyshev -Date: Tue, 17 Mar 2015 21:59:56 -0700 -Subject: Fix bug #69253 - ZIP Integer Overflow leads to writing past heap boundary - -diff --git a/ext/zip/lib/zip_dirent.c b/ext/zip/lib/zip_dirent.c -index b9dac5c..0090801 100644 ---- native/ext/libzip/zip_dirent.c -+++ native/ext/libzip/zip_dirent.c -@@ -101,7 +101,7 @@ _zip_cdir_new(int nentry, struct zip_error *error) - return NULL; - } - -- if ((cd->entry=(struct zip_dirent *)malloc(sizeof(*(cd->entry))*nentry)) -+ if ( nentry > ((size_t)-1)/sizeof(*(cd->entry)) || (cd->entry=(struct zip_dirent *)malloc(sizeof(*(cd->entry))*(size_t)nentry)) - == NULL) { - _zip_error_set(error, ZIP_ER_MEMORY, 0); - free(cd); Property changes on: head/emulators/ppsspp/files/patch-CVE-2015-2331 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-native_ext_cityhash_city.cpp =================================================================== --- head/emulators/ppsspp/files/patch-native_ext_cityhash_city.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-native_ext_cityhash_city.cpp (nonexistent) @@ -1,17 +0,0 @@ ---- native/ext/cityhash/city.cpp.orig 2015-02-23 23:22:58 UTC -+++ native/ext/cityhash/city.cpp -@@ -68,12 +68,12 @@ static uint32 UNALIGNED_LOAD32(const cha - #define bswap_32(x) BSWAP_32(x) - #define bswap_64(x) BSWAP_64(x) - --#elif defined(__FreeBSD__) -+#elif defined(__DragonFly__) || defined(__FreeBSD__) - #include - #define bswap_32(x) bswap32(x) - #define bswap_64(x) bswap64(x) - --#elif defined(__OpenBSD__) -+#elif defined(__Bitrig__) || defined(__OpenBSD__) - #include - #define bswap_32(x) swap32(x) - #define bswap_64(x) swap64(x) Property changes on: head/emulators/ppsspp/files/patch-native_ext_cityhash_city.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-GPU_GLES_TextureScaler.cpp =================================================================== --- head/emulators/ppsspp/files/patch-GPU_GLES_TextureScaler.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-GPU_GLES_TextureScaler.cpp (nonexistent) @@ -1,13 +0,0 @@ ---- GPU/GLES/TextureScaler.cpp.orig 2015-02-26 20:05:06 UTC -+++ GPU/GLES/TextureScaler.cpp -@@ -34,8 +34,8 @@ - #include - #include - --#if _M_SSE >= 0x402 --#include -+#if _M_SSE >= 0x401 -+#include - #endif - - // Report the time and throughput for each larger scaling operation in the log Property changes on: head/emulators/ppsspp/files/patch-GPU_GLES_TextureScaler.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-native_ext_stb__vorbis_stb__vorbis.c =================================================================== --- head/emulators/ppsspp/files/patch-native_ext_stb__vorbis_stb__vorbis.c (revision 398679) +++ head/emulators/ppsspp/files/patch-native_ext_stb__vorbis_stb__vorbis.c (nonexistent) @@ -1,12 +0,0 @@ ---- native/ext/stb_vorbis/stb_vorbis.c.orig 2015-02-23 23:22:58 UTC -+++ native/ext/stb_vorbis/stb_vorbis.c -@@ -15,7 +15,8 @@ - #pragma warning (disable:4996) - #pragma warning (disable:4244) - #include --#elif !defined(__SYMBIAN32__) -+#elif !defined(__SYMBIAN32__) && !defined(__Bitrig__) && !defined(__DragonFly__) && \ -+ !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) - #include - #endif - Property changes on: head/emulators/ppsspp/files/patch-native_ext_stb__vorbis_stb__vorbis.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-UI_CwCheatScreen.cpp =================================================================== --- head/emulators/ppsspp/files/patch-UI_CwCheatScreen.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-UI_CwCheatScreen.cpp (nonexistent) @@ -1,27 +0,0 @@ ---- UI/CwCheatScreen.cpp.orig 2015-02-26 20:05:06 UTC -+++ UI/CwCheatScreen.cpp -@@ -72,7 +72,7 @@ void CwCheatScreen::CreateViews() { - leftColumn->Add(new Choice(d->T("Back")))->OnClick.Handle(this, &UIScreen::OnBack); - //leftColumn->Add(new Choice(k->T("Add Cheat")))->OnClick.Handle(this, &CwCheatScreen::OnAddCheat); - leftColumn->Add(new Choice(k->T("Import Cheats")))->OnClick.Handle(this, &CwCheatScreen::OnImportCheat); --#if defined(_WIN32) || defined(__APPLE__) || defined(__linux__) -+#if !defined(MOBILE_DEVICE) - leftColumn->Add(new Choice(k->T("Edit Cheat File")))->OnClick.Handle(this, &CwCheatScreen::OnEditCheatFile); - #endif - leftColumn->Add(new Choice(k->T("Enable/Disable All")))->OnClick.Handle(this, &CwCheatScreen::OnEnableAll); -@@ -179,11 +179,11 @@ UI::EventReturn CwCheatScreen::OnEditChe - if (!retval) { - ERROR_LOG(BOOT, "Failed creating notepad process"); - } --#elif defined(__APPLE__) || defined(__linux__) --#if defined(__linux__) -- cheatFile = "xdg-open "; --#elif defined(__APPLE__) -+#elif !defined(MOBILE_DEVICE) -+#if defined(__APPLE__) - cheatFile = "open "; -+#else -+ cheatFile = "xdg-open "; - #endif - cheatFile.append(activeCheatFile); - NOTICE_LOG(BOOT, "Launching %s", cheatFile.c_str()); Property changes on: head/emulators/ppsspp/files/patch-UI_CwCheatScreen.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Common_FileUtil.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Common_FileUtil.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Common_FileUtil.cpp (nonexistent) @@ -1,40 +0,0 @@ ---- Common/FileUtil.cpp.orig 2015-02-26 20:05:06 UTC -+++ Common/FileUtil.cpp -@@ -35,6 +35,11 @@ - #include - #endif - -+#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -+#include // KERN_PROC_PATHNAME -+#include // getpid -+#endif -+ - #if defined(__APPLE__) - #include - #include -@@ -703,7 +708,7 @@ const std::string &GetExeDirectory() - ExePath = program_path; - #endif - --#elif (defined(__APPLE__) && !defined(IOS)) || defined(__linux__) -+#elif (defined(__APPLE__) && !defined(IOS)) || defined(__linux__) || defined(KERN_PROC_PATHNAME) - char program_path[4096]; - uint32_t program_path_size = sizeof(program_path) - 1; - -@@ -711,6 +716,16 @@ const std::string &GetExeDirectory() - if (readlink("/proc/self/exe", program_path, 4095) > 0) - #elif defined(__APPLE__) && !defined(IOS) - if (_NSGetExecutablePath(program_path, &program_path_size) == 0) -+#elif defined(KERN_PROC_PATHNAME) -+ int mib[4] = { -+ CTL_KERN, -+ KERN_PROC, -+ KERN_PROC_PATHNAME, -+ getpid() -+ }; -+ size_t sz = program_path_size; -+ -+ if (sysctl(mib, 4, program_path, &sz, NULL, 0) == 0) - #else - #error Unmatched ifdef. - #endif Property changes on: head/emulators/ppsspp/files/patch-Common_FileUtil.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Common_Swap.h =================================================================== --- head/emulators/ppsspp/files/patch-Common_Swap.h (revision 398679) +++ head/emulators/ppsspp/files/patch-Common_Swap.h (nonexistent) @@ -1,18 +0,0 @@ ---- Common/Swap.h.orig 2015-02-26 20:05:06 UTC -+++ Common/Swap.h -@@ -71,6 +71,15 @@ inline unsigned long long bswap64(unsign - inline unsigned int bswap32(unsigned int x) { return __loadwordbytereverse(0, &x); } - inline unsigned short bswap16(unsigned short x) { return __loadshortbytereverse(0, &x); } - #endif -+#elif defined(__DragonFly__) || defined(__FreeBSD__) || \ -+ defined(__NetBSD__) || defined(__OpenBSD__) -+#include -+# ifdef __OpenBSD__ -+#define bswap16 swap16 -+#define bswap32 swap32 -+#define bswap64 swap64 -+#define -+# endif - #else - // TODO: speedup - inline unsigned short bswap16(unsigned short x) { return (x << 8) | (x >> 8); } Property changes on: head/emulators/ppsspp/files/patch-Common_Swap.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-UI_DevScreens.cpp =================================================================== --- head/emulators/ppsspp/files/patch-UI_DevScreens.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-UI_DevScreens.cpp (nonexistent) @@ -1,18 +0,0 @@ ---- UI/DevScreens.cpp.orig 2015-02-26 20:05:06 UTC -+++ UI/DevScreens.cpp -@@ -612,12 +612,14 @@ void JitCompareScreen::UpdateDisasm() { - - #if defined(ARM) - std::vector targetDis = DisassembleArm2(block->normalEntry, block->codeSize); --#else -+#elif defined(_M_IX86) || defined(_M_X64) - std::vector targetDis = DisassembleX86(block->normalEntry, block->codeSize); - #endif -+#if defined(ARM) || defined(_M_IX86) || defined(_M_X64) - for (size_t i = 0; i < targetDis.size(); i++) { - rightDisasm_->Add(new TextView(targetDis[i])); - } -+#endif - - int numMips = leftDisasm_->GetNumSubviews(); - int numHost = rightDisasm_->GetNumSubviews(); Property changes on: head/emulators/ppsspp/files/patch-UI_DevScreens.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Core_Loaders.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Core_Loaders.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Core_Loaders.cpp (nonexistent) @@ -1,26 +0,0 @@ ---- Core/Loaders.cpp.orig 2015-02-26 20:05:06 UTC -+++ Core/Loaders.cpp -@@ -15,6 +15,9 @@ - // Official git repository and contact information can be found at - // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. - -+// XXX ports/193528 -+#define _GLIBCXX_USE_C99 1 -+ - #include - #include - -@@ -310,12 +313,7 @@ HTTPFileLoader::HTTPFileLoader(const std - size_pos = header.find_first_not_of(' ', size_pos); - } - if (size_pos != header.npos) { -- // TODO: Find a way to get this to work right on Symbian? --#ifndef __SYMBIAN32__ -- filesize_ = atoll(&header[size_pos]); --#else -- filesize_ = atoi(&header[size_pos]); --#endif -+ filesize_ = std::atoll(&header[size_pos]); - } - } - if (startsWithNoCase(header, "Accept-Ranges:")) { Property changes on: head/emulators/ppsspp/files/patch-Core_Loaders.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Common_StdMutex.h =================================================================== --- head/emulators/ppsspp/files/patch-Common_StdMutex.h (revision 398679) +++ head/emulators/ppsspp/files/patch-Common_StdMutex.h (nonexistent) @@ -1,12 +0,0 @@ ---- Common/StdMutex.h.orig 2015-02-26 20:05:06 UTC -+++ Common/StdMutex.h -@@ -5,7 +5,8 @@ - #define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) - - // Note: __MAC_10_7 is defined on 10.7+. --#if (GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ || defined(__APPLE__)) \ -+#if (__cplusplus >= 201103L || defined(__APPLE__) \ -+ || (GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__)) \ - /* GCC 4.4 provides , except on these platforms: */ \ - && !defined(ANDROID) && !defined(__SYMBIAN32__) && !defined(MACGNUSTD) - #include Property changes on: head/emulators/ppsspp/files/patch-Common_StdMutex.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-git-version.cmake =================================================================== --- head/emulators/ppsspp/files/patch-git-version.cmake (revision 398679) +++ head/emulators/ppsspp/files/patch-git-version.cmake (nonexistent) @@ -1,19 +0,0 @@ -commit e81fa01 -Author: sergiobenrocha2 -Date: Wed Sep 16 19:07:25 2015 -0300 - - fix build when git is installed but there is no .git folder. - -diff --git git-version.cmake git-version.cmake -index a507a93..ff276d7 100644 ---- git-version.cmake -+++ git-version.cmake -@@ -3,7 +3,7 @@ set(GIT_VERSION "unknown") - set(GIT_VERSION_UPDATE "1") - - find_package(Git) --if(GIT_FOUND) -+if(GIT_FOUND AND EXISTS ".git") - execute_process(COMMAND ${GIT_EXECUTABLE} describe --always - WORKING_DIRECTORY ${SOURCE_DIR} - RESULT_VARIABLE exit_code Property changes on: head/emulators/ppsspp/files/patch-git-version.cmake ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Qt_Settings.pri =================================================================== --- head/emulators/ppsspp/files/patch-Qt_Settings.pri (revision 398679) +++ head/emulators/ppsspp/files/patch-Qt_Settings.pri (nonexistent) @@ -1,12 +0,0 @@ ---- Qt/Settings.pri.orig 2015-02-26 20:05:06 UTC -+++ Qt/Settings.pri -@@ -12,7 +12,8 @@ RCC_DIR = $$CONFIG_DIR/.rcc/$$TARGET - QMAKE_CLEAN += -r $$OBJECTS_DIR $$MOC_DIR $$UI_DIR $$RCC_DIR - - P = $$_PRO_FILE_PWD_/.. --INCLUDEPATH += $$P/ext/zlib $$P/Common -+INCLUDEPATH += $$P/Common -+win32|contains(QT_CONFIG, no-zlib): INCLUDEPATH += $$P/ext/zlib - - # Work out arch name - include(Platform/ArchDetection.pri) Property changes on: head/emulators/ppsspp/files/patch-Qt_Settings.pri ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-native_net_resolve.cpp =================================================================== --- head/emulators/ppsspp/files/patch-native_net_resolve.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-native_net_resolve.cpp (nonexistent) @@ -1,14 +0,0 @@ ---- native/net/resolve.cpp.orig 2015-02-23 23:22:58 UTC -+++ native/net/resolve.cpp -@@ -14,11 +14,8 @@ - #undef min - #undef max - #else --#if defined(__FreeBSD__) - #include --#else - #include --#endif - #include - #include - #include Property changes on: head/emulators/ppsspp/files/patch-native_net_resolve.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Core_MIPS_fake_FakeJit.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Core_MIPS_fake_FakeJit.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Core_MIPS_fake_FakeJit.cpp (nonexistent) @@ -1,11 +0,0 @@ ---- Core/MIPS/fake/FakeJit.cpp.orig 2015-02-26 20:05:06 UTC -+++ Core/MIPS/fake/FakeJit.cpp -@@ -138,7 +138,7 @@ void FakeJit::RunLoopUntil(u64 globaltic - ((void (*)())enterCode)(); - } - --const u8 *FakeJit::DoFakeJit(u32 em_address, FakeJitBlock *b) -+const u8 *FakeJit::DoJit(u32 em_address, JitBlock *b) - { - return b->normalEntry; - } Property changes on: head/emulators/ppsspp/files/patch-Core_MIPS_fake_FakeJit.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Core_MemMap.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Core_MemMap.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Core_MemMap.cpp (nonexistent) @@ -1,11 +0,0 @@ ---- Core/MemMap.cpp.orig 2015-02-26 20:05:06 UTC -+++ Core/MemMap.cpp -@@ -185,7 +185,7 @@ static bool Memory_TryBase(u32 flags) { - if (!*view.out_ptr_low) - goto bail; - } --#ifdef _M_X64 -+#if defined(_ARCH_64) - *view.out_ptr = (u8*)g_arena.CreateView( - position, view.size, base + view.virtual_address); - #else Property changes on: head/emulators/ppsspp/files/patch-Core_MemMap.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Core_HLE_ReplaceTables.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Core_HLE_ReplaceTables.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Core_HLE_ReplaceTables.cpp (nonexistent) @@ -1,11 +0,0 @@ ---- Core/HLE/ReplaceTables.cpp.orig 2015-02-26 20:05:06 UTC -+++ Core/HLE/ReplaceTables.cpp -@@ -1007,6 +1007,8 @@ static int Hook_photokano_download_frame - #define JITFUNC(f) (&MIPSComp::Jit::f) - #elif defined(MIPS) - #define JITFUNC(f) (&MIPSComp::Jit::f) -+#else -+#define JITFUNC(f) (&MIPSComp::FakeJit::f) - #endif - - // Can either replace with C functions or functions emitted in Asm/ArmAsm. Property changes on: head/emulators/ppsspp/files/patch-Core_HLE_ReplaceTables.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Qt_Platform_linux.pri =================================================================== --- head/emulators/ppsspp/files/patch-Qt_Platform_linux.pri (revision 398679) +++ head/emulators/ppsspp/files/patch-Qt_Platform_linux.pri (nonexistent) @@ -1,12 +0,0 @@ ---- Qt/Platform/linux.pri.orig 2015-02-26 20:05:06 UTC -+++ Qt/Platform/linux.pri -@@ -6,7 +6,8 @@ - } - - # Executable -- LIBS += -ldl -lrt -+ LIBS += $$QMAKE_LIBS_DYNLOAD # dlopen -+ linux-*|hpux-*|solaris-*: LIBS += -lrt # clock_gettime - - # Packaging - icon16.files = $$P/assets/unix-icons/hicolor/16x16/apps/ppsspp.png Property changes on: head/emulators/ppsspp/files/patch-Qt_Platform_linux.pri ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Core_MIPS_JitCommon_JitCommon.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Core_MIPS_JitCommon_JitCommon.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Core_MIPS_JitCommon_JitCommon.cpp (nonexistent) @@ -1,23 +0,0 @@ ---- Core/MIPS/JitCommon/JitCommon.cpp.orig 2015-02-26 20:05:06 UTC -+++ Core/MIPS/JitCommon/JitCommon.cpp -@@ -27,8 +27,10 @@ - namespace MIPSComp { - #if defined(ARM) - ArmJit *jit; --#else -+#elif defined(_M_IX86) || defined(_M_X64) || defined(MIPS) - Jit *jit; -+#else -+ FakeJit *jit; - #endif - void JitAt() { - jit->Compile(currentMIPS->pc); -@@ -76,7 +78,7 @@ std::vector DisassembleArm2 - return lines; - } - --#ifndef ARM -+#if defined(_M_IX86) || defined(_M_X64) - - const char *ppsspp_resolver(struct ud*, - uint64_t addr, Property changes on: head/emulators/ppsspp/files/patch-Core_MIPS_JitCommon_JitCommon.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-native_net_http__server.cpp =================================================================== --- head/emulators/ppsspp/files/patch-native_net_http__server.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-native_net_http__server.cpp (nonexistent) @@ -1,10 +0,0 @@ ---- native/net/http_server.cpp.orig 2015-02-23 23:22:58 UTC -+++ native/net/http_server.cpp -@@ -11,6 +11,7 @@ - #include /* socket definitions */ - #include /* socket types */ - #include /* for waitpid() */ -+#include /* struct sockaddr_in */ - #include /* inet (3) funtions */ - #include /* misc. UNIX functions */ - Property changes on: head/emulators/ppsspp/files/patch-native_net_http__server.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Common_CPUDetect.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Common_CPUDetect.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Common_CPUDetect.cpp (nonexistent) @@ -1,21 +0,0 @@ ---- Common/CPUDetect.cpp.orig 2015-02-26 20:05:06 UTC -+++ Common/CPUDetect.cpp -@@ -62,17 +62,7 @@ static unsigned long long _xgetbv(unsign - #define _XCR_XFEATURE_ENABLED_MASK 0 - #endif - --#if defined __FreeBSD__ --#include --#include -- --void do_cpuidex(u32 regs[4], u32 cpuid_leaf, u32 ecxval) { -- __cpuidex((int *)regs, cpuid_leaf, ecxval); --} --void do_cpuid(u32 regs[4], u32 cpuid_leaf) { -- __cpuid((int *)regs, cpuid_leaf); --} --#elif !defined(MIPS) -+#if !defined(MIPS) - - void do_cpuidex(u32 regs[4], u32 cpuid_leaf, u32 ecxval) { - #if defined(__i386__) && defined(__PIC__) Property changes on: head/emulators/ppsspp/files/patch-Common_CPUDetect.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-native_base_PCMain.cpp =================================================================== --- head/emulators/ppsspp/files/patch-native_base_PCMain.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-native_base_PCMain.cpp (nonexistent) @@ -1,77 +0,0 @@ ---- native/base/PCMain.cpp.orig 2015-02-23 23:22:58 UTC -+++ native/base/PCMain.cpp -@@ -243,53 +243,53 @@ void System_SendMessage(const char *comm - } - - void LaunchBrowser(const char *url) { --#ifdef _WIN32 -+#if defined(MOBILE_DEVICE) -+ ILOG("Would have gone to %s but LaunchBrowser is not implemented on this platform", url); -+#elif defined(_WIN32) - ShellExecute(NULL, "open", url, NULL, NULL, SW_SHOWNORMAL); --#elif __linux__ -+#elif defined(__APPLE__) -+ std::string command = std::string("open ") + url; -+ system(command.c_str()); -+#else - std::string command = std::string("xdg-open ") + url; - int err = system(command.c_str()); - if (err) { - ILOG("Would have gone to %s but xdg-utils seems not to be installed", url) - } --#elif __APPLE__ -- std::string command = std::string("open ") + url; -- system(command.c_str()); --#else -- ILOG("Would have gone to %s but LaunchBrowser is not implemented on this platform", url); - #endif - } - - void LaunchMarket(const char *url) { --#ifdef _WIN32 -+#if defined(MOBILE_DEVICE) -+ ILOG("Would have gone to %s but LaunchMarket is not implemented on this platform", url); -+#elif defined(_WIN32) - ShellExecute(NULL, "open", url, NULL, NULL, SW_SHOWNORMAL); --#elif __linux__ -+#elif defined(__APPLE__) -+ std::string command = std::string("open ") + url; -+ system(command.c_str()); -+#else - std::string command = std::string("xdg-open ") + url; - int err = system(command.c_str()); - if (err) { - ILOG("Would have gone to %s but xdg-utils seems not to be installed", url) - } --#elif __APPLE__ -- std::string command = std::string("open ") + url; -- system(command.c_str()); --#else -- ILOG("Would have gone to %s but LaunchMarket is not implemented on this platform", url); - #endif - } - - void LaunchEmail(const char *email_address) { --#ifdef _WIN32 -+#if defined(MOBILE_DEVICE) -+ ILOG("Would have opened your email client for %s but LaunchEmail is not implemented on this platform", email_address); -+#elif defined(_WIN32) - ShellExecute(NULL, "open", (std::string("mailto:") + email_address).c_str(), NULL, NULL, SW_SHOWNORMAL); --#elif __linux__ -+#elif defined(__APPLE__) -+ std::string command = std::string("open mailto:") + email_address; -+ system(command.c_str()); -+#else - std::string command = std::string("xdg-email ") + email_address; - int err = system(command.c_str()); - if (err) { - ILOG("Would have gone to %s but xdg-utils seems not to be installed", email_address) - } --#elif __APPLE__ -- std::string command = std::string("open mailto:") + email_address; -- system(command.c_str()); --#else -- ILOG("Would have opened your email client for %s but LaunchEmail is not implemented on this platform", email_address); - #endif - } - Property changes on: head/emulators/ppsspp/files/patch-native_base_PCMain.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Common_MemArena.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Common_MemArena.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Common_MemArena.cpp (nonexistent) @@ -1,11 +0,0 @@ ---- Common/MemArena.cpp.orig 2015-02-26 20:05:06 UTC -+++ Common/MemArena.cpp -@@ -189,7 +189,7 @@ void *MemArena::CreateView(s64 offset, s - // Do not sync memory to underlying file. Linux has this by default. - #ifdef BLACKBERRY - MAP_NOSYNCFILE | --#elif defined(__FreeBSD__) -+#elif defined(__DragonFly__) || defined(__FreeBSD__) - MAP_NOSYNC | - #endif - ((base == 0) ? 0 : MAP_FIXED), fd, offset); Property changes on: head/emulators/ppsspp/files/patch-Common_MemArena.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-Core_HLE_sceRtc.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Core_HLE_sceRtc.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Core_HLE_sceRtc.cpp (nonexistent) @@ -1,58 +0,0 @@ ---- Core/HLE/sceRtc.cpp.orig 2015-02-26 20:05:06 UTC -+++ Core/HLE/sceRtc.cpp -@@ -459,12 +459,10 @@ static int sceRtcConvertLocalTimeToUTC(u - { - u64 srcTick = Memory::Read_U64(tickLocalPtr); - // TODO : Let the user select his timezone / daylight saving instead of taking system param ? --#if defined(__GLIBC__) || defined(BLACKBERRY) || defined(__SYMBIAN32__) -+#if !defined(_MSC_VER) && !defined(_AIX) && !defined(__sgi) && !defined(__hpux) - time_t timezone = 0; - tm *time = localtime(&timezone); - srcTick -= time->tm_gmtoff*1000000ULL; --#else -- srcTick -= -timezone * 1000000ULL; - #endif - Memory::Write_U64(srcTick, tickUTCPtr); - } -@@ -482,12 +480,10 @@ static int sceRtcConvertUtcToLocalTime(u - { - u64 srcTick = Memory::Read_U64(tickUTCPtr); - // TODO : Let the user select his timezone / daylight saving instead of taking system param ? --#if defined(__GLIBC__) || defined(BLACKBERRY) || defined(__SYMBIAN32__) -+#if !defined(_MSC_VER) && !defined(_AIX) && !defined(__sgi) && !defined(__hpux) - time_t timezone = 0; - tm *time = localtime(&timezone); - srcTick += time->tm_gmtoff*1000000ULL; --#else -- srcTick += -timezone * 1000000ULL; - #endif - Memory::Write_U64(srcTick, tickLocalPtr); - } -@@ -1015,12 +1011,10 @@ static int sceRtcFormatRFC2822LocalTime( - } - - int tz_seconds; --#if defined(__GLIBC__) || defined(BLACKBERRY) || defined(__SYMBIAN32__) -+#if !defined(_MSC_VER) && !defined(_AIX) && !defined(__sgi) && !defined(__hpux) - time_t timezone = 0; - tm *time = localtime(&timezone); - tz_seconds = time->tm_gmtoff; --#else -- tz_seconds = -timezone; - #endif - - DEBUG_LOG(SCERTC, "sceRtcFormatRFC2822LocalTime(%08x, %08x)", outPtr, srcTickPtr); -@@ -1050,12 +1044,10 @@ static int sceRtcFormatRFC3339LocalTime( - } - - int tz_seconds; --#if defined(__GLIBC__) || defined(BLACKBERRY) || defined(__SYMBIAN32__) -+#if !defined(_MSC_VER) && !defined(_AIX) && !defined(__sgi) && !defined(__hpux) - time_t timezone = 0; - tm *time = localtime(&timezone); - tz_seconds = time->tm_gmtoff; --#else -- tz_seconds = -timezone; - #endif - - DEBUG_LOG(SCERTC, "sceRtcFormatRFC3339LocalTime(%08x, %08x)", outPtr, srcTickPtr); Property changes on: head/emulators/ppsspp/files/patch-Core_HLE_sceRtc.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp/files/patch-CMakeLists.txt =================================================================== --- head/emulators/ppsspp/files/patch-CMakeLists.txt (revision 398679) +++ head/emulators/ppsspp/files/patch-CMakeLists.txt (revision 398680) @@ -1,36 +1,16 @@ --- CMakeLists.txt.orig 2015-02-26 20:05:06 UTC +++ CMakeLists.txt -@@ -21,7 +21,9 @@ if(CMAKE_SYSTEM_PROCESSOR) - if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^armv7") - set(ARMV7 ON) - endif() -- elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86") -+ elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86" OR -+ ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^amd64" OR -+ ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86") - set(X86 ON) - elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^mips") - set(MIPS ON) -@@ -250,7 +252,7 @@ if(NOT MSVC) - if (NOT CMAKE_C_COMPILER_ID STREQUAL "Intel" AND NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") - add_definitions(-Wno-psabi) - endif() -- add_definitions(-D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE=1) -+ add_definitions(-D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE=1) - add_definitions(-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64) - endif() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") @@ -525,9 +527,10 @@ target_link_libraries(libzip ${ZLIB_LIBR include_directories(native/ext/libzip) set(LIBZIP_LIBRARY libzip) -# FindPNG does a few things we don't want. So do it ourselves. Fixed to libpng17 -find_path(PNG_PNG_INCLUDE_DIR NAMES "libpng17/png.h") -find_library(PNG_LIBRARY NAMES png17 libpng17) +find_package(PkgConfig) +pkg_check_modules(PNG libpng>=1.6) +set(PNG_LIBRARY ${PNG_LIBRARIES}) +set(PNG_PNG_INCLUDE_DIR ${PNG_INCLUDE_DIRS}) find_package(PackageHandleStandardArgs) find_package_handle_standard_args(PNG REQUIRED_VARS PNG_LIBRARY PNG_PNG_INCLUDE_DIR) if (PNG_FOUND) Index: head/emulators/ppsspp/files/patch-Common_MemoryUtil.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Common_MemoryUtil.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-Common_MemoryUtil.cpp (revision 398680) @@ -1,47 +1,38 @@ --- Common/MemoryUtil.cpp.orig 2015-02-26 20:05:06 UTC +++ Common/MemoryUtil.cpp @@ -49,6 +49,13 @@ static SYSTEM_INFO sys_info; #define round_page(x) ((((uintptr_t)(x)) + PAGE_MASK) & ~(PAGE_MASK)) #endif +#if defined(__FreeBSD__) +/* setrlimit(2) */ +#include +#include +#include +#endif + #ifdef __SYMBIAN32__ #include #define CODECHUNK_SIZE 1024*1024*20 @@ -142,6 +149,21 @@ void* AllocateExecutableMemory(size_t si map_hint = (char*)round_page(&hint_location) - 0x20000000; // 0.5gb lower than our approximate location else map_hint = (char*)0x20000000; // 0.5GB mark in memory + +#if defined(__FreeBSD__) + // XXX Fix maximum data segment size (data + BSS + heap) to 256 MB. + // This allows avoiding calling mmap(2) with MAP_FIXED. + // On FreeBSD, without lowering this limit, calling mmap(2) + // without MAP_FIXED will result in getting an address just + // beyond maximum data segment size which will be far beyond + // the desired 2 GB. + struct rlimit limit; + limit.rlim_cur = 0x10000000; // 256 MB + limit.rlim_max = 0x10000000; + if(setrlimit(RLIMIT_DATA, &limit) != 0) { + PanicAlert("Failed to lower maximum data segment size"); + } +#endif } else if (exec && (uintptr_t) map_hint > 0xFFFFFFFFULL) { -@@ -160,7 +182,7 @@ void* AllocateExecutableMemory(size_t si - // printf("Mapped executable memory at %p (size %ld)\n", ptr, - // (unsigned long)size); - --#if defined(__FreeBSD__) -+#if !defined(_WIN32) && !defined(__SYMBIAN32__) - if (ptr == MAP_FAILED) - { - ptr = NULL; Index: head/emulators/ppsspp/files/patch-Core_FileLoaders_HTTPFileLoader.cpp =================================================================== --- head/emulators/ppsspp/files/patch-Core_FileLoaders_HTTPFileLoader.cpp (nonexistent) +++ head/emulators/ppsspp/files/patch-Core_FileLoaders_HTTPFileLoader.cpp (revision 398680) @@ -0,0 +1,25 @@ +--- Core/FileLoaders/HTTPFileLoader.cpp.orig 2015-07-11 22:44:11 UTC ++++ Core/FileLoaders/HTTPFileLoader.cpp +@@ -15,6 +15,9 @@ + // Official git repository and contact information can be found at + // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. + ++// XXX ports/193528 ++#define _GLIBCXX_USE_C99 1 ++ + #include + #include "base/stringutil.h" + #include "Common/Common.h" +@@ -53,11 +56,7 @@ HTTPFileLoader::HTTPFileLoader(const std + } + if (size_pos != header.npos) { + // TODO: Find a way to get this to work right on Symbian? +-#ifndef __SYMBIAN32__ +- filesize_ = atoll(&header[size_pos]); +-#else +- filesize_ = atoi(&header[size_pos]); +-#endif ++ filesize_ = std::atoll(&header[size_pos]); + } + } + if (startsWithNoCase(header, "Accept-Ranges:")) { Property changes on: head/emulators/ppsspp/files/patch-Core_FileLoaders_HTTPFileLoader.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 Index: head/emulators/ppsspp/files/patch-ext_native_image_png__load.cpp =================================================================== --- head/emulators/ppsspp/files/patch-ext_native_image_png__load.cpp (nonexistent) +++ head/emulators/ppsspp/files/patch-ext_native_image_png__load.cpp (revision 398680) @@ -0,0 +1,11 @@ +--- ext/native/image/png_load.cpp.orig 2015-09-06 20:37:59 UTC ++++ ext/native/image/png_load.cpp +@@ -5,7 +5,7 @@ + #ifdef USING_QT_UI + #include + #else +-#include "libpng17/png.h" ++#include "png.h" + #endif + + #include "png_load.h" Property changes on: head/emulators/ppsspp/files/patch-ext_native_image_png__load.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 Index: head/emulators/ppsspp/files/patch-ext_xbrz_xbrz.cpp =================================================================== --- head/emulators/ppsspp/files/patch-ext_xbrz_xbrz.cpp (revision 398679) +++ head/emulators/ppsspp/files/patch-ext_xbrz_xbrz.cpp (revision 398680) @@ -1,37 +1,37 @@ ---- ext/xbrz/xbrz.cpp.orig 2015-02-26 20:05:06 UTC +--- ext/xbrz/xbrz.cpp.orig 2015-05-28 17:02:46 UTC +++ ext/xbrz/xbrz.cpp -@@ -616,23 +616,21 @@ void scalePixel(const Kernel_3x3& ker, - auto eq = [&](uint32_t col1, uint32_t col2) { return ColorDistance::dist(col1, col2, cfg.luminanceWeight_) < cfg.equalColorTolerance_; }; - auto dist = [&](uint32_t col1, uint32_t col2) { return ColorDistance::dist(col1, col2, cfg.luminanceWeight_); }; +@@ -648,23 +648,21 @@ void scalePixel(const Kernel_3x3& ker, + auto eq = [&](uint32_t pix1, uint32_t pix2) { return ColorDistance::dist(pix1, pix2, cfg.luminanceWeight_) < cfg.equalColorTolerance_; }; + auto dist = [&](uint32_t pix1, uint32_t pix2) { return ColorDistance::dist(pix1, pix2, cfg.luminanceWeight_); }; - const bool doLineBlend = [&]() -> bool - { + bool doLineBlend; + if (getBottomR(blend) >= BLEND_DOMINANT) - return true; + doLineBlend = true; //make sure there is no second blending in an adjacent rotation for this pixel: handles insular pixels, mario eyes - if (getTopR(blend) != BLEND_NONE && !eq(e, g)) //but support double-blending for 90° corners - return false; - if (getBottomL(blend) != BLEND_NONE && !eq(e, c)) - return false; - + else if (getTopR(blend) != BLEND_NONE && !eq(e, g)) //but support double-blending for 90° corners + doLineBlend = false; + else if (getBottomL(blend) != BLEND_NONE && !eq(e, c)) + doLineBlend = false; //no full blending for L-shapes; blend corner only (handles "mario mushroom eyes") -- if (eq(g, h) && eq(h , i) && eq(i, f) && eq(f, c) && !eq(e, i)) +- if (!eq(e, i) && eq(g, h) && eq(h , i) && eq(i, f) && eq(f, c)) - return false; - - return true; - }(); -+ else if (eq(g, h) && eq(h, i) && eq(i, f) && eq(f, c) && !eq(e, i)) ++ else if (!eq(e, i) && eq(g, h) && eq(h, i) && eq(i, f) && eq(f, c)) + doLineBlend = false; + else + doLineBlend = true; const uint32_t px = dist(e, f) <= dist(e, h) ? f : h; //choose most similar color Index: head/emulators/ppsspp-devel/files/patch-Common_MemoryUtil.cpp =================================================================== --- head/emulators/ppsspp-devel/files/patch-Common_MemoryUtil.cpp (revision 398679) +++ head/emulators/ppsspp-devel/files/patch-Common_MemoryUtil.cpp (nonexistent) @@ -1,38 +0,0 @@ ---- Common/MemoryUtil.cpp.orig 2015-02-26 20:05:06 UTC -+++ Common/MemoryUtil.cpp -@@ -49,6 +49,13 @@ static SYSTEM_INFO sys_info; - #define round_page(x) ((((uintptr_t)(x)) + PAGE_MASK) & ~(PAGE_MASK)) - #endif - -+#if defined(__FreeBSD__) -+/* setrlimit(2) */ -+#include -+#include -+#include -+#endif -+ - #ifdef __SYMBIAN32__ - #include - #define CODECHUNK_SIZE 1024*1024*20 -@@ -142,6 +149,21 @@ void* AllocateExecutableMemory(size_t si - map_hint = (char*)round_page(&hint_location) - 0x20000000; // 0.5gb lower than our approximate location - else - map_hint = (char*)0x20000000; // 0.5GB mark in memory -+ -+#if defined(__FreeBSD__) -+ // XXX Fix maximum data segment size (data + BSS + heap) to 256 MB. -+ // This allows avoiding calling mmap(2) with MAP_FIXED. -+ // On FreeBSD, without lowering this limit, calling mmap(2) -+ // without MAP_FIXED will result in getting an address just -+ // beyond maximum data segment size which will be far beyond -+ // the desired 2 GB. -+ struct rlimit limit; -+ limit.rlim_cur = 0x10000000; // 256 MB -+ limit.rlim_max = 0x10000000; -+ if(setrlimit(RLIMIT_DATA, &limit) != 0) { -+ PanicAlert("Failed to lower maximum data segment size"); -+ } -+#endif - } - else if (exec && (uintptr_t) map_hint > 0xFFFFFFFFULL) - { Property changes on: head/emulators/ppsspp-devel/files/patch-Common_MemoryUtil.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp-devel/files/patch-Core_Screenshot.cpp =================================================================== --- head/emulators/ppsspp-devel/files/patch-Core_Screenshot.cpp (revision 398679) +++ head/emulators/ppsspp-devel/files/patch-Core_Screenshot.cpp (nonexistent) @@ -1,11 +0,0 @@ ---- Core/Screenshot.cpp.orig 2015-02-26 20:05:06 UTC -+++ Core/Screenshot.cpp -@@ -18,7 +18,7 @@ - #ifdef USING_QT_UI - #include - #else --#include -+#include "png.h" - #include "ext/jpge/jpge.h" - #endif - Property changes on: head/emulators/ppsspp-devel/files/patch-Core_Screenshot.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp-devel/files/patch-CMakeLists.txt =================================================================== --- head/emulators/ppsspp-devel/files/patch-CMakeLists.txt (revision 398679) +++ head/emulators/ppsspp-devel/files/patch-CMakeLists.txt (nonexistent) @@ -1,16 +0,0 @@ ---- CMakeLists.txt.orig 2015-02-26 20:05:06 UTC -+++ CMakeLists.txt -@@ -525,9 +527,10 @@ target_link_libraries(libzip ${ZLIB_LIBR - include_directories(native/ext/libzip) - set(LIBZIP_LIBRARY libzip) - --# FindPNG does a few things we don't want. So do it ourselves. Fixed to libpng17 --find_path(PNG_PNG_INCLUDE_DIR NAMES "libpng17/png.h") --find_library(PNG_LIBRARY NAMES png17 libpng17) -+find_package(PkgConfig) -+pkg_check_modules(PNG libpng>=1.6) -+set(PNG_LIBRARY ${PNG_LIBRARIES}) -+set(PNG_PNG_INCLUDE_DIR ${PNG_INCLUDE_DIRS}) - find_package(PackageHandleStandardArgs) - find_package_handle_standard_args(PNG REQUIRED_VARS PNG_LIBRARY PNG_PNG_INCLUDE_DIR) - if (PNG_FOUND) Property changes on: head/emulators/ppsspp-devel/files/patch-CMakeLists.txt ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp-devel/files/patch-ext_xbrz_xbrz.cpp =================================================================== --- head/emulators/ppsspp-devel/files/patch-ext_xbrz_xbrz.cpp (revision 398679) +++ head/emulators/ppsspp-devel/files/patch-ext_xbrz_xbrz.cpp (nonexistent) @@ -1,37 +0,0 @@ ---- ext/xbrz/xbrz.cpp.orig 2015-05-28 17:02:46 UTC -+++ ext/xbrz/xbrz.cpp -@@ -648,23 +648,21 @@ void scalePixel(const Kernel_3x3& ker, - auto eq = [&](uint32_t pix1, uint32_t pix2) { return ColorDistance::dist(pix1, pix2, cfg.luminanceWeight_) < cfg.equalColorTolerance_; }; - auto dist = [&](uint32_t pix1, uint32_t pix2) { return ColorDistance::dist(pix1, pix2, cfg.luminanceWeight_); }; - -- const bool doLineBlend = [&]() -> bool -- { -+ bool doLineBlend; -+ - if (getBottomR(blend) >= BLEND_DOMINANT) -- return true; -+ doLineBlend = true; - - //make sure there is no second blending in an adjacent rotation for this pixel: handles insular pixels, mario eyes -- if (getTopR(blend) != BLEND_NONE && !eq(e, g)) //but support double-blending for 90° corners -- return false; -- if (getBottomL(blend) != BLEND_NONE && !eq(e, c)) -- return false; -- -+ else if (getTopR(blend) != BLEND_NONE && !eq(e, g)) //but support double-blending for 90° corners -+ doLineBlend = false; -+ else if (getBottomL(blend) != BLEND_NONE && !eq(e, c)) -+ doLineBlend = false; - //no full blending for L-shapes; blend corner only (handles "mario mushroom eyes") -- if (!eq(e, i) && eq(g, h) && eq(h , i) && eq(i, f) && eq(f, c)) -- return false; -- -- return true; -- }(); -+ else if (!eq(e, i) && eq(g, h) && eq(h, i) && eq(i, f) && eq(f, c)) -+ doLineBlend = false; -+ else -+ doLineBlend = true; - - const uint32_t px = dist(e, f) <= dist(e, h) ? f : h; //choose most similar color - Property changes on: head/emulators/ppsspp-devel/files/patch-ext_xbrz_xbrz.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp-devel/files/patch-ext_native_image_png__load.cpp =================================================================== --- head/emulators/ppsspp-devel/files/patch-ext_native_image_png__load.cpp (revision 398679) +++ head/emulators/ppsspp-devel/files/patch-ext_native_image_png__load.cpp (nonexistent) @@ -1,11 +0,0 @@ ---- ext/native/image/png_load.cpp.orig 2015-09-06 20:37:59 UTC -+++ ext/native/image/png_load.cpp -@@ -5,7 +5,7 @@ - #ifdef USING_QT_UI - #include - #else --#include "libpng17/png.h" -+#include "png.h" - #endif - - #include "png_load.h" Property changes on: head/emulators/ppsspp-devel/files/patch-ext_native_image_png__load.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp-devel/files/patch-Core_FileLoaders_HTTPFileLoader.cpp =================================================================== --- head/emulators/ppsspp-devel/files/patch-Core_FileLoaders_HTTPFileLoader.cpp (revision 398679) +++ head/emulators/ppsspp-devel/files/patch-Core_FileLoaders_HTTPFileLoader.cpp (nonexistent) @@ -1,25 +0,0 @@ ---- Core/FileLoaders/HTTPFileLoader.cpp.orig 2015-07-11 22:44:11 UTC -+++ Core/FileLoaders/HTTPFileLoader.cpp -@@ -15,6 +15,9 @@ - // Official git repository and contact information can be found at - // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. - -+// XXX ports/193528 -+#define _GLIBCXX_USE_C99 1 -+ - #include - #include "base/stringutil.h" - #include "Common/Common.h" -@@ -53,11 +56,7 @@ HTTPFileLoader::HTTPFileLoader(const std - } - if (size_pos != header.npos) { - // TODO: Find a way to get this to work right on Symbian? --#ifndef __SYMBIAN32__ -- filesize_ = atoll(&header[size_pos]); --#else -- filesize_ = atoi(&header[size_pos]); --#endif -+ filesize_ = std::atoll(&header[size_pos]); - } - } - if (startsWithNoCase(header, "Accept-Ranges:")) { Property changes on: head/emulators/ppsspp-devel/files/patch-Core_FileLoaders_HTTPFileLoader.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/emulators/ppsspp-devel/Makefile =================================================================== --- head/emulators/ppsspp-devel/Makefile (revision 398679) +++ head/emulators/ppsspp-devel/Makefile (revision 398680) @@ -1,37 +1,15 @@ # $FreeBSD$ DISTVERSION= 1.0.1-2768 DISTVERSIONSUFFIX= -gd8b43dd PORTREVISION= 0 PKGNAMESUFFIX= -devel -# XXX Get from Debian once #697821 lands -MASTER_SITES= https://bazaar.launchpad.net/~sergio-br2/${PORTNAME}/debian-sdl/download/1/${PORTNAME}.1-20140802045408-dd26dik367ztj5xg-8/:manpage -DISTFILES= ${PORTNAME}.1:manpage -EXTRACT_ONLY= ${DISTFILES:N*\:manpage:C/:.*//} GH_TAGNAME= e22d7a5:lang a0b878f:ext_armips CONFLICTS_INSTALL?= ${PORTNAME}-[0-9]* -LIB_DEPENDS= libzip.so:${PORTSDIR}/archivers/libzip \ - libsnappy.so:${PORTSDIR}/archivers/snappy -USE_GL= glew - -EXCLUDE= glew snappy libzip zlib -EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude ,} - MASTERDIR= ${.CURDIR}/../ppsspp -PATCHDIR= ${.CURDIR}/files DISTINFO_FILE= ${.CURDIR}/distinfo - -post-patch: slave-post-patch -slave-post-patch: - @${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},' \ - ${WRKSRC}/Qt/*.pr* - -post-install: slave-post-install -slave-post-install: - ${INSTALL_MAN} ${_DISTDIR}/${PORTNAME}.1 \ - ${STAGEDIR}${MAN1PREFIX}/man/man1 .include "${MASTERDIR}/Makefile"