summaryrefslogtreecommitdiffstats
path: root/libraries/SDL2_mixer/SDL2_mixer.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/SDL2_mixer/SDL2_mixer.SlackBuild')
-rw-r--r--libraries/SDL2_mixer/SDL2_mixer.SlackBuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/libraries/SDL2_mixer/SDL2_mixer.SlackBuild b/libraries/SDL2_mixer/SDL2_mixer.SlackBuild
index ff3d6cb323..dbeb3f64ef 100644
--- a/libraries/SDL2_mixer/SDL2_mixer.SlackBuild
+++ b/libraries/SDL2_mixer/SDL2_mixer.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for SDL2_mixer
# Copyright 2013-2015 Dugan Chen Canada
+# Copyright 2020 B. Watson
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,6 +23,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20200415 bkw:
+# - take over maintenance
+
PRGNAM=SDL2_mixer
VERSION=${VERSION:-2.0.4}
BUILD=${BUILD:-2}
@@ -63,14 +67,12 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
+LDFLAGS="-Wl,-s" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -84,9 +86,6 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-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/examples
cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION
cp -a playmus.c playwave.c $PKG/usr/doc/$PRGNAM-$VERSION/examples