From 26dacf7a2e1e43ea7ebf0b7b0c13539c3ae2a4f2 Mon Sep 17 00:00:00 2001 From: Andrew Strong Date: Tue, 5 Jun 2018 09:35:22 +0200 Subject: games/d2x-rebirth: Patch for the newer physfs. Signed-off-by: Matteo Bernardini --- games/d2x-rebirth/d2x-rebirth.SlackBuild | 3 +++ games/d2x-rebirth/libphysfs-3.0.1.patch | 43 ++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 games/d2x-rebirth/libphysfs-3.0.1.patch diff --git a/games/d2x-rebirth/d2x-rebirth.SlackBuild b/games/d2x-rebirth/d2x-rebirth.SlackBuild index e317017c14..6dcca9ddff 100644 --- a/games/d2x-rebirth/d2x-rebirth.SlackBuild +++ b/games/d2x-rebirth/d2x-rebirth.SlackBuild @@ -70,6 +70,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Patch for the newer physfs +patch -p1 < $CWD/libphysfs-3.0.1.patch + # 'sharepath' is for the game-content data files, they can # also perhaps more conveniently go in ~/.d2x-rebirth... scons CXXFLAGS="$SLKCFLAGS" \ diff --git a/games/d2x-rebirth/libphysfs-3.0.1.patch b/games/d2x-rebirth/libphysfs-3.0.1.patch new file mode 100644 index 0000000000..082b8e9546 --- /dev/null +++ b/games/d2x-rebirth/libphysfs-3.0.1.patch @@ -0,0 +1,43 @@ +From: Markus Koschany +Bug-Debian: https://bugs.debian.org/881589 + +Index: d2x-rebirth-0.58.1/include/physfsrwops.h +=================================================================== +--- d2x-rebirth-0.58.1.orig/include/physfsrwops.h ++++ d2x-rebirth-0.58.1/include/physfsrwops.h +@@ -44,7 +44,7 @@ extern "C" { + * @return A valid SDL_RWops structure on success, NULL on error. Specifics + * of the error can be gleaned from PHYSFS_getLastError(). + */ +-__EXPORT__ SDL_RWops *PHYSFSRWOPS_openRead(const char *fname); ++PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openRead(const char *fname); + + /** + * Open a platform-independent filename for writing, and make it accessible +@@ -56,7 +56,7 @@ __EXPORT__ SDL_RWops *PHYSFSRWOPS_openRe + * @return A valid SDL_RWops structure on success, NULL on error. Specifics + * of the error can be gleaned from PHYSFS_getLastError(). + */ +-__EXPORT__ SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname); ++PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname); + + /** + * Open a platform-independent filename for appending, and make it accessible +@@ -68,7 +68,7 @@ __EXPORT__ SDL_RWops *PHYSFSRWOPS_openWr + * @return A valid SDL_RWops structure on success, NULL on error. Specifics + * of the error can be gleaned from PHYSFS_getLastError(). + */ +-__EXPORT__ SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname); ++PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname); + + /** + * Make a SDL_RWops from an existing PhysicsFS file handle. You should +@@ -80,7 +80,7 @@ __EXPORT__ SDL_RWops *PHYSFSRWOPS_openAp + * @return A valid SDL_RWops structure on success, NULL on error. Specifics + * of the error can be gleaned from PHYSFS_getLastError(). + */ +-__EXPORT__ SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle); ++PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle); + + #ifdef __cplusplus + } -- cgit v1.2.3