summaryrefslogtreecommitdiffstats
path: root/source/ap/mpg123
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/mpg123')
-rwxr-xr-xsource/ap/mpg123/mpg123.SlackBuild6
-rw-r--r--source/ap/mpg123/mpg123.lib64.diff12
2 files changed, 17 insertions, 1 deletions
diff --git a/source/ap/mpg123/mpg123.SlackBuild b/source/ap/mpg123/mpg123.SlackBuild
index 8111ee5f7..262184756 100755
--- a/source/ap/mpg123/mpg123.SlackBuild
+++ b/source/ap/mpg123/mpg123.SlackBuild
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2006-2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2006-2021 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -111,6 +111,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
+# Search for modules in lib64 first, then lib. This should work on pure 64-bit,
+# pure 32-bit, and multilib.
+zcat $CWD/mpg123.lib64.diff.gz | patch -p1 --verbose || exit 1
+
# Configure:
CFLAGS="$SLKCFLAGS" \
./configure \
diff --git a/source/ap/mpg123/mpg123.lib64.diff b/source/ap/mpg123/mpg123.lib64.diff
new file mode 100644
index 000000000..e86ec24ef
--- /dev/null
+++ b/source/ap/mpg123/mpg123.lib64.diff
@@ -0,0 +1,12 @@
+--- ./src/libout123/module.c.orig 2021-09-05 17:31:03.000000000 -0500
++++ ./src/libout123/module.c 2021-09-18 14:46:42.800526245 -0500
+@@ -29,7 +29,8 @@
+ to wide and then replace / by \. No need to define another list. */
+ static const char* modulesearch[] =
+ {
+- "../lib/mpg123"
++ "../lib64/mpg123"
++ ,"../lib/mpg123"
+ ,"plugins"
+ ,"libout123/modules/.libs"
+ ,"libout123/modules"