1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

xpipeman - connect the pipes to stop the leaks (X Windows)

This commit is contained in:
Steven Wallace 1995-01-03 08:48:45 +00:00
parent 3003ec6553
commit abb159a0eb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=670
8 changed files with 162 additions and 0 deletions

17
games/xpipeman/Makefile Normal file
View File

@ -0,0 +1,17 @@
# New ports collection makefile for: xpipeman
# Date created: 2 Jan 1995
# Whom: swallace
#
# $Id: Makefile,v 1.3 1994/12/31 04:17:52 swallace Exp $
#
DISTNAME= xpipeman
MASTER_SITES= ftp://iraun1.ira.uka.de/pub/x11/
EXTRACT_SUFX= .tar.Z
USE_IMAKE= yes
INSTALL_MANPAGES= yes
.include <bsd.port.mk>
install:
install -c -g games -m 664 ${.CURDIR}/files/xpipescores /usr/X11R6/lib/X11

View File

@ -0,0 +1,91 @@
*** score.c.orig Fri Oct 11 11:35:59 1991
--- score.c Mon Jan 2 23:46:28 1995
***************
*** 52,57 ****
--- 52,58 ----
#include <X11/Xos.h> /* brings in <sys/file.h> */
#include <stdio.h>
+ #include <stdlib.h>
#include "xpipeman.h"
/*----------------------------------------------------------------------*/
***************
*** 63,69 ****
static SCORE scores[MAXSCORES];
! void show_scores(),
new_high_score(),
load_scores(),
write_out_scores();
--- 64,70 ----
static SCORE scores[MAXSCORES];
! static void show_scores(),
new_high_score(),
load_scores(),
write_out_scores();
***************
*** 106,117 ****
#ifndef SYSV
flock(scorefile->_file, LOCK_EX);
#endif
! while( fgets(scores[i].score,6,scorefile) /* get score */
! && fgets(scores[i].name,26,scorefile) /* get name */
! && fgetc(scorefile)) /* and newline */
! {
! i++;
! if( i > MAXSCORES ) break;
}
}
--- 107,119 ----
#ifndef SYSV
flock(scorefile->_file, LOCK_EX);
#endif
! for(i = 0; i < MAXSCORES; i++) {
! if(!fgets(scores[i].score, 6, scorefile)) /* get score */
! break;
! if(!fgets(scores[i].name, 26, scorefile)) /* get name */
! break;
! if(!fgetc(scorefile)) /* and newline */
! break;
}
}
***************
*** 190,196 ****
/*ARGSUSED*/
! static XtCallbackProc
popdown_callback(w, closure, call_data)
Widget w;
caddr_t closure;
--- 192,198 ----
/*ARGSUSED*/
! static void
popdown_callback(w, closure, call_data)
Widget w;
caddr_t closure;
***************
*** 249,255 ****
show_scores()
{
int i;
! char tmp_str[31];
Arg tmp_arg;
for(i = 0;i<MAXSCORES;i++) {
--- 251,257 ----
show_scores()
{
int i;
! char tmp_str[64];
Arg tmp_arg;
for(i = 0;i<MAXSCORES;i++) {

View File

@ -0,0 +1,15 @@
*** Imakefile.orig Fri Sep 13 13:32:10 1991
--- Imakefile Mon Jan 2 23:49:42 1995
***************
*** 1,5 ****
! SCORE_FILE = -DSCORE_FILE=\"./xpipescores\"
MAXSCORES = -DMAXSCORES=20
DEFINES = $(SCORE_FILE) $(MAXSCORES)
--- 1,5 ----
! SCORE_FILE = -DSCORE_FILE=\"/usr/X11R6/lib/X11/xpipescores\"
MAXSCORES = -DMAXSCORES=20
DEFINES = $(SCORE_FILE) $(MAXSCORES)

View File

@ -0,0 +1,20 @@

View File

@ -0,0 +1 @@
xpipeman - connect the pipes to stop the leaks

4
games/xpipeman/pkg-descr Normal file
View File

@ -0,0 +1,4 @@
Xpipeman is a game of skill requiring the user to connect together pieces of
a pipe to allow a liquid to flow through without leaking out.
The liquid flows out of the block marked with an "S". The aim of the game
is to connect as many pieces of pipe to the start block as possible.

7
games/xpipeman/pkg-plist Normal file
View File

@ -0,0 +1,7 @@
@cwd /usr/X11R6
man/man6/xpipeman.6.gz
@group games
@mode 02755
bin/xpipeman
@mode 0664
lib/X11/xpipescores

View File

@ -0,0 +1,7 @@
#!/bin/sh
#echo "LOCAL=$PREFIX" >${WRKSRC}/Imakefile || exit 1;
echo "MANSUFFIX=6" >>${WRKSRC}/Imakefile || exit 1
echo "INSTPGMFLAGS = -s -g games -m 2755" >>${WRKSRC}/Imakefile || exit 1
exit 0