171e025b4a
In the vast majority of cases, nothing has changed (i.e. .tgz, .tar.gz, and .tar.bz2). EXTRACT_USING_PAX can be set as before. For custom extractions, instead of using EXTRACT_BEFORE_ARGS, EXTRACT_AFTER_ARGS and EXTRACT_CMD, simply set EXTRACT_CMD to be the command needed to decompress and extract the lements from the archive. ${DOWNLOADED_DISTFILE} can be used to reference the distfile(s). e.g. for compressed shars, where previously there was: EXTRACT_CMD= ${GZCAT} EXTRACT_BEFORE_ARGS= EXTRACT_AFTER_ARGS= |sh now use: EXTRACT_CMD= ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SH}
27 lines
710 B
Makefile
27 lines
710 B
Makefile
# $NetBSD: Makefile,v 1.6 1999/04/01 14:07:53 agc Exp $
|
|
|
|
DISTNAME= paranoia
|
|
PKGNAME= paranoia-960101
|
|
CATEGORIES= benchmarks
|
|
MASTER_SITES= http://www.netlib.org/paranoia/
|
|
EXTRACT_SUFX= .c
|
|
|
|
MAINTAINER= root@garbled.net
|
|
|
|
NO_WRKSUBDIR= yes
|
|
EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} ${WRKSRC}
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} ; ${CC} -ffloat-store -o paranoia paranoia.c -lm)
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/paranoia ${PREFIX}/bin
|
|
|
|
benchmark:
|
|
@(cd ${WRKSRC}; ./paranoia < ${FILESDIR}/paranoia.run | tee paranoia.out)
|
|
|
|
results:
|
|
-@${MKDIR} /tmp/benches/`domainname`
|
|
-@cp ${WRKSRC}/paranoia.out /tmp/benches/`domainname`/paranoia.`uname`-`uname -m`-`uname -r`.`hostname`
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|