From 40b7bdcae7142a98926f5a196ec8b0e3c2055a13 Mon Sep 17 00:00:00 2001 From: DhabyX Date: Sat, 7 Dec 2013 08:10:35 +0700 Subject: audio/mpd: Added optional deps + New Maintainer. Signed-off-by: Willy Sudiarto Raharjo --- audio/mpd/mpd.SlackBuild | 47 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 40 insertions(+), 7 deletions(-) (limited to 'audio/mpd/mpd.SlackBuild') 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 +# Copyright 2013 Dhaby Xiloj +# Based on SlackBuild of Andrew Brouwers # 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 -- cgit v1.2.3-80-g2a13