summaryrefslogtreecommitdiff
path: root/libraries/physfs/physfs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/physfs/physfs.SlackBuild')
-rw-r--r--libraries/physfs/physfs.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/libraries/physfs/physfs.SlackBuild b/libraries/physfs/physfs.SlackBuild
index 57c1824730..efb820ce35 100644
--- a/libraries/physfs/physfs.SlackBuild
+++ b/libraries/physfs/physfs.SlackBuild
@@ -3,7 +3,8 @@
# Slackware build script for physfs
#
# Copyright 2009-2013 Erik W. Hanson, Minneapolis, MN, USA
-# Copyright 2015 Andrew Strong, Blue Mountains Australia
+# Copyright 2015 Andrew Strong, Blue Mountains Australia
+# Copyright 2017 Johannes Schoepfer
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -30,7 +31,7 @@ TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -41,8 +42,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -73,8 +74,8 @@ find -L . \
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DPHYSFS_ARCHIVE_7Z=OFF \
-DPHYSFS_BUILD_SHARED=ON \
+ -DPHYSFS_BUILD_STATIC=OFF \
-DPHYSFS_BUILD_TEST=OFF \
-DPHYSFS_BUILD_WX_TEST=OFF \
-DPHYSFS_INTERNAL_ZLIB=OFF \
@@ -85,7 +86,7 @@ cmake \
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION