From eaaeec68feaf0f50630cae4745765777a482e45e Mon Sep 17 00:00:00 2001 From: DhabyX Date: Sat, 18 Oct 2014 16:05:18 +0700 Subject: [PATCH] audio/mpd: Updated for version 0.19. Signed-off-by: Willy Sudiarto Raharjo --- audio/mpd/README | 7 +++++++ audio/mpd/mpd.SlackBuild | 43 +++++++++++++++++++++++++++++++--------- audio/mpd/mpd.info | 6 +++--- 3 files changed, 44 insertions(+), 12 deletions(-) diff --git a/audio/mpd/README b/audio/mpd/README index ef6e13e76b..b643c905a5 100644 --- a/audio/mpd/README +++ b/audio/mpd/README @@ -14,6 +14,13 @@ 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 +ID3=yes|no (default: no), requires id3lib +FLAC=yes|no (default: no) +SQLITE=yes|no (default: no) + +Optional packages detected automatically: ffmpeg, libmp4v2, opus, +musepack-tools, twolame, libmms, avahi, jack, pulse, faad2, mod_dnssd, +fluidsynth 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 22dcc72aba..b28788ca17 100644 --- a/audio/mpd/mpd.SlackBuild +++ b/audio/mpd/mpd.SlackBuild @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mpd -VERSION=${VERSION:-0.18.12} +VERSION=${VERSION:-0.19} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -57,6 +57,20 @@ fi set -e +# flac support +if [ "${FLAC:-no}" != "no" ]; then + flac="enable" +else + flac="disable" +fi + +# id3 support +if [ "${ID3:-no}" != "no" ]; then + id3="enable" +else + id3="disable" +fi + # iso9660 support if [ "${ISO9660:-no}" != "no" ]; then iso9660="enable" @@ -64,6 +78,13 @@ else iso9660="disable" fi +# recorder file output support +if [ "${RECORDEROUTPUT:-no}" != "no" ]; then + recorder="enable" +else + recorder="disable" +fi + # Soundcloud.com support if [ "${SOUNDCLOUD:-no}" != "no" ]; then soundcloud="enable" @@ -71,11 +92,11 @@ else soundcloud="disable" fi -# recorder file output support -if [ "${RECORDEROUTPUT:-no}" != "no" ]; then - recorder="enable" +# sqlite support +if [ "${SQLITE:-no}" != "no" ]; then + sqlite="enable" else - recorder="disable" + sqlite="disable" fi # zziplib support @@ -96,22 +117,26 @@ 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 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -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" \ +LDFLAGS="-L/usr/lib${LIBDIRSUFFIX} -lnsl" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --enable-documentation \ + --${flac}-flac \ + --${id3}-id3 \ --${iso9660}-iso9660 \ - --${soundcloud}-soundcloud \ - --${zziplib}-zzip \ --${recorder}-recorder-output \ + --${soundcloud}-soundcloud \ + --${sqlite}-sqlite \ + --${zziplib}-zzip \ + --enable-cdio-paranoia \ --disable-dependency-tracking \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux diff --git a/audio/mpd/mpd.info b/audio/mpd/mpd.info index e63a426436..ad8b5c9871 100644 --- a/audio/mpd/mpd.info +++ b/audio/mpd/mpd.info @@ -1,8 +1,8 @@ PRGNAM="mpd" -VERSION="0.18.12" +VERSION="0.19" HOMEPAGE="http://www.musicpd.org/" -DOWNLOAD="http://www.musicpd.org/download/mpd/0.18/mpd-0.18.12.tar.xz" -MD5SUM="d42be8d5cf66e8d5345704c3456206ac" +DOWNLOAD="http://www.musicpd.org/download/mpd/0.19/mpd-0.19.tar.xz" +MD5SUM="770261630e6f086bd7d5b374abf521c0" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES=""