freebsd-ports/benchmarks/unixbench/Makefile
Akinori MUSHA 8fdfd13285 Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.

Use command macros where appropriate.
2002-01-29 09:39:59 +00:00

37 lines
1.3 KiB
Makefile

# New ports collection makefile for: bytebench
# Date created: 28 December 1995
# Whom: se
#
# $FreeBSD$
#
PORTNAME= bytebench
PORTVERSION= 3.1
CATEGORIES= benchmarks
MASTER_SITES= ftp://ftp.inria.fr/system/benchmark/
EXTRACT_SUFX= .tar.Z
MAINTAINER= se@FreeBSD.org
do-install:
-${MKDIR} $(PREFIX)/lib/bytebench
for f in Makefile README Run doc pgms results testdir; \
do ${CP} -R $(WRKSRC)/$$f $(PREFIX)/lib/bytebench; done
${ECHO_CMD} "#!/bin/sh" > $(PREFIX)/bin/bytebench
${ECHO_CMD} "TMPDIR=\$${TMPDIR-/var/tmp}" >> $(PREFIX)/bin/bytebench
${ECHO_CMD} "RESULTDIR=/tmp" >> $(PREFIX)/bin/bytebench
${ECHO_CMD} "export TMPDIR RESULTDIR" >> $(PREFIX)/bin/bytebench
${ECHO_CMD} "cd $(PREFIX)/lib/bytebench" >> $(PREFIX)/bin/bytebench
${ECHO_CMD} "exec ./Run \"\$$@\"" >> $(PREFIX)/bin/bytebench
${CHMOD} 755 $(PREFIX)/bin/bytebench
${CHMOD} 644 $(PREFIX)/lib/bytebench/Makefile
${CHMOD} 644 $(PREFIX)/lib/bytebench/README
${CHMOD} 755 $(PREFIX)/lib/bytebench/Run
${CHMOD} 755 $(PREFIX)/lib/bytebench/doc
${CHMOD} 755 $(PREFIX)/lib/bytebench/pgms
${CHMOD} 755 $(PREFIX)/lib/bytebench/pgms/*
${CHMOD} 755 $(PREFIX)/lib/bytebench/results
${CHMOD} 755 $(PREFIX)/lib/bytebench/testdir
@${RM} -f ${PREFIX}/lib/bytebench/pgms/*.orig
.include <bsd.port.mk>