aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/libmicro/Makefile
blob: cc7a9d9decd43635d750a7b18f261b02f3fb3fbd (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
# New ports collection makefile for:    libmicro
# Date created:     2005-08-06
# Whom:         Vsevolod Stakhov <vsevolod@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   libmicro
PORTVERSION=    0.4.0
CATEGORIES= benchmarks
MASTER_SITES=   http://opensolaris.org/os/project/libmicro/files/

MAINTAINER= ports@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=

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.mk>