aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/libmicro/Makefile
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@FreeBSD.org>2005-08-28 09:05:53 +0000
committerVsevolod Stakhov <vsevolod@FreeBSD.org>2005-08-28 09:05:53 +0000
commit0f17a23c50e7d899046eb1edca8558abab5e90c2 (patch)
tree6544766de6b6f7c39659acfab2efff6269c92abb /benchmarks/libmicro/Makefile
parent72546e991e170be9015639d870c6ac50f6f36d0b (diff)
downloadports-0f17a23c50e7d899046eb1edca8558abab5e90c2.tar.gz
ports-0f17a23c50e7d899046eb1edca8558abab5e90c2.zip
Add libmicro - a set of portable benchmarks of system calls from
opensolaris project. Approved by: perky (mentor) In collaboration with: gnn
Notes
Notes: svn path=/head/; revision=141057
Diffstat (limited to 'benchmarks/libmicro/Makefile')
-rw-r--r--benchmarks/libmicro/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/benchmarks/libmicro/Makefile b/benchmarks/libmicro/Makefile
new file mode 100644
index 000000000000..2726cb9f8efe
--- /dev/null
+++ b/benchmarks/libmicro/Makefile
@@ -0,0 +1,46 @@
+# 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>