aboutsummaryrefslogtreecommitdiffstats
path: root/games/openbor
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-04-25 22:17:25 +0800
committerjbeich <jbeich@FreeBSD.org>2015-04-25 22:17:25 +0800
commit4d30bfb5243b4297ce3e14b9eef03c69c911ed04 (patch)
treef8e5e8f05cbafdae5b993ba71a2696ebb46a710c /games/openbor
parent2b03a08c0fb6d390b9aedb1bbda1446186a8c07c (diff)
downloadfreebsd-ports-gnome-4d30bfb5243b4297ce3e14b9eef03c69c911ed04.tar.gz
freebsd-ports-gnome-4d30bfb5243b4297ce3e14b9eef03c69c911ed04.tar.zst
freebsd-ports-gnome-4d30bfb5243b4297ce3e14b9eef03c69c911ed04.zip
- Update to r4157 snapshot
- Normalize patch filenames ChangeLog (trimmed): - Fix openborvariant("in_sound_options") - Major refactor of WebM playback code - Support playback of WebM videos with no audio track - Support screenshots and fullscreen flip during WebM playback - Fix aspect ratio of WebM videos in OpenGL mode - Fix nestegg bug where all floats would be read as 0.0 on big-endian - Avoid displaying garbage as first frame of video - Improve WebM error logging
Diffstat (limited to 'games/openbor')
-rw-r--r--games/openbor/Makefile2
-rw-r--r--games/openbor/distinfo4
-rw-r--r--games/openbor/files/patch-sdl_sdlport.c (renamed from games/openbor/files/patch-sdl__sdlport.c)0
-rw-r--r--games/openbor/files/patch-source_ramlib_ram.c (renamed from games/openbor/files/patch-source__ramlib__ram.c)70
4 files changed, 32 insertions, 44 deletions
diff --git a/games/openbor/Makefile b/games/openbor/Makefile
index 88624ee06456..c8bfb827cd27 100644
--- a/games/openbor/Makefile
+++ b/games/openbor/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= openbor
-PORTVERSION= 3.0.r4138
+PORTVERSION= 3.0.r4157
CATEGORIES= games
MASTER_SITES= LOCAL/jbeich \
https://svn.code.sf.net/p/${PORTNAME}/engine/engine/:svn
diff --git a/games/openbor/distinfo b/games/openbor/distinfo
index 5a8f4d442990..8cb33da4ace5 100644
--- a/games/openbor/distinfo
+++ b/games/openbor/distinfo
@@ -1,2 +1,2 @@
-SHA256 (openbor-3.0.r4138.tar.xz) = e99b4c0b6f1bd3eee8332f1a078ebb1d05b08ac5e9b504cde24ef532bb1307a3
-SIZE (openbor-3.0.r4138.tar.xz) = 3451504
+SHA256 (openbor-3.0.r4157.tar.xz) = 727fba847a5af1ece42b42d84ae60c3dbbb4bb9b79ffb1c843e3303edfe9de4c
+SIZE (openbor-3.0.r4157.tar.xz) = 3887812
diff --git a/games/openbor/files/patch-sdl__sdlport.c b/games/openbor/files/patch-sdl_sdlport.c
index b092c843e344..b092c843e344 100644
--- a/games/openbor/files/patch-sdl__sdlport.c
+++ b/games/openbor/files/patch-sdl_sdlport.c
diff --git a/games/openbor/files/patch-source__ramlib__ram.c b/games/openbor/files/patch-source_ramlib_ram.c
index 9774e734dcbc..cf80e06758e7 100644
--- a/games/openbor/files/patch-source__ramlib__ram.c
+++ b/games/openbor/files/patch-source_ramlib_ram.c
@@ -1,6 +1,6 @@
---- source/ramlib/ram.c.orig 2013-12-29 14:05:10 UTC
+--- source/ramlib/ram.c.orig 2015-04-18 21:21:56 UTC
+++ source/ramlib/ram.c
-@@ -27,6 +27,21 @@
+@@ -25,6 +25,21 @@
#include <mach/task.h>
#include <mach/mach.h>
#include <mach/mach_init.h>
@@ -22,38 +22,31 @@
#elif LINUX
#include <sys/sysinfo.h>
#include <unistd.h>
-@@ -50,6 +65,8 @@
+@@ -48,7 +63,10 @@
static u64 systemRam = 0x00000000;
-+#if !defined(__DragonFly__) && !defined(__FreeBSD__) && \
-+ !defined(__FreeBSD_kernel__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
- #ifndef DARWIN
- #ifndef WIN
- #ifndef XBOX
-@@ -60,10 +77,13 @@ static unsigned long stackSize = 0x00000
+-#if !(defined(WIN) || defined(LINUX) || defined(DARWIN))
++#if !(defined(WIN) || defined(LINUX) || defined(DARWIN) || \
++ defined(__DragonFly__) || defined(__FreeBSD__) || \
++ defined(__FreeBSD_kernel__) || defined(__NetBSD__) || \
++ defined(__OpenBSD__))
+ static unsigned long elfOffset = 0x00000000;
+ static unsigned long stackSize = 0x00000000;
#endif
- #endif
- #endif
-+#endif
-
+@@ -56,7 +74,10 @@ static unsigned long stackSize = 0x00000
/////////////////////////////////////////////////////////////////////////////
// Symbols
-+#if !defined(__DragonFly__) && !defined(__FreeBSD__) && \
-+ !defined(__FreeBSD_kernel__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
- #ifndef DARWIN
- #ifndef WIN
- #ifndef XBOX
-@@ -81,6 +101,7 @@ extern unsigned long start;
- #endif
- #endif
- #endif
-+#endif
-
- /////////////////////////////////////////////////////////////////////////////
- // Functions
-@@ -107,6 +128,49 @@ u64 getFreeRam(int byte_size)
+-#if !(defined(WIN) || defined(LINUX) || defined(DARWIN))
++#if !(defined(WIN) || defined(LINUX) || defined(DARWIN) || \
++ defined(__DragonFly__) || defined(__FreeBSD__) || \
++ defined(__FreeBSD_kernel__) || defined(__NetBSD__) || \
++ defined(__OpenBSD__))
+ #if (__GNUC__ > 3)
+ extern unsigned long _end;
+ extern unsigned long _start;
+@@ -93,6 +114,49 @@ u64 getFreeRam(int byte_size)
return 0;
}
return (u64)(((vms.inactive_count + vms.free_count) * size) / byte_size);
@@ -103,7 +96,7 @@
#elif LINUX
struct sysinfo info;
sysinfo(&info);
-@@ -147,11 +211,29 @@ void setSystemRam()
+@@ -133,11 +197,29 @@ void setSystemRam()
stat.dwLength = sizeof(MEMORYSTATUS);
GlobalMemoryStatus(&stat);
systemRam = stat.dwTotalPhys;
@@ -138,24 +131,19 @@
#elif LINUX
struct sysinfo info;
sysinfo(&info);
-@@ -194,6 +276,8 @@ void setSystemRam()
+@@ -180,7 +262,10 @@ void setSystemRam()
stackSize = 0x00000000;
systemRam = getFreeRam(BYTES);
#endif
-+#if !defined(__DragonFly__) && !defined(__FreeBSD__) && \
-+ !defined(__FreeBSD_kernel__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
- #ifndef DARWIN
- #ifndef WIN
- #ifndef XBOX
-@@ -205,6 +289,7 @@ void setSystemRam()
- #endif
+-#if !(defined(WIN) || defined(LINUX) || defined(DARWIN) || defined(SYMBIAN))
++#if !(defined(WIN) || defined(LINUX) || defined(DARWIN) || defined(SYMBIAN) || \
++ defined(__DragonFly__) || defined(__FreeBSD__) || \
++ defined(__FreeBSD_kernel__) || defined(__NetBSD__) || \
++ defined(__OpenBSD__))
+ stackSize = (int)&_end - (int)&_start + ((int)&_start - elfOffset);
#endif
- #endif
-+#endif
getRamStatus(BYTES);
- }
-
-@@ -234,6 +319,42 @@ u64 getUsedRam(int byte_size)
+@@ -212,6 +297,42 @@ u64 getUsedRam(int byte_size)
return 0;
}
return info.resident_size / byte_size;