diff options
author | Andrew Strong <andrew.david.strong@gmail.com> | 2018-06-05 09:35:22 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-06-09 07:15:32 +0700 |
commit | 26dacf7a2e1e43ea7ebf0b7b0c13539c3ae2a4f2 (patch) | |
tree | 5d6a46914a9842c9cf4920d21800eb2de23b0d4c | |
parent | 8fa2532e3d7c8bcd8b4ab472d32d05ce8923da9a (diff) |
games/d2x-rebirth: Patch for the newer physfs.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | games/d2x-rebirth/d2x-rebirth.SlackBuild | 3 | ||||
-rw-r--r-- | games/d2x-rebirth/libphysfs-3.0.1.patch | 43 |
2 files changed, 46 insertions, 0 deletions
diff --git a/games/d2x-rebirth/d2x-rebirth.SlackBuild b/games/d2x-rebirth/d2x-rebirth.SlackBuild index e317017c14e0..6dcca9ddff35 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 000000000000..082b8e9546a8 --- /dev/null +++ b/games/d2x-rebirth/libphysfs-3.0.1.patch @@ -0,0 +1,43 @@ +From: Markus Koschany <apo@debian.org> +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 + } |