Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app-games/fceux/autobuild/beyond
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
abinfo "Removing CHM files..."
find "$PKGDIR"/usr/share/fceux/ -name "*.chm" -delete -print
abinfo "Removing lua DLL files..."
find "$PKGDIR"/usr/share/fceux/ -name "*.dll" -delete -print
11 changes: 11 additions & 0 deletions app-games/fceux/autobuild/defines
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PKGNAME=fceux
PKGSEC=games
PKGDEP="sdl2 qt-5 lua-5.1 x264 x265 ffmpeg libarchive minizip zlib"
BUILDDEP="cmake"
PKGDES="A Famicom emulator"

ABTYPE=cmake

CMAKE_AFTER="-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DGLVND=1"
42 changes: 42 additions & 0 deletions app-games/fceux/autobuild/patches/0001-fix-timestamp-nonx86.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
diff --git a/src/utils/timeStamp.cpp b/src/utils/timeStamp.cpp
index f62d019f..efb45aac 100644
--- a/src/utils/timeStamp.cpp
+++ b/src/utils/timeStamp.cpp
@@ -14,6 +14,7 @@
//-------------------------------------------------------------------------
//---- Time Stamp Record
//-------------------------------------------------------------------------
+#ifdef __FCEU_X86_TSC_ENABLE
#if defined(WIN32)
#include <intrin.h>
#pragma intrinsic(__rdtsc)
@@ -25,6 +26,7 @@ static uint64_t rdtsc()
{
return __rdtsc();
}
+#endif

namespace FCEU
{
@@ -36,12 +38,15 @@ uint64_t timeStampRecord::qpcFreq = 0;

void timeStampRecord::readNew(void)
{
-#if defined(__linux__) || defined(__APPLE__) || defined(__unix__)
- clock_gettime( CLOCK_REALTIME, &ts );
-#else
- QueryPerformanceCounter((LARGE_INTEGER*)&ts);
-#endif
- tsc = rdtsc();
+ #ifdef __FCEU_X86_TSC_ENABLE
+ tsc = rdtsc();
+ #endif
+
+ #if defined(__linux__) || defined(__APPLE__) || defined(__unix__)
+ clock_gettime( CLOCK_REALTIME, &ts );
+ #else
+ QueryPerformanceCounter((LARGE_INTEGER*)&ts);
+ #endif
}
#if defined(WIN32)
void timeStampRecord::qpcCalibrate(void)
4 changes: 4 additions & 0 deletions app-games/fceux/spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VER=2.6.6
SRCS="git::commit=tags/v$VER;copy-repo=true::https://github.com/TASEmulators/fceux"
CHKSUMS="SKIP"
CHKUPDATE="anitya::id=12147"