aboutsummaryrefslogtreecommitdiff
path: root/audio/qjackctl/qjackctl.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/qjackctl/qjackctl.SlackBuild')
-rw-r--r--audio/qjackctl/qjackctl.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/audio/qjackctl/qjackctl.SlackBuild b/audio/qjackctl/qjackctl.SlackBuild
index 0359aab729d38..1244c4591ba6d 100644
--- a/audio/qjackctl/qjackctl.SlackBuild
+++ b/audio/qjackctl/qjackctl.SlackBuild
@@ -2,7 +2,8 @@
#
# Slackware build script for QjackCtl
#
-# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA
+# Copyright 2009, Erik W. Hanson, Minneapolis, MN, USA
+# Copyright 2012, James M. Brewster, Baltimore, MD, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +25,7 @@
PRGNAM=qjackctl
VERSION=0.3.4
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -71,6 +72,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Tell qmake about our SLKCFLAGS. Required to compile on x86_64
+# system. Thanks to Lyle Sigurdson <lyle@sent.com> on
+# linuxquestions.org for this patch.
+echo "QMAKE_CXXFLAGS_RELEASE=$SLKCFLAGS" >> qjackctl.pro.in
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -89,7 +95,7 @@ find $PKG | xargs file | egrep "ELF.*executable" | cut -f 1 -d : \
| xargs strip --strip-unneeded 2> /dev/null
# Make sure we have a standard-compliant desktop file
-zcat $CWD/desktopfile.gz > $PKG/usr/share/applications/qjackctl.desktop
+cat $CWD/qjackctl.desktop > $PKG/usr/share/applications/qjackctl.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL README TODO TRANSLATORS \