summaryrefslogtreecommitdiff
path: root/benchmarks/hbench/Makefile
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-03-11 03:44:20 +0000
committerrillig <rillig@pkgsrc.org>2006-03-11 03:44:20 +0000
commit3a4a08b683be9936a5cfc842ffd7d04866b7f47c (patch)
tree9a17ee17d546b7682a7df05bfd0c0f9fe1a76fcd /benchmarks/hbench/Makefile
parent5501a051e5cd2a4742a28f9fb9e63ad3f2f33e84 (diff)
downloadpkgsrc-3a4a08b683be9936a5cfc842ffd7d04866b7f47c.tar.gz
Fixed the PLIST generation for NetBSD.
Diffstat (limited to 'benchmarks/hbench/Makefile')
-rw-r--r--benchmarks/hbench/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/benchmarks/hbench/Makefile b/benchmarks/hbench/Makefile
index 08130dd7f79..3f9df7d658e 100644
--- a/benchmarks/hbench/Makefile
+++ b/benchmarks/hbench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2006/02/05 23:08:19 joerg Exp $
+# $NetBSD: Makefile,v 1.35 2006/03/11 03:44:20 rillig Exp $
DISTNAME= hbench-OS-1.0
PKGNAME= hbench-1.0
@@ -21,9 +21,13 @@ USE_TOOLS+= perl:run
DIST_SUBDIR= ${PKGNAME_NOREV}
+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/^.*-.*-//'
+PLIST_SUBST+= PLATFORM=${GET_OS_CMD:sh:Q}-${GET_ARCH_CMD:sh:Q}
+
pre-configure:
- @${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}/scripts
- @${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}/scripts
+ ${INSTALL} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}/scripts
+ ${INSTALL} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}/scripts
post-configure:
cd ${WRKSRC}; \