games/asc: Fix broken build.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2020-09-06 02:10:02 -04:00 committed by Willy Sudiarto Raharjo
parent 21fd8a3e10
commit a46f997ee7
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 57 additions and 1 deletions

View File

@ -22,9 +22,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20200906 bkw: modified by SlackBuilds.org: added patch to support
# physfs 3.0.1.
PRGNAM=asc
VERSION=${VERSION:-2.6.1.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -69,6 +72,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# 20200906 bkw: Patch borrowed from Debian, with thanks.
patch -p1 < $CWD/libphysfs-3.0.1.patch
# convert asc logo icon .gif to .png format
convert data/icon_asc.gif $PRGNAM.png

View File

@ -0,0 +1,50 @@
From: Markus Koschany <apo@debian.org>
Date: Fri, 17 Nov 2017 19:08:04 +0100
Subject: libphysfs 3.0.1
Bug-Debian: https://bugs.debian.org/881998
Forwarded: http://battle-planet.de/pbp/board/viewtopic.php?f=128&t=6717
---
source/libs/paragui/src/core/physfsrwops.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/source/libs/paragui/src/core/physfsrwops.h b/source/libs/paragui/src/core/physfsrwops.h
index 91ff2eb..a259622 100644
--- a/source/libs/paragui/src/core/physfsrwops.h
+++ b/source/libs/paragui/src/core/physfsrwops.h
@@ -39,7 +39,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
@@ -51,7 +51,7 @@ __EXPORT__ SDL_RWops *PHYSFSRWOPS_openRead(const char *fname);
* @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
@@ -63,7 +63,7 @@ __EXPORT__ SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname);
* @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
@@ -75,7 +75,7 @@ __EXPORT__ SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname);
* @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
}