xteddy 1.0 from Felix Schroeter <uk1o@rzstud2.rz.uni-karlsruhe.de>
This commit is contained in:
parent
eaea23ec16
commit
787307b794
29
games/xteddy/Makefile
Normal file
29
games/xteddy/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# New ports collection makefile for: xteddy
|
||||
# Version required: 1.0
|
||||
# Date created: 3 June 1998
|
||||
# Whom: Eckart "Isegrim" Hofmann
|
||||
# Adapted for OpenBSD: Felix Schroeter <felix@mamba.pond.sub.org>
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1998/06/23 01:08:03 marc Exp $
|
||||
#
|
||||
|
||||
DISTNAME= xteddy-1.0
|
||||
CATEGORIES= games
|
||||
|
||||
#MAINTAINER= Isegrim@Wunder-Nett.org
|
||||
MAINTAINER= felix@mamba.pond.sub.org
|
||||
|
||||
MASTER_SITES= ftp://ftp.leo.org:/pub/comp/usenet/comp.sources.x/xteddy/
|
||||
|
||||
OS_RELEASE!= uname -r
|
||||
OS_HAS_XPM= 2.3
|
||||
.if ( ${OS_RELEASE} < ${OS_HAS_XPM} )
|
||||
LIB_DEPENDS+= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm
|
||||
.endif
|
||||
|
||||
USE_IMAKE= yes
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/xteddy
|
||||
|
||||
.include <bsd.port.mk>
|
1
games/xteddy/files/md5
Normal file
1
games/xteddy/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (xteddy-1.0.tar.gz) = ec01c374400d56536137e2f3bffd3f25
|
11
games/xteddy/patches/patch-aa
Normal file
11
games/xteddy/patches/patch-aa
Normal file
@ -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/usr/X11R6/include/X11
|
||||
+EXTRA_LIBRARIES = -L/usr/X11R6/lib -lXpm
|
||||
SRCS = xteddy.c
|
||||
OBJS = xteddy.o
|
||||
|
16
games/xteddy/patches/patch-ab
Normal file
16
games/xteddy/patches/patch-ab
Normal file
@ -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.
|
37
games/xteddy/patches/patch-ac
Normal file
37
games/xteddy/patches/patch-ac
Normal file
@ -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 <X11/cursorfont.h>
|
||||
|
||||
#ifndef NOXPM
|
||||
-#include <xpm.h>
|
||||
+#include <X11/xpm.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -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);
|
1
games/xteddy/pkg/COMMENT
Normal file
1
games/xteddy/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
A cuddlesome teddy for the X desktop.
|
8
games/xteddy/pkg/DESCR
Normal file
8
games/xteddy/pkg/DESCR
Normal file
@ -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
|
2
games/xteddy/pkg/PLIST
Normal file
2
games/xteddy/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
bin/xteddy
|
||||
man/cat1/xteddy.0
|
Loading…
Reference in New Issue
Block a user