summaryrefslogtreecommitdiff
path: root/benchmarks/hbench
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-07-01 10:18:58 +0000
committersbd <sbd@pkgsrc.org>2012-07-01 10:18:58 +0000
commit9bff5abc841db60ea86c9afd8787cf1e4bf1bdfc (patch)
treebed462cd00b90579cae3b00b6bb046a7808f31fd /benchmarks/hbench
parentd1580de89011f9a1ee212547415da5e2753e3ae8 (diff)
downloadpkgsrc-9bff5abc841db60ea86c9afd8787cf1e4bf1bdfc.tar.gz
Improve the sed command used in GET_OS_CMD to work with '*-*-linux-gnu'
Diffstat (limited to 'benchmarks/hbench')
-rw-r--r--benchmarks/hbench/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/hbench/Makefile b/benchmarks/hbench/Makefile
index 89f293cf851..652af80e7f3 100644
--- a/benchmarks/hbench/Makefile
+++ b/benchmarks/hbench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2012/02/28 15:49:56 hans Exp $
+# $NetBSD: Makefile,v 1.48 2012/07/01 10:18:58 sbd Exp $
DISTNAME= hbench-OS-1.1
PKGNAME= hbench-1.1
@@ -27,7 +27,7 @@ OVERRIDE_GNU_CONFIG_SCRIPTS= yes
MAKE_JOBS_SAFE= no
GET_ARCH_CMD= ${PKGSRCDIR:Q}/mk/gnu-config/config.guess | ${SED} -e 's/-.*-.*$$//'
-GET_OS_CMD= ${PKGSRCDIR:Q}/mk/gnu-config/config.guess | ${SED} -e 's/^.*-.*-//'
+GET_OS_CMD= ${PKGSRCDIR:Q}/mk/gnu-config/config.guess | ${SED} -e 's/^[^-]*-[^-]*-//;s/-.*$$//'
PLIST_SUBST+= PLATFORM=${GET_OS_CMD:sh:Q}-${GET_ARCH_CMD:sh:Q}
.include "../../mk/bsd.prefs.mk"