diff options
author | nra <nra@pkgsrc.org> | 2001-07-18 14:27:31 +0000 |
---|---|---|
committer | nra <nra@pkgsrc.org> | 2001-07-18 14:27:31 +0000 |
commit | a2ae10c443aa03185997040b92ee20f065ee0578 (patch) | |
tree | dbe600ff3198ec9f9d6ad58abd11179a69af1e9c /x11/xphoon/patches | |
parent | 981e6be9677b8da4009bbbade602c38d9b8e1254 (diff) | |
download | pkgsrc-a2ae10c443aa03185997040b92ee20f065ee0578.tar.gz |
Add xphoon-19910918. PR #13500 by Stoned Elipot.
Xphoon sets X the root window to a picture of the moon in its current phase.
Diffstat (limited to 'x11/xphoon/patches')
-rw-r--r-- | x11/xphoon/patches/patch-aa | 13 | ||||
-rw-r--r-- | x11/xphoon/patches/patch-ab | 23 | ||||
-rw-r--r-- | x11/xphoon/patches/patch-ac | 48 |
3 files changed, 84 insertions, 0 deletions
diff --git a/x11/xphoon/patches/patch-aa b/x11/xphoon/patches/patch-aa new file mode 100644 index 00000000000..e4ed2a29209 --- /dev/null +++ b/x11/xphoon/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/07/18 14:27:31 nra Exp $ + +--- Imakefile.orig Wed Sep 18 21:57:31 1991 ++++ Imakefile +@@ -11,7 +11,7 @@ + + + INCLUDES = -I. -I$(TOP) -I$(TOP)/X11 -I$(TOP)/X11/bitmaps +-LOCAL_LIBRARIES = $(XLIB) ++LOCAL_LIBRARIES = $(XLIB) $(EXTRA_LOCAL_LIBS) + DEPLIBS = $(DEPXLIB) + LDLIBS = -lm + diff --git a/x11/xphoon/patches/patch-ab b/x11/xphoon/patches/patch-ab new file mode 100644 index 00000000000..af93beff5ab --- /dev/null +++ b/x11/xphoon/patches/patch-ab @@ -0,0 +1,23 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/07/18 14:27:31 nra Exp $ + +--- dtime.c.orig Sat Sep 14 07:15:25 1991 ++++ dtime.c +@@ -26,13 +26,17 @@ + #include <sys/timeb.h> + #endif /*SYS5*/ + ++#include <sys/param.h> ++ ++#if !(defined(BSD) && (BSD >= 199306)) + extern long time(); + struct tm* localtime(); ++#endif + + struct tws* + dtwstime() + { +- long clock; ++ time_t clock; + + (void) time( &clock ); + return dlocaltime( &clock ); diff --git a/x11/xphoon/patches/patch-ac b/x11/xphoon/patches/patch-ac new file mode 100644 index 00000000000..3bec9499f7f --- /dev/null +++ b/x11/xphoon/patches/patch-ac @@ -0,0 +1,48 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/07/18 14:27:31 nra Exp $ + +--- xphoon.c.orig Wed Sep 18 21:57:37 1991 ++++ xphoon.c +@@ -31,9 +31,16 @@ + + /* Externals. */ + ++#include <sys/param.h> ++ ++#if (defined(BSD) && (BSD >= 199306)) ++#include <stdlib.h> ++#include <time.h> ++#else + extern char* malloc(); + extern long time(); + extern long random(); ++#endif + + extern void getbits(); + extern double jtime(); +@@ -65,7 +72,7 @@ + int blackflag, demoflag; + int printpid; + char* display_name; +- long clock; ++ time_t clock; + int pid, tty; + int size; + char* mooncopy; +@@ -190,6 +197,7 @@ + (void) fflush( stdout ); + + /* Go stealth (ditch our controlling tty). */ ++#ifdef TIOCNOTTY + tty = open( "/dev/tty", 0 ); + if ( tty < 0 ) + { +@@ -207,6 +215,9 @@ + } + (void) close( tty ); + } ++#else ++ setsid(); ++#endif + } + + size = BitmapSize( moon_w, moon_h ); |