From 0ec818b795dbe25f38cfe3c46bfd362549fc08a0 Mon Sep 17 00:00:00 2001 From: Niels Horn Date: Thu, 13 Sep 2012 19:06:39 -0300 Subject: system/lbench: Updated for version 1.9 +fixes for gcc-4.7 Signed-off-by: Niels Horn --- system/lbench/lbench.SlackBuild | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'system/lbench/lbench.SlackBuild') 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 \ -- cgit v1.2.3