summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
author DhabyX2013-12-07 02:10:35 +0100
committer Erik Hanson2013-12-14 17:53:01 +0100
commit40b7bdcae7142a98926f5a196ec8b0e3c2055a13 (patch)
treea5a1d0b7c4ab45694698945ad0a6b0cfc67da371 /audio
parentedd48aa612450d62b82d5a1424a154cbcbe7c609 (diff)
downloadslackbuilds-40b7bdcae7142a98926f5a196ec8b0e3c2055a13.tar.gz
audio/mpd: Added optional deps + New Maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r--audio/mpd/README15
-rw-r--r--audio/mpd/mpd.SlackBuild47
-rw-r--r--audio/mpd/mpd.info4
3 files changed, 53 insertions, 13 deletions
diff --git a/audio/mpd/README b/audio/mpd/README
index 3ada239ef7..ef6e13e76b 100644
--- a/audio/mpd/README
+++ b/audio/mpd/README
@@ -5,8 +5,15 @@ provides control for music playback over a local network. It also makes
a great desktop music player, especially if you are a console junkie,
like frontend options, or restart X often.
-Some optional dependencies include libshout, libmms, musepack-tools,
-lame, faac, faad2, ffmpeg, pulseaudio, fluidsynth, and jack.
+Some optional dependencies include libshout, libmms, libmpdclient,
+musepack-tools, lame, faac, faad2, ffmpeg, pulseaudio, fluidsynth,
+and jack.
-NOTE: Be sure to edit the config file (/etc/mpd.conf) before running
-the daemon.
+You can enable this optional features:
+ISO9660=yes|no (default: no), enable iso9660 archive support
+SOUNDCLOUD=yes|no (default: no), enable support for soundcloud.com
+RECORDEROUTPUT=yes|no (default:no), enables the recorder file output plugin
+ZZIPLIB=yes|no (default: no), requires zziplib
+
+NOTE: Be sure to edit the config file (/etc/mpd.conf or ~/mpd.conf)
+before running the daemon.
diff --git a/audio/mpd/mpd.SlackBuild b/audio/mpd/mpd.SlackBuild
index 491dd22a49..d2876118a3 100644
--- a/audio/mpd/mpd.SlackBuild
+++ b/audio/mpd/mpd.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for mpd
-# Copyright 2008-2011 Andrew Brouwers <abrouwers@gmail.com>
+# Copyright 2013 Dhaby Xiloj <slack.dhabyx@gmail.com>
+# Based on SlackBuild of Andrew Brouwers <abrouwers@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -37,7 +38,7 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-mpd
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
@@ -56,30 +57,62 @@ fi
set -e
+# iso9660 support
+if [ "${ISO9660:-no}" != "no" ]; then
+ iso9660="enable"
+else
+ iso9660="disable"
+fi
+
+# Soundcloud.com support
+if [ "${SOUNDCLOUD:-no}" != "no" ]; then
+ soundcloud="enable"
+else
+ soundcloud="disable"
+fi
+
+# recorder file output support
+if [ "${RECORDEROUTPUT:-no}" != "no" ]; then
+ recorder="enable"
+else
+ recorder="disable"
+fi
+
+# zziplib support
+if [ "${ZZIPLIB:-no}" != "no" ]; then
+ zziplib="enable"
+else
+ zziplib="disable"
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
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 \
+ -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 {} \;
+#adding LDFLAGS="-lnsl" for libwrap, part of tcp_wrappers package
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
+LDFLAGS="-lnsl" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
- --enable-lastfm \
+ --enable-documentation \
+ --${iso9660}-iso9660 \
+ --${soundcloud}-soundcloud \
+ --${zziplib}-zzip \
+ --${recorder}-recorder-output \
--disable-dependency-tracking \
- --disable-documentation \
- --disable-libwrap \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
diff --git a/audio/mpd/mpd.info b/audio/mpd/mpd.info
index 5a5cb1a144..d8fcf35b06 100644
--- a/audio/mpd/mpd.info
+++ b/audio/mpd/mpd.info
@@ -6,5 +6,5 @@ MD5SUM="63bcf6ce338caa2ae2cd6dc8e9710d5c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Andrew Brouwers"
-EMAIL="abrouwers@gmail.com"
+MAINTAINER="DhabyX"
+EMAIL="slack.dhabyx@gmail.com"