summaryrefslogtreecommitdiff
path: root/audio/mpd/mpd.SlackBuild
diff options
context:
space:
mode:
authorDhabyX <slack.dhabyx@gmail.com>2013-12-07 08:10:35 +0700
committerErik Hanson <erik@slackbuilds.org>2013-12-14 10:53:01 -0600
commit40b7bdcae7142a98926f5a196ec8b0e3c2055a13 (patch)
treea5a1d0b7c4ab45694698945ad0a6b0cfc67da371 /audio/mpd/mpd.SlackBuild
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/mpd/mpd.SlackBuild')
-rw-r--r--audio/mpd/mpd.SlackBuild47
1 files changed, 40 insertions, 7 deletions
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