pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/benchmarks/dbench Make compile on Solaris. From Jonath...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d1699f6a998e
branches:  trunk
changeset: 461726:d1699f6a998e
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Sep 19 18:08:14 2003 +0000

description:
Make compile on Solaris. From Jonathan Perkin in PR 22858.

diffstat:

 benchmarks/dbench/Makefile         |   9 +++++++--
 benchmarks/dbench/distinfo         |   4 ++--
 benchmarks/dbench/patches/patch-ab |  32 ++++++++++++++++++++++++++------
 3 files changed, 35 insertions(+), 10 deletions(-)

diffs (81 lines):

diff -r 4deaa35803e5 -r d1699f6a998e benchmarks/dbench/Makefile
--- a/benchmarks/dbench/Makefile        Fri Sep 19 18:06:34 2003 +0000
+++ b/benchmarks/dbench/Makefile        Fri Sep 19 18:08:14 2003 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2003/07/17 21:24:38 grant Exp $
+# $NetBSD: Makefile,v 1.3 2003/09/19 18:08:14 wiz Exp $
 #
 
 DISTNAME=      dbench-1.3
+WRKSRC=                ${WRKDIR}/dbench
 CATEGORIES=    benchmarks
 MASTER_SITES=  ftp://dnuc.polyn.kiae.su/pub/dbench/
 
@@ -9,7 +10,11 @@
 HOMEPAGE=      http://samba.org/ftp/tridge/dbench/README
 COMMENT=       Simulation of the Ziff-Davis netbench benchmark
 
-WRKSRC=                ${WRKDIR}/dbench
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+MAKE_ENV+=     DB_LDFLAGS="-lrt" TB_LDFLAGS="-lsocket -lnsl"
+.endif
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/dbench ${PREFIX}/bin/dbench
diff -r 4deaa35803e5 -r d1699f6a998e benchmarks/dbench/distinfo
--- a/benchmarks/dbench/distinfo        Fri Sep 19 18:06:34 2003 +0000
+++ b/benchmarks/dbench/distinfo        Fri Sep 19 18:08:14 2003 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/07/17 15:11:44 agc Exp $
+$NetBSD: distinfo,v 1.2 2003/09/19 18:08:14 wiz Exp $
 
 SHA1 (dbench-1.3.tar.gz) = b46f72ac0a81acf7a0f368e20e5d83ee3932a35a
 Size (dbench-1.3.tar.gz) = 266746 bytes
 SHA1 (patch-aa) = 1c34848d3ce3294a1ae228243ff6fcae8a874826
-SHA1 (patch-ab) = 3d0d79e1542368d63534b994cb96fb0602acca24
+SHA1 (patch-ab) = 63d2fd91fcd1e282179ba10c9d6ae06e89f6b945
diff -r 4deaa35803e5 -r d1699f6a998e benchmarks/dbench/patches/patch-ab
--- a/benchmarks/dbench/patches/patch-ab        Fri Sep 19 18:06:34 2003 +0000
+++ b/benchmarks/dbench/patches/patch-ab        Fri Sep 19 18:08:14 2003 +0000
@@ -1,13 +1,33 @@
-$NetBSD: patch-ab,v 1.1.1.1 2003/07/17 15:11:44 agc Exp $
+$NetBSD: patch-ab,v 1.2 2003/09/19 18:08:16 wiz Exp $
 
---- Makefile   2003/07/17 14:51:51     1.1
-+++ Makefile   2003/07/17 14:52:17
-@@ -2,7 +2,7 @@
+--- Makefile.orig      Mon Sep 10 05:21:01 2001
++++ Makefile   Fri Sep 19 16:06:02 2003
+@@ -1,8 +1,8 @@
+ VERSION = 1.2.01
  
- CC = gcc
- CFLAGS = -O2 -Wall 
+-CC = gcc
+-CFLAGS = -O2 -Wall 
 -CPPFLAGS = "-DVERSION=\"$(VERSION)\""
++#CC = gcc
++#CFLAGS = -O2 -Wall 
 +CPPFLAGS = "-DVERSION=\"$(VERSION)\"" -DPREFIX='"${PREFIX}"'
  
  DB_OBJS = fileio.o util.o dbench.o child.o
  TB_OBJS = sockio.o util.o dbench.o child.o socklib.o
+@@ -11,13 +11,13 @@
+ all: dbench tbench tbench_srv
+ 
+ dbench: $(DB_OBJS)
+-      $(CC) -o $@ $(DB_OBJS)
++      $(CC) -o $@ $(DB_OBJS) $(DB_LDFLAGS)
+ 
+ tbench: $(TB_OBJS)
+-      $(CC) -o $@ $(TB_OBJS)
++      $(CC) -o $@ $(TB_OBJS) $(TB_LDFLAGS)
+ 
+ tbench_srv: $(SRV_OBJS)
+-      $(CC) -o $@ $(SRV_OBJS)
++      $(CC) -o $@ $(SRV_OBJS) $(TB_LDFLAGS)
+ 
+ clean:
+       rm -f *.o *~ dbench tbench tbench_srv



Home | Main Index | Thread Index | Old Index