pkgsrc/benchmarks/nettest/patches/patch-aa
dholland c3c459e4e5 Add builds for OpenBSD, Bitrig, and MacOS. Treat them all like NetBSD for
now; MacOS might turn out to need its own stanza.
2015-11-07 20:07:07 +00:00

51 lines
1.3 KiB
Text

$NetBSD: patch-aa,v 1.7 2015/11/07 20:07:07 dholland Exp $
- uname might be in /usr/bin
- add configury for modern OSes
--- Makefile.orig 1992-11-05 22:03:14.000000000 +0000
+++ Makefile
@@ -3,10 +3,8 @@ MAKE=make
FILES=README Makefile nettest.h nettest.c nettestd.c nettest.8
all:
- @if [ -f /bin/hostname -o -f /usr/bin/hostname ]; then \
- $(MAKE) `hostname`; \
- elif [ -f /bin/uname ]; then \
- $(MAKE) `uname -n`; \
+ @if [ -f /bin/uname -o -f /usr/bin/uname ]; then \
+ $(MAKE) `uname -s`; \
else \
echo You must specify what machine you are on,;\
echo e.g. \"make sun\", \"make cray2\", \"make pyramid\", \"make xmp\";\
@@ -33,6 +31,30 @@ unicos60 unicos61:
DEFINES="-DWAIT3CODE -DNO_ISO" \
LIBS="" OPT="-O"
+IRIX IRIX64:
+ $(MAKE) objs \
+ INCLUDE="-I." \
+ DEFINES="-DWAIT3CODE -DNONVOID_SETPGRP -DNAMEDPIPES -DNO_ISO" \
+ LIBS="" OPT="-O"
+
+Linux:
+ $(MAKE) objs \
+ INCLUDE="-I." \
+ DEFINES="-DWAIT3CODE -DNAMEDPIPES -DNO_ISO" \
+ LIBS="" OPT="-O"
+
+SunOS:
+ $(MAKE) objs \
+ INCLUDE="-I." \
+ DEFINES="-DSYSV -DWAIT3CODE -DNAMEDPIPES -DNO_ISO" \
+ LIBS="-lsocket -lnsl" OPT="-O"
+
+NetBSD FreeBSD DragonFly OpenBSD Bitrig Darwin:
+ $(MAKE) objs \
+ INCLUDE="" \
+ DEFINES="-DWAIT3CODE -DBSD44 -DNAMEDPIPES -DNO_ISO -DNONVOID_SETPGRP" \
+ OPT="-O" LIBS="-lcompat"
+
4.4alpha:
$(MAKE) objs \
INCLUDE="" \