mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-05 11:35:01 +00:00
emulators/emulationstation: Update to v2.11.2
This also fixes the build with GCC 13 [1]. Changes: https://github.com/RetroPie/EmulationStation/compare/v2.9.4...v2.11.2 PR: 273676 [1] Approved by: maintainer timeout (> 3 weeks)
This commit is contained in:
parent
992e5c9046
commit
c48fd2014e
@ -1,7 +1,6 @@
|
||||
PORTNAME= emulationstation
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.9.4
|
||||
PORTREVISION= 5
|
||||
DISTVERSION= 2.11.2
|
||||
CATEGORIES= emulators
|
||||
|
||||
MAINTAINER= freebsd@coombscloud.com
|
||||
@ -13,7 +12,8 @@ LICENSE_COMB= multi
|
||||
LICENSE_FILE_APACHE20= ${WRKSRC}/opensans_license.txt
|
||||
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE.md
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/rapidjson/document.h:devel/rapidjson
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/rapidjson/document.h:devel/rapidjson \
|
||||
pugixml>0:textproc/pugixml
|
||||
LIB_DEPENDS= libboost_date_time.so:devel/boost-libs \
|
||||
libboost_filesystem.so:devel/boost-libs \
|
||||
libboost_locale.so:devel/boost-libs \
|
||||
@ -24,10 +24,11 @@ LIB_DEPENDS= libboost_date_time.so:devel/boost-libs \
|
||||
libpugixml.so:textproc/pugixml \
|
||||
libvlc.so:multimedia/vlc
|
||||
|
||||
USES= cmake compiler:gcc-c++11-lib gl pkgconfig sdl
|
||||
USES= cmake gl pkgconfig sdl
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= RetroPie
|
||||
GH_PROJECT= EmulationStation
|
||||
USE_GCC= yes
|
||||
USE_GL= gl glu
|
||||
USE_SDL= sdl2
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1606557422
|
||||
SHA256 (RetroPie-EmulationStation-v2.9.4_GH0.tar.gz) = 79452f6c1e8aaebe98c19708b3587a0a45330bf20b3301d556285d5cd756fa4a
|
||||
SIZE (RetroPie-EmulationStation-v2.9.4_GH0.tar.gz) = 852960
|
||||
TIMESTAMP = 1703604202
|
||||
SHA256 (RetroPie-EmulationStation-v2.11.2_GH0.tar.gz) = 6b632fe68bad5c3e0567e3bb171fe18ad7b2f8b1531d1297a7a91be95bf8734a
|
||||
SIZE (RetroPie-EmulationStation-v2.11.2_GH0.tar.gz) = 942655
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- es-app/src/SystemData.h.orig 2023-12-18 20:19:11 UTC
|
||||
+++ es-app/src/SystemData.h
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
-#include <pugixml/src/pugixml.hpp>
|
||||
+#include <pugixml.hpp>
|
||||
|
||||
class FileData;
|
||||
class FileFilterIndex;
|
@ -1,39 +1,85 @@
|
||||
--- es-core/src/utils/FileSystemUtil.cpp.orig 2020-11-29 11:37:59 UTC
|
||||
--- es-core/src/utils/FileSystemUtil.cpp.orig 2023-12-18 20:00:52 UTC
|
||||
+++ es-core/src/utils/FileSystemUtil.cpp
|
||||
@@ -577,10 +577,10 @@ namespace Utils
|
||||
bool exists(const std::string& _path)
|
||||
{
|
||||
std::string path = getGenericPath(_path);
|
||||
@@ -578,10 +578,10 @@ namespace Utils
|
||||
CloseHandle(hFile);
|
||||
}
|
||||
#else // _WIN32
|
||||
- struct stat64 info;
|
||||
+ struct stat info;
|
||||
|
||||
// check if stat64 succeeded
|
||||
- return (stat64(path.c_str(), &info) == 0);
|
||||
+ return (stat(path.c_str(), &info) == 0);
|
||||
- // check if lstat64 succeeded
|
||||
- if(lstat64(path.c_str(), &info) == 0)
|
||||
+ // check if lstat succeeded
|
||||
+ if(lstat(path.c_str(), &info) == 0)
|
||||
{
|
||||
resolved.resize(info.st_size);
|
||||
if(readlink(path.c_str(), (char*)resolved.data(), resolved.size()) > 0)
|
||||
@@ -658,9 +658,9 @@ namespace Utils
|
||||
if(pathExistsIndex.find(_path) == pathExistsIndex.cend())
|
||||
{
|
||||
const std::string path = getGenericPath(_path);
|
||||
- struct stat64 info;
|
||||
- // check if stat64 succeeded
|
||||
- pathExistsIndex[_path] = (stat64(path.c_str(), &info) == 0);
|
||||
+ struct stat info;
|
||||
+ // check if stat succeeded
|
||||
+ pathExistsIndex[_path] = (stat(path.c_str(), &info) == 0);
|
||||
}
|
||||
|
||||
} // exists
|
||||
|
||||
@@ -599,10 +599,10 @@ namespace Utils
|
||||
return pathExistsIndex.at(_path);
|
||||
@@ -686,10 +686,10 @@ namespace Utils
|
||||
bool isRegularFile(const std::string& _path)
|
||||
{
|
||||
std::string path = getGenericPath(_path);
|
||||
- struct stat64 info;
|
||||
+ struct stat info;
|
||||
const std::string path = getGenericPath(_path);
|
||||
- struct stat64 info;
|
||||
+ struct stat info;
|
||||
|
||||
// check if stat64 succeeded
|
||||
- // check if stat64 succeeded
|
||||
- if(stat64(path.c_str(), &info) != 0)
|
||||
+ // check if stat succeeded
|
||||
+ if(stat(path.c_str(), &info) != 0)
|
||||
return false;
|
||||
|
||||
// check for S_IFREG attribute
|
||||
@@ -670,8 +670,8 @@ namespace Utils
|
||||
} // isHidden
|
||||
#ifndef WIN32 // osx / linux
|
||||
bool isExecutable(const std::string& _path) {
|
||||
- struct stat64 st;
|
||||
- if(stat64(_path.c_str(), &st) == 0){
|
||||
+ struct stat st;
|
||||
+ if(stat(_path.c_str(), &st) == 0){
|
||||
mode_t perm = st.st_mode;
|
||||
// regular files and executables but not setuid, setgid, shared text (mode 0755)
|
||||
mode_t mask = S_IFREG | S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
|
||||
@@ -702,10 +702,10 @@ namespace Utils
|
||||
bool isDirectory(const std::string& _path)
|
||||
{
|
||||
const std::string path = getGenericPath(_path);
|
||||
- struct stat64 info;
|
||||
+ struct stat info;
|
||||
|
||||
- // check if stat64 succeeded
|
||||
- if(stat64(path.c_str(), &info) != 0)
|
||||
+ // check if stat succeeded
|
||||
+ if(stat(path.c_str(), &info) != 0)
|
||||
return false;
|
||||
|
||||
// check for S_IFDIR attribute
|
||||
@@ -725,10 +725,10 @@ namespace Utils
|
||||
if((Attributes != INVALID_FILE_ATTRIBUTES) && (Attributes & FILE_ATTRIBUTE_REPARSE_POINT))
|
||||
return true;
|
||||
#else // _WIN32
|
||||
- struct stat64 info;
|
||||
+ struct stat info;
|
||||
|
||||
- // check if lstat64 succeeded
|
||||
- if(lstat64(path.c_str(), &info) != 0)
|
||||
+ // check if lstat succeeded
|
||||
+ if(lstat(path.c_str(), &info) != 0)
|
||||
return false;
|
||||
|
||||
// check for S_IFLNK attribute
|
||||
@@ -772,10 +772,10 @@ namespace Utils
|
||||
// regular files and executables, but not setuid, setgid, shared text
|
||||
const mode_t mask = S_IFREG;
|
||||
const mode_t mask_exec = S_IXUSR | S_IXGRP | S_IXOTH;
|
||||
- struct stat64 info;
|
||||
+ struct stat info;
|
||||
|
||||
- // check if stat64 succeeded
|
||||
- if(stat64(path.c_str(), &info) != 0)
|
||||
+ // check if stat succeeded
|
||||
+ if(stat(path.c_str(), &info) != 0)
|
||||
return false;
|
||||
|
||||
// check for mask attributes
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- es-core/src/utils/TimeUtil.h.orig 2020-11-29 11:32:59 UTC
|
||||
+++ es-core/src/utils/TimeUtil.h
|
||||
@@ -3,6 +3,7 @@
|
||||
#define ES_CORE_UTILS_TIME_UTIL_H
|
||||
|
||||
#include <string>
|
||||
+#include <time.h>
|
||||
|
||||
namespace Utils
|
||||
{
|
@ -53,6 +53,7 @@ share/EmulationStation/resources/help/dpad_updown.svg
|
||||
share/EmulationStation/resources/mamebioses.xml
|
||||
share/EmulationStation/resources/mamedevices.xml
|
||||
share/EmulationStation/resources/mamenames.xml
|
||||
share/EmulationStation/resources/mameres.py
|
||||
share/EmulationStation/resources/off.svg
|
||||
share/EmulationStation/resources/on.svg
|
||||
share/EmulationStation/resources/opensans_hebrew_condensed_light.ttf
|
||||
|
Loading…
x
Reference in New Issue
Block a user