summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2011-11-06 00:03:27 +0000
committermarino <marino@pkgsrc.org>2011-11-06 00:03:27 +0000
commite0be08991bd16a49b8b8d68ab9a9ff33efd37d79 (patch)
tree1e0970e8ba1e00f4b92edb6ed0762e514957a5a9 /benchmarks
parent540fb3251459ebf6512e7704816fe0cb54963b99 (diff)
downloadpkgsrc-e0be08991bd16a49b8b8d68ab9a9ff33efd37d79.tar.gz
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.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/libmicro/distinfo3
-rwxr-xr-xbenchmarks/libmicro/files/run-libmicro2
-rw-r--r--benchmarks/libmicro/patches/patch-al50
3 files changed, 53 insertions, 2 deletions
diff --git a/benchmarks/libmicro/distinfo b/benchmarks/libmicro/distinfo
index f6e687f9efc..8b0070f92db 100644
--- a/benchmarks/libmicro/distinfo
+++ b/benchmarks/libmicro/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2009/11/22 00:45:54 jym Exp $
+$NetBSD: distinfo,v 1.2 2011/11/06 00:03:27 marino Exp $
SHA1 (libmicro-0.4.0.tar.gz) = bf73af51610f08c9fb50025beb3ee86718a11596
RMD160 (libmicro-0.4.0.tar.gz) = 5d844892cbe9fcc77fd3479c54d7135b196a0097
@@ -14,3 +14,4 @@ SHA1 (patch-ah) = 7507bded72b5db04dc7c61cd3498b0cbf793f69c
SHA1 (patch-ai) = af43c6061b1dd4b36cbe25887414580ca648b8e2
SHA1 (patch-aj) = 6142d17c1d1a461bf114319e0ebcc5a516dab486
SHA1 (patch-ak) = f44b5e9c8d2182873978af9396ffc3e513ce6af8
+SHA1 (patch-al) = f43cfaef97f9c99a9225823e3dfb318b6707762f
diff --git a/benchmarks/libmicro/files/run-libmicro b/benchmarks/libmicro/files/run-libmicro
index 22a3925d977..489da7746fa 100755
--- a/benchmarks/libmicro/files/run-libmicro
+++ b/benchmarks/libmicro/files/run-libmicro
@@ -1,4 +1,4 @@
#! /bin/sh
-cd @@DESTDIR@@/@@PREFIX@@/libexec/@@PKGBASE@@
+cd @@PREFIX@@/libexec/@@PKGBASE@@
./bench
diff --git a/benchmarks/libmicro/patches/patch-al b/benchmarks/libmicro/patches/patch-al
new file mode 100644
index 00000000000..ab38a987233
--- /dev/null
+++ b/benchmarks/libmicro/patches/patch-al
@@ -0,0 +1,50 @@
+$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