summaryrefslogtreecommitdiff
path: root/x11/xpns/patches
diff options
context:
space:
mode:
Diffstat (limited to 'x11/xpns/patches')
-rw-r--r--x11/xpns/patches/patch-aa5
-rw-r--r--x11/xpns/patches/patch-ab14
-rw-r--r--x11/xpns/patches/patch-celldel_c14
-rw-r--r--x11/xpns/patches/patch-cellein_c14
-rw-r--r--x11/xpns/patches/patch-cellget_c14
-rw-r--r--x11/xpns/patches/patch-cellmisc_c14
-rw-r--r--x11/xpns/patches/patch-cellorg_c14
-rw-r--r--x11/xpns/patches/patch-cellrefr_c14
-rw-r--r--x11/xpns/patches/patch-filekaio_c14
-rw-r--r--x11/xpns/patches/patch-filesteio_c15
-rw-r--r--x11/xpns/patches/patch-filetraio_c14
-rw-r--r--x11/xpns/patches/patch-hadelmisc_c14
-rw-r--r--x11/xpns/patches/patch-hakasete_c14
-rw-r--r--x11/xpns/patches/patch-halook_c15
-rw-r--r--x11/xpns/patches/patch-harefreshx_c14
-rw-r--r--x11/xpns/patches/patch-hi_c14
-rw-r--r--x11/xpns/patches/patch-kaio_c14
-rw-r--r--x11/xpns/patches/patch-simbreak_c14
-rw-r--r--x11/xpns/patches/patch-simget_c29
-rw-r--r--x11/xpns/patches/patch-steio_c14
-rw-r--r--x11/xpns/patches/patch-traio_c15
21 files changed, 297 insertions, 6 deletions
diff --git a/x11/xpns/patches/patch-aa b/x11/xpns/patches/patch-aa
index 1ab484aa40b..f51a7878181 100644
--- a/x11/xpns/patches/patch-aa
+++ b/x11/xpns/patches/patch-aa
@@ -1,4 +1,7 @@
-$NetBSD: patch-aa,v 1.5 2000/09/03 14:56:28 wiz Exp $
+$NetBSD: patch-aa,v 1.6 2012/06/16 04:00:54 dholland Exp $
+
+Configure for pkgsrc.
+
--- makefile.orig Wed Jul 14 04:05:14 1993
+++ makefile Tue Apr 25 21:02:22 2000
@@ -7,19 +7,19 @@
diff --git a/x11/xpns/patches/patch-ab b/x11/xpns/patches/patch-ab
index c3e65294976..3c176c6d1a9 100644
--- a/x11/xpns/patches/patch-ab
+++ b/x11/xpns/patches/patch-ab
@@ -1,15 +1,19 @@
-$NetBSD: patch-ab,v 1.2 1998/08/07 11:18:29 agc Exp $
+$NetBSD: patch-ab,v 1.3 2012/06/16 04:00:54 dholland Exp $
+
+- don't use csh (no reason to)
+- provide correct paths
--- xpns.orig Tue Apr 8 11:27:14 1997
+++ xpns Tue Apr 8 11:29:05 1997
-@@ -1,6 +1,7 @@
+@@ -1,6 +1,8 @@
-#!/bin/tcsh
-setenv XAPPLRESDIR $PWD/
-pns
-+#!/bin/csh
-+setenv XAPPLRESDIR /usr/X11R6/lib/xpns/
++#!/bin/sh
+# Note pns will dump core if environment is not correct
-+/usr/X11R6/lib/xpns/pns
++XAPPLRESDIR=@PREFIX@/lib/xpns/
++export XAPPLRESDIR
++@PREFIX@/lib/xpns/pns
diff --git a/x11/xpns/patches/patch-celldel_c b/x11/xpns/patches/patch-celldel_c
new file mode 100644
index 00000000000..5e4da26034a
--- /dev/null
+++ b/x11/xpns/patches/patch-celldel_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-celldel_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- celldel.c~ 1993-07-14 11:02:14.000000000 +0000
++++ celldel.c
+@@ -17,6 +17,7 @@
+ #include "cellrefr.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+
+ #define CellOListToRList( v) do { \
diff --git a/x11/xpns/patches/patch-cellein_c b/x11/xpns/patches/patch-cellein_c
new file mode 100644
index 00000000000..b5098890092
--- /dev/null
+++ b/x11/xpns/patches/patch-cellein_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-cellein_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- cellein.c~ 1993-07-14 11:02:14.000000000 +0000
++++ cellein.c
+@@ -14,6 +14,7 @@
+ #include "celltype.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+
+ /*************************************************************************
diff --git a/x11/xpns/patches/patch-cellget_c b/x11/xpns/patches/patch-cellget_c
new file mode 100644
index 00000000000..5ab0e3a9c1c
--- /dev/null
+++ b/x11/xpns/patches/patch-cellget_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-cellget_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- cellget.c~ 1993-07-14 11:02:14.000000000 +0000
++++ cellget.c
+@@ -16,6 +16,7 @@
+
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+
+ static OBJECT *pSte, *pTra, *pK;
diff --git a/x11/xpns/patches/patch-cellmisc_c b/x11/xpns/patches/patch-cellmisc_c
new file mode 100644
index 00000000000..bae4b2201e0
--- /dev/null
+++ b/x11/xpns/patches/patch-cellmisc_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-cellmisc_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- cellmisc.c~ 1993-07-14 11:02:13.000000000 +0000
++++ cellmisc.c
+@@ -10,6 +10,7 @@
+ ** DATUM : 14.03.93
+ **
+ *************************************************************************/
++#include <stdlib.h>
+ #include "cellmisc.h"
+ #include "cell.h"
+ #include "misc.h"
diff --git a/x11/xpns/patches/patch-cellorg_c b/x11/xpns/patches/patch-cellorg_c
new file mode 100644
index 00000000000..989aa2f4571
--- /dev/null
+++ b/x11/xpns/patches/patch-cellorg_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-cellorg_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- cellorg.c~ 1993-07-14 11:02:14.000000000 +0000
++++ cellorg.c
+@@ -10,6 +10,7 @@
+ ** DATUM : 14.03.93
+ **
+ *************************************************************************/
++#include <stdlib.h>
+ #include "cellorg.h"
+ #include "celltype.h"
+ #include "ste.h"
diff --git a/x11/xpns/patches/patch-cellrefr_c b/x11/xpns/patches/patch-cellrefr_c
new file mode 100644
index 00000000000..dd8e6f51a18
--- /dev/null
+++ b/x11/xpns/patches/patch-cellrefr_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-cellrefr_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- cellrefr.c~ 1993-07-14 11:02:14.000000000 +0000
++++ cellrefr.c
+@@ -15,6 +15,7 @@
+
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+
+ /*************************************************************************
diff --git a/x11/xpns/patches/patch-filekaio_c b/x11/xpns/patches/patch-filekaio_c
new file mode 100644
index 00000000000..9cfcb1a0d84
--- /dev/null
+++ b/x11/xpns/patches/patch-filekaio_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-filekaio_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- filekaio.c~ 1993-07-14 11:02:10.000000000 +0000
++++ filekaio.c
+@@ -19,6 +19,7 @@
+
+ #include <string.h>
+ #include <stdio.h>
++#include <stdlib.h>
+
+
+
diff --git a/x11/xpns/patches/patch-filesteio_c b/x11/xpns/patches/patch-filesteio_c
new file mode 100644
index 00000000000..5183e33c3fd
--- /dev/null
+++ b/x11/xpns/patches/patch-filesteio_c
@@ -0,0 +1,15 @@
+$NetBSD: patch-filesteio_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- filesteio.c~ 1993-07-14 11:02:09.000000000 +0000
++++ filesteio.c
+@@ -18,7 +18,7 @@
+
+ #include <string.h>
+ #include <stdio.h>
+-
++#include <stdlib.h>
+
+
+
diff --git a/x11/xpns/patches/patch-filetraio_c b/x11/xpns/patches/patch-filetraio_c
new file mode 100644
index 00000000000..b930dc1c878
--- /dev/null
+++ b/x11/xpns/patches/patch-filetraio_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-filetraio_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- filetraio.c~ 1993-07-14 11:02:09.000000000 +0000
++++ filetraio.c
+@@ -10,6 +10,7 @@
+ ** DATUM : 14.03.93
+ **
+ *************************************************************************/
++#include <stdlib.h>
+ #include "filetraio.h"
+ #include "tra.h"
+ #include "misc.h"
diff --git a/x11/xpns/patches/patch-hadelmisc_c b/x11/xpns/patches/patch-hadelmisc_c
new file mode 100644
index 00000000000..d8c2d807702
--- /dev/null
+++ b/x11/xpns/patches/patch-hadelmisc_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-hadelmisc_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- hadelmisc.c~ 1993-07-14 11:02:16.000000000 +0000
++++ hadelmisc.c
+@@ -22,6 +22,7 @@
+ #include "cellget.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+
+ /*************************************************************************
diff --git a/x11/xpns/patches/patch-hakasete_c b/x11/xpns/patches/patch-hakasete_c
new file mode 100644
index 00000000000..de7faa9213b
--- /dev/null
+++ b/x11/xpns/patches/patch-hakasete_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-hakasete_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- hakasete.c~ 1993-07-14 11:02:13.000000000 +0000
++++ hakasete.c
+@@ -10,6 +10,7 @@
+ ** DATUM : 14.03.93
+ **
+ *************************************************************************/
++#include <stdlib.h>
+ #include "hakasete.h"
+ #include "haka.h"
+ #include "haka.H"
diff --git a/x11/xpns/patches/patch-halook_c b/x11/xpns/patches/patch-halook_c
new file mode 100644
index 00000000000..5c4ea2dc998
--- /dev/null
+++ b/x11/xpns/patches/patch-halook_c
@@ -0,0 +1,15 @@
+$NetBSD: patch-halook_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- halook.c~ 1993-07-14 11:02:16.000000000 +0000
++++ halook.c
+@@ -18,7 +18,7 @@
+ #include "stewin.h"
+
+ #include <stdio.h>
+-
++#include <stdlib.h>
+
+
+
diff --git a/x11/xpns/patches/patch-harefreshx_c b/x11/xpns/patches/patch-harefreshx_c
new file mode 100644
index 00000000000..dd7512de21b
--- /dev/null
+++ b/x11/xpns/patches/patch-harefreshx_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-harefreshx_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- harefreshx.c~ 1993-07-14 11:02:16.000000000 +0000
++++ harefreshx.c
+@@ -25,6 +25,7 @@
+ #include "hastename.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #ifdef HALLO
+
diff --git a/x11/xpns/patches/patch-hi_c b/x11/xpns/patches/patch-hi_c
new file mode 100644
index 00000000000..90ee181f8d1
--- /dev/null
+++ b/x11/xpns/patches/patch-hi_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-hi_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- hi.c~ 1993-07-14 11:02:08.000000000 +0000
++++ hi.c
+@@ -22,6 +22,7 @@
+ #include <X11/Xaw/Viewport.h>
+ #include <X11/Xaw/Paned.h>
+ #include <stdio.h>
++#include <stdlib.h>
+
+ Widget HiCom;
+ Widget HiShell;
diff --git a/x11/xpns/patches/patch-kaio_c b/x11/xpns/patches/patch-kaio_c
new file mode 100644
index 00000000000..baff99e6ee7
--- /dev/null
+++ b/x11/xpns/patches/patch-kaio_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-kaio_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- kaio.c~ 1993-07-14 11:02:15.000000000 +0000
++++ kaio.c
+@@ -10,6 +10,7 @@
+ ** DATUM : 14.03.93
+ **
+ *************************************************************************/
++#include <stdlib.h>
+ #include "kaio.h"
+ #include "ka.h"
+ #include "netsize.h"
diff --git a/x11/xpns/patches/patch-simbreak_c b/x11/xpns/patches/patch-simbreak_c
new file mode 100644
index 00000000000..48f5ae6d53d
--- /dev/null
+++ b/x11/xpns/patches/patch-simbreak_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-simbreak_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- simbreak.c~ 1993-07-14 11:02:09.000000000 +0000
++++ simbreak.c
+@@ -10,6 +10,7 @@
+ ** DATUM : 14.03.93
+ **
+ *************************************************************************/
++#include <stdlib.h>
+ #include "simbreak.h"
+ #include "sim.h"
+ #include "celltype.h"
diff --git a/x11/xpns/patches/patch-simget_c b/x11/xpns/patches/patch-simget_c
new file mode 100644
index 00000000000..49f926f9825
--- /dev/null
+++ b/x11/xpns/patches/patch-simget_c
@@ -0,0 +1,29 @@
+$NetBSD: patch-simget_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+- fix broken RAND_MAX
+- since the code calls random() here, be sure to call srandom() to
+ initialize. Calling srand() too should be harmless.
+
+
+--- simget.c~ 1993-07-14 11:02:09.000000000 +0000
++++ simget.c
+@@ -19,8 +19,9 @@
+
+ #include <stdio.h>
+
+-
+-#define RAND_MAX ((1<<31)-1)
++#ifndef RAND_MAX
++#define RAND_MAX ((1UL<<31)-1)
++#endif
+
+
+ /*************************************************************************
+@@ -32,6 +33,7 @@ void SimGetInit()
+ unsigned int e;
+
+ srand( 17);
++ srandom( 17);
+ }
+
+
diff --git a/x11/xpns/patches/patch-steio_c b/x11/xpns/patches/patch-steio_c
new file mode 100644
index 00000000000..167bf48ac44
--- /dev/null
+++ b/x11/xpns/patches/patch-steio_c
@@ -0,0 +1,14 @@
+$NetBSD: patch-steio_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Ues standard headers.
+
+--- steio.c~ 1993-07-14 11:02:15.000000000 +0000
++++ steio.c
+@@ -15,6 +15,7 @@
+ #include "celltype.h"
+ #include "netsize.h"
+ #include <stdio.h>
++#include <stdlib.h>
+
+
+ #define DEFAULT_STEN_X_DISP -HA_STE_RAD
diff --git a/x11/xpns/patches/patch-traio_c b/x11/xpns/patches/patch-traio_c
new file mode 100644
index 00000000000..2f8c606a018
--- /dev/null
+++ b/x11/xpns/patches/patch-traio_c
@@ -0,0 +1,15 @@
+$NetBSD: patch-traio_c,v 1.1 2012/06/16 04:00:54 dholland Exp $
+
+Use standard headers.
+
+--- traio.c~ 1993-07-14 11:02:15.000000000 +0000
++++ traio.c
+@@ -15,7 +15,7 @@
+ #include "celltype.h"
+ #include "netsize.h"
+ #include <stdio.h>
+-
++#include <stdlib.h>
+
+ #define DEFAULT_TRAN_X_DISP -HA_STE_RAD
+ #define DEFAULT_TRAN_Y_DISP -HA_STE_RAD-5