From 182ed68d00db01901174d2fd09c89234547f2ffb Mon Sep 17 00:00:00 2001 From: ghelmer Date: Tue, 30 Jun 1998 13:16:15 +0000 Subject: A fuzzy teddy bear for your X desktop. PR: ports/6850 Submitted by: Eckart "Isegrim" Hofmann --- games/xteddy/Makefile | 23 +++++++++++++++++++++++ games/xteddy/distinfo | 1 + games/xteddy/files/patch-aa | 11 +++++++++++ games/xteddy/files/patch-ab | 16 ++++++++++++++++ games/xteddy/files/patch-ac | 37 +++++++++++++++++++++++++++++++++++++ games/xteddy/pkg-comment | 1 + games/xteddy/pkg-descr | 8 ++++++++ games/xteddy/pkg-plist | 2 ++ 8 files changed, 99 insertions(+) create mode 100644 games/xteddy/Makefile create mode 100644 games/xteddy/distinfo create mode 100644 games/xteddy/files/patch-aa create mode 100644 games/xteddy/files/patch-ab create mode 100644 games/xteddy/files/patch-ac create mode 100644 games/xteddy/pkg-comment create mode 100644 games/xteddy/pkg-descr create mode 100644 games/xteddy/pkg-plist (limited to 'games/xteddy') diff --git a/games/xteddy/Makefile b/games/xteddy/Makefile new file mode 100644 index 0000000..a4c3f6a --- /dev/null +++ b/games/xteddy/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: xteddy +# Version required: 1.0 +# Date created: 3 June 1998 +# Whom: Eckart "Isegrim" Hofmann +# +# $Id$ +# + +DISTNAME= xteddy-1.0 +CATEGORIES= games +MASTER_SITES= ftp://ftp.leo.org:/pub/comp/usenet/comp.sources.x/xteddy/ + +MAINTAINER= Isegrim@Wunder-Nett.org + +LIB_DEPENDS+= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm + +NO_CDROM= "Can only be distributed for free" + +USE_IMAKE= yes + +post-install: + strip ${PREFIX}/bin/xteddy +.include diff --git a/games/xteddy/distinfo b/games/xteddy/distinfo new file mode 100644 index 0000000..10cf302 --- /dev/null +++ b/games/xteddy/distinfo @@ -0,0 +1 @@ +MD5 (xteddy-1.0.tar.gz) = ec01c374400d56536137e2f3bffd3f25 diff --git a/games/xteddy/files/patch-aa b/games/xteddy/files/patch-aa new file mode 100644 index 0000000..042c100 --- /dev/null +++ b/games/xteddy/files/patch-aa @@ -0,0 +1,11 @@ +--- Imakefile.orig Mon Jan 31 20:12:14 1994 ++++ Imakefile Wed Jun 3 17:14:29 1998 +@@ -1,6 +1,6 @@ + SYS_LIBRARIES = -lX11 -lXext +- EXTRA_INCLUDES = -I$(HOME)/include/X11 +-EXTRA_LIBRARIES = -L$(HOME)/lib -lXpm ++ EXTRA_INCLUDES = -I$(INCROOT)/X11 ++EXTRA_LIBRARIES = -L$(USRLIBDIR) -lXpm + SRCS = xteddy.c + OBJS = xteddy.o + diff --git a/games/xteddy/files/patch-ab b/games/xteddy/files/patch-ab new file mode 100644 index 0000000..645113b --- /dev/null +++ b/games/xteddy/files/patch-ab @@ -0,0 +1,16 @@ +--- xteddy.man.orig Wed Jun 3 17:23:30 1998 ++++ xteddy.man Wed Jun 3 17:08:40 1998 +@@ -0,0 +1,13 @@ ++.Dd Jun 03, 1998 ++.Dt XTEDDY 1 ++.Os ++.Sh NAME ++.Nm xteddy ++.Nd shows a cuddlesome teddy on the X desktop ++.Sh SYNOPSIS ++.Nm xteddy ++.Sh DESCRIPTION ++.Nm xteddy ++shows a very cuddlesome teddy on the X desktop. The teddy can be removed ++by moving the mouse cursor over the teddy and typing "q" or "Q". But it's ++not advised to do that. diff --git a/games/xteddy/files/patch-ac b/games/xteddy/files/patch-ac new file mode 100644 index 0000000..715282d --- /dev/null +++ b/games/xteddy/files/patch-ac @@ -0,0 +1,37 @@ +--- xteddy.c.orig Mon Jan 31 20:12:15 1994 ++++ xteddy.c Wed Jun 3 17:09:27 1998 +@@ -19,7 +19,7 @@ + #include + + #ifndef NOXPM +-#include ++#include + #endif + + #include +@@ -33,6 +33,14 @@ + #include "xteddy_color.xpm" + #endif + ++#ifndef TRUE ++#define TRUE 1 ++#endif /* TRUE */ ++ ++#ifndef FALSE ++#define FALSE 0 ++#endif /* FALSE */ ++ + #include "patchlevel.h" + + static char *progname; +@@ -335,8 +343,8 @@ + break; + case KeyPress: + /* Exit on "q" or "Q" */ +- charcount = XLookupString(&report, buffer, bufsize, +- &keysym, &compose); ++ charcount = XLookupString(&report.xkey, ++ buffer, bufsize, &keysym, &compose); + if((keysym == XK_Q) || (keysym == XK_q)) + { + XCloseDisplay(display); diff --git a/games/xteddy/pkg-comment b/games/xteddy/pkg-comment new file mode 100644 index 0000000..ed254f8 --- /dev/null +++ b/games/xteddy/pkg-comment @@ -0,0 +1 @@ +A cuddlesome teddy for the X desktop. diff --git a/games/xteddy/pkg-descr b/games/xteddy/pkg-descr new file mode 100644 index 0000000..4ade196 --- /dev/null +++ b/games/xteddy/pkg-descr @@ -0,0 +1,8 @@ +This is _the_ toy for the X desktop, a must for all plush lovers: a very, +very cuddlesome teddy. + +Thanks to Felix Schroeter (felix@openbsd.org) for helpful hints to create +this port. + +- Eckart Hofmann +Isegrim@Wunder-Nett.org diff --git a/games/xteddy/pkg-plist b/games/xteddy/pkg-plist new file mode 100644 index 0000000..cf61cf9 --- /dev/null +++ b/games/xteddy/pkg-plist @@ -0,0 +1,2 @@ +bin/xteddy +man/man1/xteddy.1.gz -- cgit v1.1