summaryrefslogtreecommitdiff
path: root/audio/mac
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2019-01-07 19:17:42 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-01-12 06:58:40 +0700
commita176a798f2101ea4ffa76b2bc9f6a43e10e34639 (patch)
treeab1512039ad8ba500fdc66dc95adf647018b79a1 /audio/mac
parentf83d0a635e203174d7b4fff07eca948fec6f0168 (diff)
downloadslackbuilds-a176a798f2101ea4ffa76b2bc9f6a43e10e34639.tar.gz
audio/mac: Fix download link.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'audio/mac')
-rw-r--r--audio/mac/README7
-rw-r--r--audio/mac/mac.SlackBuild15
-rw-r--r--audio/mac/mac.info2
3 files changed, 17 insertions, 7 deletions
diff --git a/audio/mac/README b/audio/mac/README
index a8f2f96ea5..d013f5dbfc 100644
--- a/audio/mac/README
+++ b/audio/mac/README
@@ -1,7 +1,12 @@
mac (Monkey's Audio Linux port)
mac is a console frontend to Monkey's Audio, able to encode and
-decode ape audio files.
+decode APE audio files.
If you're building this for an old x86 CPU that doesn't support MMX,
set ASM=no in the script's environment.
+
+The package is built using upstream's default optimization level,
+which is -O3. If you suspect this is causing problems, rebuild with
+FORCE_SLACK_CFLAGS=yes in the environment (this will force -O2). If this
+actually fixes anything, please email the maintainer with the details.
diff --git a/audio/mac/mac.SlackBuild b/audio/mac/mac.SlackBuild
index d6a2912baf..eb2e3ada5b 100644
--- a/audio/mac/mac.SlackBuild
+++ b/audio/mac/mac.SlackBuild
@@ -10,6 +10,10 @@
# licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/
# for details.
+# 20190107 bkw:
+# - download URL went away, use netbsd pkgsrc
+# - add FORCE_SLACK_CFLAGS option (probably nobody needs it)
+
# 20180105 bkw:
# - take over maintenance
# - update for 3.99_u4_b5_s7 (BUILD=1)
@@ -67,11 +71,12 @@ rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
cd $PRGNAM-$SRCVER
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 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 {} \+
+
+if [ "${FORCE_SLACK_CFLAGS:-no}" = "yes" ]; then
+ sed -i 's,-O3\>,,' configure
+fi
LDFLAGS="-Wl,-s" \
CFLAGS="$SLKCFLAGS" \
diff --git a/audio/mac/mac.info b/audio/mac/mac.info
index 59f8cd3055..e5f02974ed 100644
--- a/audio/mac/mac.info
+++ b/audio/mac/mac.info
@@ -1,7 +1,7 @@
PRGNAM="mac"
VERSION="3.99_u4_b5_s7"
HOMEPAGE="https://web.archive.org/web/20120529111247/http://supermmx.org/linux/mac"
-DOWNLOAD="http://etree.org/shnutils/shntool/support/formats/ape/unix/3.99-u4-b5-s7/mac-3.99-u4-b5-s7.tar.gz"
+DOWNLOAD="http://ftp.netbsd.org/pub/pkgsrc/distfiles/mac-3.99-u4-b5-s7.tar.gz"
MD5SUM="74df3c96476636387ddd12255b03bebe"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""