diff options
author | agc <agc@pkgsrc.org> | 1998-11-16 11:27:54 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-11-16 11:27:54 +0000 |
commit | b1c9320e3520f4ce523d41b4321246073eea6a14 (patch) | |
tree | d47d36da9aab1600ebb537c3892a958e681a2fbc /benchmarks/hbench/Makefile | |
parent | 7c0be4bb966def3642fc42e846148cc68fea1526 (diff) | |
download | pkgsrc-b1c9320e3520f4ce523d41b4321246073eea6a14.tar.gz |
Do the PLIST substitutions more efficiently, and use the new OS_VERSION
substitution when compiling the PLIST. Eliminate the unnecessary command
execution from the package Makefile, which was incorrect.
Diffstat (limited to 'benchmarks/hbench/Makefile')
-rw-r--r-- | benchmarks/hbench/Makefile | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/benchmarks/hbench/Makefile b/benchmarks/hbench/Makefile index ce6cdf213ff..fcaf90eb854 100644 --- a/benchmarks/hbench/Makefile +++ b/benchmarks/hbench/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 1998/11/12 16:15:29 agc Exp $ +# $NetBSD: Makefile,v 1.5 1998/11/16 11:27:54 agc Exp $ DISTNAME= hbench-OS-1.0 PKGNAME= hbench-1.0 @@ -13,19 +13,16 @@ DEPENDS+= gnuplot-3.5:../../graphics/gnuplot ALL_TARGET= build USE_PERL5= yes 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 \ - extrafiles=${PKGDIR}/PLIST.i386; \ - else \ - extrafiles=""; \ + @machfiles=""; \ + if [ ${MACHINE} = i386 ]; then \ + machfiles="$$machfiles ${PKGDIR}/PLIST.i386"; \ fi ; \ - ${CAT} ${PKGDIR}/PLIST.md $$extrafiles ${PKGDIR}/PLIST.common | \ - ${SED} -e 's@XXXNETBSDVERXXX@${NETBSDVER}@' > ${PLIST_SRC} + ${CAT} ${PKGDIR}/PLIST.md $$machfiles ${PKGDIR}/PLIST.common | \ + ${SED} -e 's|@OPSYS@|'`${ECHO} ${OPSYS} | ${TR} '[A-Z]' '[a-z]'`'|g' > ${PLIST_SRC} post-configure: @cd ${WRKSRC}; \ |