aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/libmicro/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-02-08 09:53:38 +0800
committerMartin Wilke <miwi@FreeBSD.org>2013-02-08 09:53:38 +0800
commit54ae6d530120b2a2b46f31288b9e486bab48c14d (patch)
tree35bafbaf0f850d39e23cac85067cc0ebf02aed4c /benchmarks/libmicro/Makefile
parent009b5cd13baa5905762af624eec84f9986f1f729 (diff)
downloadfreebsd-ports-gnome-54ae6d530120b2a2b46f31288b9e486bab48c14d.tar.gz
freebsd-ports-gnome-54ae6d530120b2a2b46f31288b9e486bab48c14d.tar.zst
freebsd-ports-gnome-54ae6d530120b2a2b46f31288b9e486bab48c14d.zip
- Update to 0.4.1
PR: 175025 Submitted by: Ports Fury
Diffstat (limited to 'benchmarks/libmicro/Makefile')
-rw-r--r--benchmarks/libmicro/Makefile56
1 files changed, 32 insertions, 24 deletions
diff --git a/benchmarks/libmicro/Makefile b/benchmarks/libmicro/Makefile
index 005fce72b68e..64a79a8a4afb 100644
--- a/benchmarks/libmicro/Makefile
+++ b/benchmarks/libmicro/Makefile
@@ -1,40 +1,48 @@
-# New ports collection makefile for: libmicro
-# Date created: 2005-08-06
-# Whom: Vsevolod Stakhov <vsevolod@FreeBSD.org>
-#
+# Created by: Vsevolod Stakhov <vsevolod@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= libmicro
-PORTVERSION= 0.4.0
+PORTVERSION= 0.4.1
CATEGORIES= benchmarks
MASTER_SITES= http://hub.opensolaris.org/bin/download/Project+libmicro/Source+Archives/
MAINTAINER= ports@FreeBSD.org
COMMENT= Set of utilities to benchmark productivity of system calls
+LICENSE= CDDL
+
+WRKSRC= ${WRKDIR}/libMicro-${PORTVERSION}
+
USE_GMAKE= yes
+MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
+
CFLAGS+= ${PTHREAD_CFLAGS}
-MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
-WRKSRC= ${WRKDIR}/libMicro-${PORTVERSION}
-PLIST_SUB= ARCH=${ARCH}
-# Do not strip binaries
-STRIP=
+STRIP= # Do not strip binaries
+
+PLIST_SUB= ARCH="${ARCH}"
+
+PKGLIBDIR= ${PREFIX}/lib/${PORTNAME}
+
+post-build:
+ @${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/libmicro-bench
+ @${ECHO_CMD} '(cd ${PKGLIBDIR} && ./bench $$1)' >> ${WRKDIR}/libmicro-bench.sh
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
+ (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>