openbsd-ports/benchmarks/bytebench/Makefile

34 lines
1.2 KiB
Makefile
Raw Normal View History

1998-10-07 00:28:28 -04:00
# $OpenBSD: Makefile,v 1.3 1998/10/07 04:31:41 marc Exp $
1997-12-01 20:41:23 -05:00
#
DISTNAME= bytebench-3.1
CATEGORIES= benchmarks
MAINTAINER= angelos@openbsd.org
1998-10-07 00:28:28 -04:00
MASTER_SITES= ftp://ftp.inria.fr/system/benchmark/
EXTRACT_SUFX= .tar.Z
1997-12-01 20:41:23 -05:00
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 "#!/bin/sh" > $(PREFIX)/bin/bytebench
echo "TMPDIR=\$${TMPDIR-/var/tmp}" >> $(PREFIX)/bin/bytebench
echo "RESULTDIR=/tmp" >> $(PREFIX)/bin/bytebench
echo "export TMPDIR RESULTDIR" >> $(PREFIX)/bin/bytebench
echo "cd $(PREFIX)/lib/bytebench" >> $(PREFIX)/bin/bytebench
echo "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/*
${RM} -f $(PREFIX)/lib/bytebench/pgms/*.orig
1997-12-01 20:41:23 -05:00
chmod 755 $(PREFIX)/lib/bytebench/results
chmod 755 $(PREFIX)/lib/bytebench/testdir
.include <bsd.port.mk>