blob: 2726cb9f8efe4b1d9bf2aa4081cdc49e3bebe9df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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>
|