freebsd-ports/benchmarks/libmicro/Makefile
Vsevolod Stakhov 0f17a23c50 Add libmicro - a set of portable benchmarks of system calls from
opensolaris project.

Approved by:		perky (mentor)
In collaboration with:	gnn
2005-08-28 09:05:53 +00:00

46 lines
1.3 KiB
Makefile

# New ports collection makefile for: libmicro
# Date created: 2005-08-06
# Whom: Vsevolod Stakhov <vsevolod@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libmicro
PORTVERSION= 0.3.0
CATEGORIES= benchmarks
MASTER_SITES= http://opensolaris.org/os/community/performance/libmicro/
MAINTAINER= vsevolod@FreeBSD.org
COMMENT= Set of utilities to benchmark productivity of system calls
USE_GMAKE= yes
CFLAGS+= ${PTHREAD_CFLAGS}
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
WRKSRC= ${WRKDIR}/libMicro-${PORTVERSION}
PLIST_SUB= ARCH=${ARCH}
# Do not strip binaries
STRIP=
.include <bsd.port.pre.mk>
.if ${OSVERSION} <= 500036
EXTRA_PATCHES= ${FILESDIR}/extra-patch-ucontext
.endif
do-install:
${MKDIR} ${DATADIR}
${MKDIR} ${DATADIR}/bin
${MKDIR} ${DATADIR}/bin-${ARCH}
( cd ${WRKSRC}/bin ; for i in * ; do \
${INSTALL_PROGRAM} ${WRKSRC}/bin-${ARCH}/$$i ${DATADIR}/bin-${ARCH} ; done )
${INSTALL_PROGRAM} ${WRKSRC}/bin-${ARCH}/exec_bin ${DATADIR}/bin-${ARCH}
@for i in ${DATADIR}/bin-${ARCH}/* ; do \
${LN} -s $$i ${DATADIR}/bin ; done
${INSTALL_SCRIPT} ${WRKSRC}/bench ${DATADIR}
@${ECHO} '#!/bin/sh' > ${WRKDIR}/libmicro-bench
@${ECHO} '(cd ${DATADIR} && ./bench $$1)' >> ${WRKDIR}/libmicro-bench
${INSTALL_SCRIPT} ${WRKDIR}/libmicro-bench ${PREFIX}/bin/libmicro-bench
${INSTALL_SCRIPT} ${WRKSRC}/multiview ${PREFIX}/bin/multiview
.include <bsd.port.post.mk>