mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
audio/gmpc-plugins: Miscellaneous cleanups.
This commit is contained in:
parent
4074bf1e68
commit
ca17771688
2 changed files with 20 additions and 10 deletions
|
@ -1,10 +1,10 @@
|
|||
Additional plugins for GMPC.
|
||||
|
||||
Requires gmpc, gob2, json-glib, and optionally several others:
|
||||
avahi, awn, lastfm, libnotify, lirc, microhttpd, and webkitgtk.
|
||||
avahi, awn, lirc, microhttpd, and webkitgtk.
|
||||
Some of these are available at SlackBuilds.org. If you have any
|
||||
of these and would like to enable the plugin, the variable are
|
||||
as follows: AVAHI AWN LASTFM LIBNOTIFY LIRC MSERVER WIKIPEDIA
|
||||
of these and would like to enable the plugin, the variables are
|
||||
as follows: AVAHI AWN LIRC MSERVER WIKIPEDIA
|
||||
|
||||
For example, if you have avahi and libnotify, you would do this:
|
||||
AVAHI=yes LIBNOTIFY=yes ./gmpc-plugins.SlackBuild
|
||||
For example, if you have avahi and lirc, you would do this:
|
||||
AVAHI=yes LIRC=yes ./gmpc-plugins.SlackBuild
|
||||
|
|
|
@ -24,18 +24,25 @@
|
|||
|
||||
PRGNAM=gmpc-plugins
|
||||
VERSION=${VERSION:-0.20.0}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
AVAHI=${AVAHI:-no} # avahi
|
||||
AWN=${AWN:-no} # AWN
|
||||
LASTFM=${LASTFM:-no} # Last.FM
|
||||
LIBNOTIFY=${LIBNOTIFY:-no} # libnotify
|
||||
LIRC=${LIRC:-no} # lirc
|
||||
MSERVER=${MSERVER:-no} # microhttpd
|
||||
WIKIPEDIA=${WIKIPEDIA:-no} # WebKitGTK
|
||||
|
||||
# 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-$PRGNAM
|
||||
|
@ -50,6 +57,9 @@ elif [ "$ARCH" = "i686" ]; then
|
|||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -eu
|
||||
|
@ -89,10 +99,10 @@ CFLAGS="$SLKCFLAGS" \
|
|||
--enable-playlistsort \
|
||||
--enable-shout \
|
||||
--enable-tagedit \
|
||||
--enable-lastfm \
|
||||
--enable-libnotify \
|
||||
--enable-avahi=$AVAHI \
|
||||
--enable-awn=$AWN \
|
||||
--enable-lastfm=$LASTFM \
|
||||
--enable-libnotify=$LIBNOTIFY \
|
||||
--enable-lirc=$LIRC \
|
||||
--enable-mserver=$MSERVER \
|
||||
--enable-wikipedia=$WIKIPEDIA \
|
||||
|
|
Loading…
Reference in a new issue