diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/mpd/README | 4 | ||||
-rw-r--r-- | audio/mpd/mpd.SlackBuild | 19 |
2 files changed, 16 insertions, 7 deletions
diff --git a/audio/mpd/README b/audio/mpd/README index df3bc5b9d75b2..0932d0a9ea5c4 100644 --- a/audio/mpd/README +++ b/audio/mpd/README @@ -5,8 +5,8 @@ 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, libsamplerate, -libmpcdec, lame, faac, faad2, ffmpeg, and jack. +Some optional dependencies include libshout, libmms, libmpcdec, lame, +faac, faad2, ffmpeg, and jack. NOTE: You will have to create the ~/.mpd/playlists directory manually. Also be sure to edit the config file (/etc/mpd.conf) if needed before diff --git a/audio/mpd/mpd.SlackBuild b/audio/mpd/mpd.SlackBuild index c2e3620004fd3..769e5832ccbad 100644 --- a/audio/mpd/mpd.SlackBuild +++ b/audio/mpd/mpd.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=mpd VERSION=0.15.9 -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-mpd @@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e @@ -73,10 +85,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ # Use sample config, without overwriting install -D -m 644 doc/mpdconf.example $PKG/etc/mpd.conf.new -( cd $PKG/usr/man || exit 1 - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |