Sun Nov 6 00:03:27 2011 UTC ()
PR#45500 benchmarks/libmicro: Add DragonFly support

This commit fixes the run-libmicro command which was broken for all
platforms.  It was pointing at the destdir version instead of the
installed version.

It also provides a DragonFly-specific makefile which enables it to
build and run on DragonFly.


(marino)
diff -r1.1.1.1 -r1.2 pkgsrc/benchmarks/libmicro/distinfo
diff -r1.1.1.1 -r1.2 pkgsrc/benchmarks/libmicro/files/run-libmicro
diff -r0 -r1.1 pkgsrc/benchmarks/libmicro/patches/patch-al

cvs diff -r1.1.1.1 -r1.2 pkgsrc/benchmarks/libmicro/distinfo (expand / switch to unified diff)

--- pkgsrc/benchmarks/libmicro/distinfo 2009/11/22 00:45:54 1.1.1.1
+++ pkgsrc/benchmarks/libmicro/distinfo 2011/11/06 00:03:27 1.2
@@ -1,16 +1,17 @@ @@ -1,16 +1,17 @@
1$NetBSD: distinfo,v 1.1.1.1 2009/11/22 00:45:54 jym Exp $ 1$NetBSD: distinfo,v 1.2 2011/11/06 00:03:27 marino Exp $
2 2
3SHA1 (libmicro-0.4.0.tar.gz) = bf73af51610f08c9fb50025beb3ee86718a11596 3SHA1 (libmicro-0.4.0.tar.gz) = bf73af51610f08c9fb50025beb3ee86718a11596
4RMD160 (libmicro-0.4.0.tar.gz) = 5d844892cbe9fcc77fd3479c54d7135b196a0097 4RMD160 (libmicro-0.4.0.tar.gz) = 5d844892cbe9fcc77fd3479c54d7135b196a0097
5Size (libmicro-0.4.0.tar.gz) = 48858 bytes 5Size (libmicro-0.4.0.tar.gz) = 48858 bytes
6SHA1 (patch-aa) = e322da8461bfcc94834593725ffd58672972eb97 6SHA1 (patch-aa) = e322da8461bfcc94834593725ffd58672972eb97
7SHA1 (patch-ab) = 73d29b9b236b91debdb5300bc2e2d3ddaa118106 7SHA1 (patch-ab) = 73d29b9b236b91debdb5300bc2e2d3ddaa118106
8SHA1 (patch-ac) = 9122460e392d57be14257ee379ce79e680c88434 8SHA1 (patch-ac) = 9122460e392d57be14257ee379ce79e680c88434
9SHA1 (patch-ad) = 1fb254250a40ec35c05c3653145c8bb4d5d78d77 9SHA1 (patch-ad) = 1fb254250a40ec35c05c3653145c8bb4d5d78d77
10SHA1 (patch-ae) = be1c805cf631912e76fbeced5b42fe0b92054b96 10SHA1 (patch-ae) = be1c805cf631912e76fbeced5b42fe0b92054b96
11SHA1 (patch-af) = 78cbd223f462ce5854539b08fd26184cf97d8282 11SHA1 (patch-af) = 78cbd223f462ce5854539b08fd26184cf97d8282
12SHA1 (patch-ag) = fdec73e5d55ea0c594e77c920f985a5c3a3f5768 12SHA1 (patch-ag) = fdec73e5d55ea0c594e77c920f985a5c3a3f5768
13SHA1 (patch-ah) = 7507bded72b5db04dc7c61cd3498b0cbf793f69c 13SHA1 (patch-ah) = 7507bded72b5db04dc7c61cd3498b0cbf793f69c
14SHA1 (patch-ai) = af43c6061b1dd4b36cbe25887414580ca648b8e2 14SHA1 (patch-ai) = af43c6061b1dd4b36cbe25887414580ca648b8e2
15SHA1 (patch-aj) = 6142d17c1d1a461bf114319e0ebcc5a516dab486 15SHA1 (patch-aj) = 6142d17c1d1a461bf114319e0ebcc5a516dab486
16SHA1 (patch-ak) = f44b5e9c8d2182873978af9396ffc3e513ce6af8 16SHA1 (patch-ak) = f44b5e9c8d2182873978af9396ffc3e513ce6af8
 17SHA1 (patch-al) = f43cfaef97f9c99a9225823e3dfb318b6707762f

cvs diff -r1.1.1.1 -r1.2 pkgsrc/benchmarks/libmicro/files/run-libmicro (expand / switch to unified diff)

--- pkgsrc/benchmarks/libmicro/files/run-libmicro 2009/11/22 00:45:54 1.1.1.1
+++ pkgsrc/benchmarks/libmicro/files/run-libmicro 2011/11/06 00:03:27 1.2
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
1#! /bin/sh 1#! /bin/sh
2 2
3cd @@DESTDIR@@/@@PREFIX@@/libexec/@@PKGBASE@@ 3cd @@PREFIX@@/libexec/@@PKGBASE@@
4./bench 4./bench

File Added: pkgsrc/benchmarks/libmicro/patches/patch-al
$NetBSD: patch-al,v 1.1 2011/11/06 00:03:27 marino Exp $

--- /dev/null	2011-11-05 23:36:35.729938736 +0000
+++ Makefile.DragonFly
@@ -0,0 +1,45 @@
+#
+# 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 -D_REENTRANT
+MATHLIB=	-lm
+THIS_ARCH:=	$(shell /usr/bin/uname -m)
+
+ELIDED_BENCHMARKS=	atomic cachetocache
+
+ifeq ($(THIS_ARCH),x86_64)
+ELIDED_BENCHMARKS+=	getcontext setcontext
+endif
+
+include ../Makefile.com