From 3ef2285e3c5455fc1ab2e788d819a557395244db Mon Sep 17 00:00:00 2001 From: Dugan Chen Date: Mon, 18 Dec 2017 10:39:50 +0000 Subject: desktop/lxappearance: Make GTK3 support optional. Signed-off-by: David Spencer --- desktop/lxappearance/README | 8 +++++++- desktop/lxappearance/lxappearance.SlackBuild | 9 ++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'desktop/lxappearance') diff --git a/desktop/lxappearance/README b/desktop/lxappearance/README index 3e2708303c..47945eed39 100644 --- a/desktop/lxappearance/README +++ b/desktop/lxappearance/README @@ -2,4 +2,10 @@ LXAppearance is the standard theme switcher of LXDE. Users are able to change the theme, icons, and fonts used by applications easily. If you want to build this without dbus support (ex. you are building -not to use this inside of LXDE) pass the script DBUS=no +not to use this inside of LXDE) pass to the script the switch: + + DBUS=no + +If you want to build this for GTK+3, pass to the script the switch + + GTK3=yes diff --git a/desktop/lxappearance/lxappearance.SlackBuild b/desktop/lxappearance/lxappearance.SlackBuild index 63c080f2e6..7286f6cf51 100644 --- a/desktop/lxappearance/lxappearance.SlackBuild +++ b/desktop/lxappearance/lxappearance.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=lxappearance VERSION=${VERSION:-0.6.3} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -40,6 +40,10 @@ DBUS=${DBUS:-yes} DBUS_SUPPORT="--enable-dbus" [ "$DBUS" = "no" ] && DBUS_SUPPORT="" + +WITHGTK3="" +[ "${GTK3:-no}" = "yes" ] && WITHGTK3="--enable-gtk3" + set -e rm -rf $PKG @@ -62,8 +66,7 @@ CXXFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --sysconfdir=/etc \ - --disable-static \ - --enable-gtk3 \ + $WITHGTK3 \ $DBUS_SUPPORT \ --build=$ARCH-slackware-linux -- cgit v1.2.3