aboutsummaryrefslogtreecommitdiff
path: root/system/lbench/lbench.SlackBuild
diff options
context:
space:
mode:
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 c03722cd6fc3c..fba8ca6fb0fab 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 \