Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+20 -14
View File
@@ -1,21 +1,21 @@
# $NetBSD: Makefile,v 1.3 2012/09/11 22:37:13 asau Exp $
# $NetBSD: Makefile,v 1.5 2015/11/07 20:54:17 dholland Exp $
#
DISTNAME= libmicro-${LIBMICRO_VERSION}
CATEGORIES= benchmarks
MASTER_SITES= http://hub.opensolaris.org/bin/download/Project+libmicro/Source+Archives/
LIBMICRO_VERSION= 0.4.0
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://hub.opensolaris.org/bin/view/Project+libmicro/
COMMENT= Set of utilities to benchmark productivity of system calls
LICENSE= cddl-1.0
LIBMICRO_VERSION= 0.4.0
WRKSRC= ${WRKDIR}/libMicro-${LIBMICRO_VERSION}
USE_TOOLS= gmake tee
USE_TOOLS+= gmake tee
BUILD_TARGET= default
INSTALLATION_DIRS= bin
@@ -29,23 +29,29 @@ SUBST_CLASSES+= fix-arch
SUBST_MESSAGE.fix-arch= Fix machine architecture path
SUBST_STAGE.fix-arch= pre-configure
SUBST_FILES.fix-arch= Makefile bench.sh wrapper.sh
SUBST_SED.fix-arch= -e 's|@@MACHINE_ARCH@@|${MACHINE_ARCH:Q}|'
SUBST_SED.fix-arch= -e 's|@@MACHINE_ARCH@@|${MACHINE_ARCH}|'
post-patch:
cd ${WRKSRC} && ${LN} -s Makefile.NetBSD Makefile.OpenBSD
cd ${WRKSRC} && ${LN} -s Makefile.NetBSD Makefile.Bitrig
cd ${WRKSRC} && ${LN} -s Makefile.DragonFly Makefile.FreeBSD
post-build:
${SED} -e 's|@@DESTDIR@@|${DESTDIR:Q}|' \
-e 's|@@PREFIX@@|${PREFIX:Q}|' \
-e 's|@@PKGBASE@@|${PKGBASE:Q}|' \
${SED} -e 's|@@DESTDIR@@|${DESTDIR}|' \
-e 's|@@PREFIX@@|${PREFIX}|' \
-e 's|@@PKGBASE@@|${PKGBASE}|' \
${FILESDIR}/run-libmicro > ${WRKDIR}/run-libmicro
do-install:
cd ${WRKSRC}/bin; \
set -e; cd ${WRKSRC}/bin; \
for f in *; do \
${INSTALL_PROGRAM} ${WRKSRC}/bin-${MACHINE_ARCH}/$$f \
${INSTALL_PROGRAM} ${WRKSRC}/bin-${MACHINE_ARCH}/"$$f" \
${DESTDIR}${LIBMICRO_BASE}/bin-${MACHINE_ARCH}; \
done
set -e; \
cd ${DESTDIR}${LIBMICRO_BASE}/bin-${MACHINE_ARCH}; \
for f in *; do \
${LN} -s ../wrapper ../bin/$$f; \
${LN} -s ../wrapper ../bin/"$$f"; \
done
${INSTALL_PROGRAM} ${WRKSRC}/bin-${MACHINE_ARCH}/exec_bin \
${DESTDIR}${LIBMICRO_BASE}/bin-${MACHINE_ARCH}
@@ -59,11 +65,11 @@ do-install:
${DESTDIR}${PREFIX}/bin
benchmark:
cd ${WRKSRC}; ./bench | ${TEE} libmicro.output
cd ${WRKSRC} && ./bench | ${TEE} libmicro.output
results:
${MKDIR} /tmp/benches/`domainname`
cd ${WRKSRC}; \
cd ${WRKSRC} && \
./multiview libmicro.output > /tmp/benches/`domainname`/libmicro.`uname`-`uname -m`-`uname -r`.`hostname`.html
.include "../../mk/pthread.buildlink3.mk"
+3 -1
View File
@@ -1,8 +1,10 @@
$NetBSD: distinfo,v 1.2 2011/11/06 00:03:27 marino Exp $
$NetBSD: distinfo,v 1.4 2015/11/07 20:01:32 dholland Exp $
SHA1 (libmicro-0.4.0.tar.gz) = bf73af51610f08c9fb50025beb3ee86718a11596
RMD160 (libmicro-0.4.0.tar.gz) = 5d844892cbe9fcc77fd3479c54d7135b196a0097
SHA512 (libmicro-0.4.0.tar.gz) = 7623b0f36b78d704dcdd843b54c9e3bc9f816c11bfbde536717d7219c25f38d9c41dae0fa80ace4fc89b9c22b5b0bcd379efa2fe16bc90b7981f77b35973578e
Size (libmicro-0.4.0.tar.gz) = 48858 bytes
SHA1 (patch-Makefile.Darwin) = 6d166ec3ece56562878aef367c7de98c3c15f017
SHA1 (patch-aa) = e322da8461bfcc94834593725ffd58672972eb97
SHA1 (patch-ab) = 73d29b9b236b91debdb5300bc2e2d3ddaa118106
SHA1 (patch-ac) = 9122460e392d57be14257ee379ce79e680c88434
@@ -0,0 +1,48 @@
$NetBSD: patch-Makefile.Darwin,v 1.1 2015/11/07 20:01:32 dholland Exp $
Build for MacOS.
--- /dev/null 2009-11-14 23:45:08.000000000 +0100
+++ Makefile.Darwin
@@ -0,0 +1,41 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms
+# of the Common Development and Distribution License
+# (the "License"). You may not use this file except
+# in compliance with the License.
+#
+# You can obtain a copy of the license at
+# src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing
+# permissions and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL
+# HEADER in each file and include the License file at
+# usr/src/OPENSOLARIS.LICENSE. If applicable,
+# add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your
+# own identifying information: Portions Copyright [yyyy]
+# [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+
+CC= gcc
+
+#CFLAGS= -O -DUSE_SEMOP
+#CPPFLAGS= -DUSE_SEMOP
+MATHLIB= -lm
+
+#ELIDED_BENCHMARKS= \
+# cachetocache
+
+include ../Makefile.com