summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-09-17 14:49:12 +0000
committeragc <agc@pkgsrc.org>1998-09-17 14:49:12 +0000
commitf40533e6c7f17cef7922d8fb8e83855186247bca (patch)
tree213155f588adf5f13f26576a2ad50ed7ed32ba7e /benchmarks
parent3e45f77a058bc5db526a52d6d9542721203a68a9 (diff)
downloadpkgsrc-f40533e6c7f17cef7922d8fb8e83855186247bca.tar.gz
Clean this up for RO pkgsrc.
Eliminate duplicated code.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/hbench/Makefile49
1 files changed, 21 insertions, 28 deletions
diff --git a/benchmarks/hbench/Makefile b/benchmarks/hbench/Makefile
index 394dc457058..b23d4f34dca 100644
--- a/benchmarks/hbench/Makefile
+++ b/benchmarks/hbench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 1998/09/05 22:02:19 garbled Exp $
+# $NetBSD: Makefile,v 1.2 1998/09/17 14:49:12 agc Exp $
DISTNAME= hbench-OS-1.0
PKGNAME= hbench-1.0
@@ -16,36 +16,29 @@ WRKSRC= ${WRKDIR}/hbench-OS
NETBSDVER!= echo `uname -s|tr '[A-Z]' '[a-z]'``uname -r`-`uname -m`
ARCH!= echo `uname -m`
+PLIST_SRC= ${WRKDIR}/PLIST-src
+
post-patch:
- @if [ ${ARCH} = i386 ];then \
- ${CAT} ${PKGDIR}/PLIST.md ${PKGDIR}/PLIST.i386 ${PKGDIR}/PLIST.common >foo ;\
- else \
- ${CAT} ${PKGDIR}/PLIST.md ${PKGDIR}/PLIST.common >foo ;\
- fi
- @sed -e 's@XXXNETBSDVERXXX@${NETBSDVER}@' <foo> ${PKGDIR}/PLIST
- @${RM} -f foo
+ @if [ ${ARCH} = i386 ];then \
+ extrafiles=${PKGDIR}/PLIST.i386; \
+ else \
+ extrafiles=""; \
+ fi ; \
+ ${CAT} ${PKGDIR}/PLIST.md $$extrafiles ${PKGDIR}/PLIST.common | \
+ ${SED} -e 's@XXXNETBSDVERXXX@${NETBSDVER}@' > ${PLIST_SRC}
post-configure:
- @${MV} ${WRKSRC}/scripts/create-all-analyses foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/create-all-analyses
- @${MV} ${WRKSRC}/scripts/create-all-latgraphs foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/create-all-latgraphs
- @${MV} ${WRKSRC}/scripts/create-all-summaries foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/create-all-summaries
- @${MV} ${WRKSRC}/scripts/gen-analysis foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/gen-analysis
- @${MV} ${WRKSRC}/scripts/gen-latgraph foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/gen-latgraph
- @${MV} ${WRKSRC}/scripts/gen-summary foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/gen-summary
- @${MV} ${WRKSRC}/scripts/interactive-setup foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/interactive-setup
- @${MV} ${WRKSRC}/scripts/maindriver foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/maindriver
- @${MV} ${WRKSRC}/Results/Makefile foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/Results/Makefile
- @${RM} -f foo
- @chmod 0755 ${WRKSRC}/scripts/*
+ @cd ${WRKSRC}; \
+ for f in scripts/create-all-analyses \
+ scripts/create-all-latgraphs \
+ scripts/create-all-summaries scripts/gen-analysis \
+ scripts/gen-latgraph scripts/gen-summary \
+ scripts/interactive-setup scripts/maindriver \
+ Results/Makefile; do \
+ ${MV} $$f $$f.in; \
+ ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' $$f.in > $$f; \
+ done
+ @/bin/chmod 0755 ${WRKSRC}/scripts/*
do-install:
@${SETENV} PREFIX=${PREFIX} WRKSRC=${WRKSRC} ${SCRIPTDIR}/do-install