From 109c1c91544f6892d842bab4b826d3d4f1ebeb9a Mon Sep 17 00:00:00 2001 From: angelos Date: Tue, 2 Dec 1997 01:33:20 +0000 Subject: [PATCH] Add xphoon port. --- astro/xphoon/Makefile | 19 ++++++++++++++++++ astro/xphoon/files/md5 | 1 + astro/xphoon/patches/patch-aa | 11 +++++++++++ astro/xphoon/patches/patch-ab | 19 ++++++++++++++++++ astro/xphoon/patches/patch-ac | 36 +++++++++++++++++++++++++++++++++++ astro/xphoon/pkg/COMMENT | 1 + astro/xphoon/pkg/DESCR | 1 + astro/xphoon/pkg/PLIST | 2 ++ 8 files changed, 90 insertions(+) create mode 100644 astro/xphoon/Makefile create mode 100644 astro/xphoon/files/md5 create mode 100644 astro/xphoon/patches/patch-aa create mode 100644 astro/xphoon/patches/patch-ab create mode 100644 astro/xphoon/patches/patch-ac create mode 100644 astro/xphoon/pkg/COMMENT create mode 100644 astro/xphoon/pkg/DESCR create mode 100644 astro/xphoon/pkg/PLIST diff --git a/astro/xphoon/Makefile b/astro/xphoon/Makefile new file mode 100644 index 00000000000..90f38695488 --- /dev/null +++ b/astro/xphoon/Makefile @@ -0,0 +1,19 @@ +# OpenBSD makefile for: xphoon +# Version required: 18sep91 (in R5 contrib) +# Date created: December 1, 1997 +# Whom: Angelos D. Keromytis +# +# $OpenBSD: Makefile,v 1.1.1.1 1997/12/02 01:33:20 angelos Exp $ +# + +DISTNAME= xphoon +PKGNAME= xphoon-91.9.18 +CATEGORIES= astro x11 +MASTER_SITES= ftp://ftp.cdrom.com/pub/X11/R5contrib/ +EXTRACT_SUFX= .tar.Z + +MAINTAINER= angelos@openbsd.org + +USE_IMAKE= yes + +.include diff --git a/astro/xphoon/files/md5 b/astro/xphoon/files/md5 new file mode 100644 index 00000000000..f875bb9f4ec --- /dev/null +++ b/astro/xphoon/files/md5 @@ -0,0 +1 @@ +MD5 (xphoon.tar.Z) = 9d8cce7199cd445692929e1e80f7058e diff --git a/astro/xphoon/patches/patch-aa b/astro/xphoon/patches/patch-aa new file mode 100644 index 00000000000..671c9a868d9 --- /dev/null +++ b/astro/xphoon/patches/patch-aa @@ -0,0 +1,11 @@ +--- ./Imakefile.org Wed Sep 18 12:57:31 1991 ++++ ./Imakefile Tue Feb 14 18:44:28 1995 +@@ -11,7 +11,7 @@ + + + INCLUDES = -I. -I$(TOP) -I$(TOP)/X11 -I$(TOP)/X11/bitmaps +-LOCAL_LIBRARIES = $(XLIB) ++LOCAL_LIBRARIES = $(XLIB) -lcompat + DEPLIBS = $(DEPXLIB) + LDLIBS = -lm + diff --git a/astro/xphoon/patches/patch-ab b/astro/xphoon/patches/patch-ab new file mode 100644 index 00000000000..4a65ded3485 --- /dev/null +++ b/astro/xphoon/patches/patch-ab @@ -0,0 +1,19 @@ +*** xphoon.c.orig Mon Dec 1 20:26:36 1997 +--- xphoon.c Mon Dec 1 20:26:54 1997 +*************** +*** 32,38 **** + /* Externals. */ + + extern char* malloc(); +! extern long time(); + extern long random(); + + extern void getbits(); +--- 32,38 ---- + /* Externals. */ + + extern char* malloc(); +! extern time_t time(); + extern long random(); + + extern void getbits(); diff --git a/astro/xphoon/patches/patch-ac b/astro/xphoon/patches/patch-ac new file mode 100644 index 00000000000..269ae6b0b9e --- /dev/null +++ b/astro/xphoon/patches/patch-ac @@ -0,0 +1,36 @@ +*** dtime.c.orig Mon Dec 1 20:27:44 1997 +--- dtime.c Mon Dec 1 20:28:26 1997 +*************** +*** 26,32 **** + #include + #endif /*SYS5*/ + +! extern long time(); + struct tm* localtime(); + + struct tws* +--- 26,32 ---- + #include + #endif /*SYS5*/ + +! extern time_t time(time_t *); + struct tm* localtime(); + + struct tws* +*************** +*** 40,46 **** + + struct tws* + dlocaltime( clock ) +! long* clock; + { + register struct tm* tm; + #ifndef SYS5 +--- 40,46 ---- + + struct tws* + dlocaltime( clock ) +! time_t* clock; + { + register struct tm* tm; + #ifndef SYS5 diff --git a/astro/xphoon/pkg/COMMENT b/astro/xphoon/pkg/COMMENT new file mode 100644 index 00000000000..e79090eab8f --- /dev/null +++ b/astro/xphoon/pkg/COMMENT @@ -0,0 +1 @@ +Set the root window to the moon in its current phase diff --git a/astro/xphoon/pkg/DESCR b/astro/xphoon/pkg/DESCR new file mode 100644 index 00000000000..9515dd0f77f --- /dev/null +++ b/astro/xphoon/pkg/DESCR @@ -0,0 +1 @@ +Xphoon sets X the root window to a picture of the moon in its current phase. diff --git a/astro/xphoon/pkg/PLIST b/astro/xphoon/pkg/PLIST new file mode 100644 index 00000000000..9587ae9be56 --- /dev/null +++ b/astro/xphoon/pkg/PLIST @@ -0,0 +1,2 @@ +bin/xphoon +man/man1/xphoon.1