blob: cf8dd4457a64261190ad3016add6bd3b54aa028e (
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
47
48
49
50
|
# Created by: Vsevolod Stakhov <vsevolod@FreeBSD.org>
# $FreeBSD$
PORTNAME= libmicro
PORTVERSION= 0.4.1
CATEGORIES= benchmarks
MASTER_SITES= http://hub.opensolaris.org/bin/download/Project+libmicro/Source+Archives/ \
LOCAL/bdrewery/${PORTNAME}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Set of utilities to benchmark productivity of system calls
LICENSE= CDDL
WRKSRC= ${WRKDIR}/libMicro-${PORTVERSION}
USES= gmake
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
CFLAGS+= ${PTHREAD_CFLAGS}
STRIP= # Do not strip binaries
PLIST_SUB= ARCH="${ARCH}"
PKGLIBDIR= ${PREFIX}/lib/${PORTNAME}
NO_STAGE= yes
post-build:
@${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/libmicro-bench
@${ECHO_CMD} '(cd ${PKGLIBDIR} && ./bench $$1)' >> ${WRKDIR}/libmicro-bench.sh
do-install:
(cd ${WRKDIR} && ${INSTALL_SCRIPT} libmicro-bench.sh \
${PREFIX}/bin/libmicro-bench)
(cd ${WRKSRC} && ${INSTALL_SCRIPT} multiview.sh \
${PREFIX}/bin/multiview)
@${MKDIR} ${PKGLIBDIR}
(cd ${WRKSRC} && ${INSTALL_SCRIPT} bench.sh \
${PKGLIBDIR}/bench)
@${MKDIR} ${PKGLIBDIR}/bin-${ARCH}
(cd ${WRKSRC}/bin-${ARCH} \
&& ${INSTALL_PROGRAM} exec_bin ${PKGLIBDIR}/bin-${ARCH})
(cd ${WRKSRC}/bin ; for i in * ; do ${INSTALL_PROGRAM} \
${WRKSRC}/bin-${ARCH}/$$i ${PKGLIBDIR}/bin-${ARCH} ; done)
@${MKDIR} ${PKGLIBDIR}/bin
(cd ${PKGLIBDIR}/bin-${ARCH} ; for i in * ; do ${LN} -s \
../bin-${ARCH}/$$i ../bin ; done)
.include <bsd.port.mk>
|