summaryrefslogtreecommitdiffstats
path: root/source/l/SDL2/SDL2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/SDL2/SDL2.SlackBuild')
-rwxr-xr-xsource/l/SDL2/SDL2.SlackBuild10
1 files changed, 2 insertions, 8 deletions
diff --git a/source/l/SDL2/SDL2.SlackBuild b/source/l/SDL2/SDL2.SlackBuild
index b2afbddc7..17883399f 100755
--- a/source/l/SDL2/SDL2.SlackBuild
+++ b/source/l/SDL2/SDL2.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=SDL2
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -97,18 +97,12 @@ cd cmake-build
-DLIB_SUFFIX="$LIBDIRSUFFIX" \
-DDOC_INSTALL_DIR="doc" \
-DMAN_INSTALL_DIR=/usr/man \
+ -DSDL_STATIC=OFF \
.. || exit 1
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
cd ..
-# Don't package the static libraries:
-( cd $PKG/usr/lib${LIBDIRSUFFIX}
- for file in *.so ; do
- rm -f $(basename $file .so).a
- done
-)
-
# Strip binaries:
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null