summaryrefslogtreecommitdiffstats
path: root/system/lbench/lbench.SlackBuild
diff options
context:
space:
mode:
author Niels Horn2012-09-14 00:06:39 +0200
committer Niels Horn2012-09-14 00:06:39 +0200
commit0ec818b795dbe25f38cfe3c46bfd362549fc08a0 (patch)
treee9d028ebed33a70f4a09344cd7ef525f0df45f3b /system/lbench/lbench.SlackBuild
parent77afa5e670146f5d46816d95058f17da0e59e803 (diff)
downloadslackbuilds-0ec818b795dbe25f38cfe3c46bfd362549fc08a0.tar.gz
system/lbench: Updated for version 1.9 +fixes for gcc-4.7
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'system/lbench/lbench.SlackBuild')
-rw-r--r--system/lbench/lbench.SlackBuild19
1 files changed, 14 insertions, 5 deletions
diff --git a/system/lbench/lbench.SlackBuild b/system/lbench/lbench.SlackBuild
index c03722cd6f..fba8ca6fb0 100644
--- a/system/lbench/lbench.SlackBuild
+++ b/system/lbench/lbench.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for lbench
# simple Linux multithread benchmarking tool
-# Copyright 2010-2011 Niels Horn, Rio de Janeiro, RJ, Brazil
+# Copyright 2010-2012 Niels Horn, Rio de Janeiro, RJ, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +23,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Revision date 2011/12/28
+# Revision date 2012/09/13
PRGNAM=lbench
-VERSION=${VERSION:-1.7}
+VERSION=${VERSION:-1.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -72,12 +72,21 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Patch source to remove hardcoded location for userguide
+patch -p1 < $CWD/lbench_userguide.patch
+
# Fix makefile to not "install" the .desktop file
-sed -i "s/xdg-desktop/# xdg-desktop/g" Makefile
+# and accept LIBS variable
+sed \
+ -e "s/xdg-desktop/# xdg-desktop/g" \
+ -e "/^LIBS/s/=/+=/" \
+ -i Makefile
CXXFLAGS="$SLKCFLAGS" \
+LIBS="-lpthread" \
PREFIX=/usr \
-make
+make \
+ DOCDIR=/usr/doc/$PRGNAM-$VERSION \
PREFIX=/usr \
make install \