Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jul 2000 09:36:43 +0200 (CEST)
From:      e@ik.nu
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/19911: new port: games/trojka-1.0
Message-ID:  <200007140736.JAA73145@joshua.mons.net>

next in thread | raw e-mail | index | archive | help

>Number:         19911
>Category:       ports
>Synopsis:       new port: games/trojka-1.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 14 00:40:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Mons
>Release:        FreeBSD 4.0-20000307-CURRENT i386
>Organization:
>Environment:

	

>Description:

	New port: games/trojka-1.0, a terminal version of xtrojka.

>How-To-Repeat:

	

>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	trojka
#	trojka/pkg
#	trojka/pkg/COMMENT
#	trojka/pkg/DESCR
#	trojka/pkg/PLIST
#	trojka/files
#	trojka/files/md5
#	trojka/patches
#	trojka/patches/patch-aa
#	trojka/patches/patch-ab
#	trojka/patches/patch-ac
#	trojka/patches/patch-ad
#	trojka/Makefile
#
echo c - trojka
mkdir -p trojka > /dev/null 2>&1
echo c - trojka/pkg
mkdir -p trojka/pkg > /dev/null 2>&1
echo x - trojka/pkg/COMMENT
sed 's/^X//' >trojka/pkg/COMMENT << 'END-of-trojka/pkg/COMMENT'
XA game of skill
END-of-trojka/pkg/COMMENT
echo x - trojka/pkg/DESCR
sed 's/^X//' >trojka/pkg/DESCR << 'END-of-trojka/pkg/DESCR'
XTrojka is a game of skill.  The aim of the game is to control and place 
Xfalling blocks so that you get three patterns or colors in a row, 
Xhorizontally or diagonally. These patterns then disappear, the above 
Xblocks collapse and you get points.
X
X- Edwin Mons
Xe@ik.nu
END-of-trojka/pkg/DESCR
echo x - trojka/pkg/PLIST
sed 's/^X//' >trojka/pkg/PLIST << 'END-of-trojka/pkg/PLIST'
Xbin/trojka
Xshare/trojka/trojka.scores
Xshare/trojka/README
Xshare/trojka/COPYRIGHT
X@dirrm share/trojka
END-of-trojka/pkg/PLIST
echo c - trojka/files
mkdir -p trojka/files > /dev/null 2>&1
echo x - trojka/files/md5
sed 's/^X//' >trojka/files/md5 << 'END-of-trojka/files/md5'
XMD5 (trojka.tar.gz) = e5d09a395df937b4e09a089013648a77
END-of-trojka/files/md5
echo c - trojka/patches
mkdir -p trojka/patches > /dev/null 2>&1
echo x - trojka/patches/patch-aa
sed 's/^X//' >trojka/patches/patch-aa << 'END-of-trojka/patches/patch-aa'
X*** Makefile.orig	Fri Oct 20 22:17:43 1995
X--- Makefile	Wed Mar 22 15:33:25 2000
X***************
X*** 6,19 ****
X  #
X  
X  
X! 
X  OBJS= trojka.o screen.o scan.o hiscore.o system.o
X  
X  make:
X  	@echo please specify: hpux, xenix68, linux or sunos
X  
X  install:
X! 	cp trojka /usr/games
X  
X  clean:
X  	rm -f $(PROGS) *.o core a.out trojka.scores
X--- 6,28 ----
X  #
X  
X  
X! SCOREDIR=${PREFIX}/share/trojka
X! SCOREFILE=${SCOREDIR}/trojka.scores
X! CFLAGS+= -DSCOREFILE=\"${SCOREFILE}\"
X  OBJS= trojka.o screen.o scan.o hiscore.o system.o
X  
X+ all: freebsd
X+ 
X  make:
X  	@echo please specify: hpux, xenix68, linux or sunos
X  
X  install:
X! 	install -c -d -m 0755 ${PREFIX}/bin
X! 	install -c -d -m 0755 ${SCOREDIR}
X! 	install -c -m 2755 -g games trojka ${PREFIX}/bin
X! 	install -c -m 0644 COPYRIGHT README ${SCOREDIR}
X! 	install -c -m 0664 -g games /dev/null ${SCOREFILE}
X! 	install -c -m 0444 trojka.6 ${PREFIX}/man/man6
X  
X  clean:
X  	rm -f $(PROGS) *.o core a.out trojka.scores
X***************
X*** 53,55 ****
X--- 62,67 ----
X  
X  linux:
X  	make trojka "CFLAGS=-DLINUX"
X+ 
X+ freebsd:
X+ 	make trojka 
END-of-trojka/patches/patch-aa
echo x - trojka/patches/patch-ab
sed 's/^X//' >trojka/patches/patch-ab << 'END-of-trojka/patches/patch-ab'
X--- system.c.orig	Fri Oct 20 22:16:20 1995
X+++ system.c	Fri Jul 14 09:23:28 2000
X@@ -23,6 +23,9 @@
X #include <stdio.h>
X #include <time.h>
X #include <fcntl.h>
X+#ifdef __FreeBSD__
X+#include <sys/ioctl.h>
X+#endif
X 
X #include "trojka.h"
X 
X@@ -34,7 +37,11 @@
X char	getkey();
X 
X int initcurses();
X+#ifdef __FreeBSD__
X+void catch();
X+#else
X int catch();
X+#endif
X 
X #if XENIX68
X struct timeb *tb;		/* for delay */
X@@ -42,7 +49,7 @@
X 
X char getkey()			/* get key from keyboard	*/
X {
X-#if SUNOS | HPUX | LINUX
X+#if SUNOS | HPUX | LINUX | __FreeBSD__
X 	long count;
X 	char ch;
X 
X@@ -91,7 +98,11 @@
X }
X 
X 
X+#ifdef __FreeBSD__
X+void catch(sig)
X+#else
X int catch(sig)
X+#endif
X int sig;
X {
X 	signal(SIGTERM, SIG_IGN);
X@@ -119,7 +130,7 @@
X int delay(millisecs)
X int millisecs;
X {
X-#if SUNOS | LINUX
X+#if SUNOS | LINUX | __FreeBSD__
X 	usleep(millisecs * 1200);	/* usleep does microsecs; need millisecs */
X #endif
X #ifdef HPUX
END-of-trojka/patches/patch-ab
echo x - trojka/patches/patch-ac
sed 's/^X//' >trojka/patches/patch-ac << 'END-of-trojka/patches/patch-ac'
X*** sys_custom.h.orig	Fri Oct 20 21:58:14 1995
X--- sys_custom.h	Wed Mar 22 15:11:24 2000
X***************
X*** 7,13 ****
X--- 7,15 ----
X  #ifndef _sys_custom_
X  #define _sys_custom_
X  
X+ #ifndef SCOREFILE
X  #define SCOREFILE "/usr/games/lib/trojka.scores"
X+ #endif
X  
X  #define UMASK 0666    			/* creation mask for hiscorefile */ 
X  
END-of-trojka/patches/patch-ac
echo x - trojka/patches/patch-ad
sed 's/^X//' >trojka/patches/patch-ad << 'END-of-trojka/patches/patch-ad'
X*** trojka.6.orig	Fri Oct 20 23:07:32 1995
X--- trojka.6	Wed Mar 22 15:24:15 2000
X***************
X*** 40,46 ****
X  
X  .SH FILES
X  .nf
X! /usr/local/games/lib/trojka.scores	 The Trojka hiscore file
X  
X  .SH HISTORY
X  First version written in 1989 for MS-Dog. Not long thereafter (in 1990)
X--- 40,46 ----
X  
X  .SH FILES
X  .nf
X! /usr/local/share/trojka/trojka.scores	 The Trojka hiscore file
X  
X  .SH HISTORY
X  First version written in 1989 for MS-Dog. Not long thereafter (in 1990)
END-of-trojka/patches/patch-ad
echo x - trojka/Makefile
sed 's/^X//' >trojka/Makefile << 'END-of-trojka/Makefile'
X# New ports collection makefile for:   trojka
X# Date created:        22 march 2000
X# Whom:                Edwin Mons
X#
X# $FreeBSD$
X#
X
XPORTNAME=	trojka
XPORTVERSION=	1.0
XCATEGORIES=	games
XMASTER_SITES=	ftp://ftp.funet.fi/pub/unix/games/
XDISTNAME=	${PORTNAME}
X
XMAINTAINER=	e@ik.nu
X
XMAN6=		trojka.6
X
Xpost-install:
X	strip ${PREFIX}/bin/trojka
X
X.include <bsd.port.mk>
END-of-trojka/Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007140736.JAA73145>