Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jul 1998 09:36:07 +0400 (MSD)
From:      Andrey Zakhvatov <andy@icc.surw.chel.su>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7149: New port: xdigger-1.0.6
Message-ID:  <199807030536.JAA14598@icc.surw.chel.su>

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

>Number:         7149
>Category:       ports
>Synopsis:       New port: xdigger-1.0.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul  2 22:40:00 PDT 1998
>Last-Modified:
>Originator:     Andrey Zakhvatov
>Organization:
South Ural Railway ICC
>Release:        FreeBSD 2.2.2-RELEASE i386
>Environment:

>Description:

   This is a port of Boulderdash-like KC85 Digger for X Window System.
XXDigger is digger game for X Window System. Digger was
Xoriginally developed for the KC 85/3 and KC 85/4.


# 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:
#
#	xdigger-1.0.6
#	xdigger-1.0.6/Makefile
#	xdigger-1.0.6/files
#	xdigger-1.0.6/files/md5
#	xdigger-1.0.6/pkg
#	xdigger-1.0.6/pkg/PLIST
#	xdigger-1.0.6/pkg/COMMENT
#	xdigger-1.0.6/pkg/DESCR
#	xdigger-1.0.6/patches
#	xdigger-1.0.6/patches/patch-ab
#	xdigger-1.0.6/patches/patch-ac
#	xdigger-1.0.6/patches/patch-aa
#
echo c - xdigger-1.0.6
mkdir -p xdigger-1.0.6 > /dev/null 2>&1
echo x - xdigger-1.0.6/Makefile
sed 's/^X//' >xdigger-1.0.6/Makefile << 'END-of-xdigger-1.0.6/Makefile'
X# New ports collection makefile for:	xdigger
X# Version required:			1.0.6
X# Date created:				29 June 1998
X# Whom:					Andrey Zakhvatov
X#
X# $Id$
X#
X
XDISTNAME=		xdigger-1.0.6
XCATEGORIES=		games x11
XMASTER_SITES=		${MASTER_SITE_SUNSITE}
XMASTER_SITE_SUBDIR=	games/arcade
XEXTRACT_SUFX=		.tgz
X
XMAINTAINER=		andy@icc.surw.chel.su
X
XUSE_IMAKE=		yes
X
XMAN6=			xdigger.6
X
Xdo-install:
X	@ ${INSTALL_PROGRAM} ${WRKSRC}/xdigger ${PREFIX}/bin
X	@ ${INSTALL_DATA} ${WRKSRC}/xdigger.man ${PREFIX}/man/man6/xdigger.6
X	@ ${MKDIR} ${PREFIX}/share/xdigger
X	@ ${INSTALL_DATA} ${WRKSRC}/xdigger.hiscore ${PREFIX}/share/xdigger
X	@ ${INSTALL_DATA} ${WRKSRC}/xdigger.level ${PREFIX}/share/xdigger
X.for file in diamond.au step.au stone.au
X	@ ${INSTALL_DATA} ${WRKSRC}/audio/${file} ${PREFIX}/share/xdigger
X.endfor
X	@ chmod a+rw ${PREFIX}/share/xdigger/xdigger.hiscore
X.if !defined(NOPORTDOCS)
X	@ ${MKDIR} ${PREFIX}/share/doc/xdigger
X.for file in COPYING ChangeLog README
X	@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xdigger
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-xdigger-1.0.6/Makefile
echo c - xdigger-1.0.6/files
mkdir -p xdigger-1.0.6/files > /dev/null 2>&1
echo x - xdigger-1.0.6/files/md5
sed 's/^X//' >xdigger-1.0.6/files/md5 << 'END-of-xdigger-1.0.6/files/md5'
XMD5 (xdigger-1.0.6.tgz) = 18408b730bac4182dfef63cd3d056edf
END-of-xdigger-1.0.6/files/md5
echo c - xdigger-1.0.6/pkg
mkdir -p xdigger-1.0.6/pkg > /dev/null 2>&1
echo x - xdigger-1.0.6/pkg/PLIST
sed 's/^X//' >xdigger-1.0.6/pkg/PLIST << 'END-of-xdigger-1.0.6/pkg/PLIST'
Xbin/xdigger
Xman/man6/xdigger.6.gz
Xshare/doc/xdigger/COPYING
Xshare/doc/xdigger/ChangeLog
Xshare/doc/xdigger/README
Xshare/xdigger/diamond.au
Xshare/xdigger/step.au
Xshare/xdigger/stone.au
X@mode 666
Xshare/xdigger/xdigger.hiscore
X@mode
Xshare/xdigger/xdigger.level
X@dirrm share/doc/xdigger
X@dirrm share/xdigger
END-of-xdigger-1.0.6/pkg/PLIST
echo x - xdigger-1.0.6/pkg/COMMENT
sed 's/^X//' >xdigger-1.0.6/pkg/COMMENT << 'END-of-xdigger-1.0.6/pkg/COMMENT'
XBoulderdash-like KC85 Digger for X Window System.
END-of-xdigger-1.0.6/pkg/COMMENT
echo x - xdigger-1.0.6/pkg/DESCR
sed 's/^X//' >xdigger-1.0.6/pkg/DESCR << 'END-of-xdigger-1.0.6/pkg/DESCR'
XXDigger is digger game for X Window System. Digger was
Xoriginally developed for the KC 85/3 and KC 85/4.
END-of-xdigger-1.0.6/pkg/DESCR
echo c - xdigger-1.0.6/patches
mkdir -p xdigger-1.0.6/patches > /dev/null 2>&1
echo x - xdigger-1.0.6/patches/patch-ab
sed 's/^X//' >xdigger-1.0.6/patches/patch-ab << 'END-of-xdigger-1.0.6/patches/patch-ab'
X--- sound.c	Thu Jan  1 00:06:00 1998
X+++ /home/andy/tmp/wrk/sound.c	Sat Jun 29 23:19:09 1996
X@@ -39,6 +39,9 @@
X #ifdef linux
X #include <linux/soundcard.h>
X #endif
X+#ifdef __FreeBSD__
X+#include <machine/soundcard.h>
X+#endif
X #ifdef SOUND_RPLAY
X #include <rplay.h>
X #endif
X@@ -147,7 +150,7 @@
X 	    {
X 	      ton_typ = msgp.mtext[0];
X #endif
X-#ifdef linux
X+#if ( defined(linux) || defined(__FreeBSD__) )
X 	      if (sound_device == SD_DSP)
X 		{
X 		  int rate = TON_DSP_RATE;
X@@ -171,7 +174,7 @@
X 	  else
X 	    done = True;
X 	}
X-#ifdef linux
X+#if ( defined(linux) || defined(__FreeBSD__) )
X       if(sound_device == SD_DSP)
X 	ioctl(fd, SNDCTL_DSP_RESET, 0);
X #endif
X@@ -248,7 +251,7 @@
X   
X } /* Fill_TonBuffer(int ton_low, int ton_high, int korrektur, Bool sndheader)*/
X 
X-#ifdef linux
X+#if ( defined(linux) || defined (__FreeBSD__) )
X Bool Check_DSP(Bool msg)
X {
X   int fd;
X@@ -374,7 +377,7 @@
X     {
X       if (debug) fprintf(stderr, "%s: XDisplay is on localhost\n", progname);
X #ifdef SOUND_DSP_AUDIO
X-#ifdef linux
X+#if ( defined(linux) || defined(__FreeBSD__) )
X       Check_DSP(False);
X #endif
X       if (sound_device == SD_AUTO) Check_SUN_Audio(False);
X@@ -400,7 +403,7 @@
X   else
X   {
X #ifdef SOUND_DSP_AUDIO
X-#ifdef linux
X+#if ( defined(linux) || defined(__FreeBSD__) )
X     if (sound_device == SD_DSP)
X     {
X       if (!Check_DSP(True)) sound_device = SD_NONE;
END-of-xdigger-1.0.6/patches/patch-ab
echo x - xdigger-1.0.6/patches/patch-ac
sed 's/^X//' >xdigger-1.0.6/patches/patch-ac << 'END-of-xdigger-1.0.6/patches/patch-ac'
X--- xdigger.c	Thu Jan  1 00:06:00 1998
X+++ /home/andy/tmp/wrk/xdigger.c	Sat Jun 29 23:19:18 1996
X@@ -311,17 +315,29 @@
X 
X   Fill_TonBuffer(TON_AUDIO_LOW, TON_AUDIO_HIGH, TON_AUDIO_RATE, True);
X 
X+#ifdef __FreeBSD__
X+  fd = open("/usr/X11R6/share/xdigger/diamond.au", O_CREAT | O_WRONLY);
X+#else
X   fd = open("audio/diamond.au", O_CREAT | O_WRONLY);
X+#endif
X   fchmod(fd, 0644);
X   write(fd, &ton_buffer[TON_DIAMANT], ton_laenge[TON_DIAMANT]+24);
X   close(fd);
X 
X+#ifdef __FreeBSD__
X+  fd = open("/usr/X11R6/share/xdigger/stone.au", O_CREAT | O_WRONLY);
X+#else
X   fd = open("audio/stone.au", O_CREAT | O_WRONLY);
X+#endif
X   fchmod(fd, 0644);
X   write(fd, &ton_buffer[TON_STEINE], ton_laenge[TON_STEINE]+24);
X   close(fd);
X 
X+#ifdef __FreeBSD__
X+  fd = open("/usr/X11R6/share/xdigger/step.au", O_CREAT | O_WRONLY);
X+#else
X   fd = open("audio/step.au", O_CREAT | O_WRONLY);
X+#endif
X   fchmod(fd, 0644);
X   write(fd, &ton_buffer[TON_SCHRITT], ton_laenge[TON_SCHRITT]+24);
X   close(fd);
X@@ -338,7 +354,7 @@
X {
X   printf("Usage: xdigger [-display display] [-1|2|3|...] [-noblink] [-noiconmove] [-vert240] [-sound ");
X #ifdef SOUND_DSP_AUDIO
X-#ifdef linux
X+#if ( defined(linux) || defined(__FreeBSD__) )
X   printf("dsp|");
X #endif
X   printf("audio|");
X@@ -390,7 +406,7 @@
X             }
X #endif            
X #ifdef SOUND_DSP_AUDIO
X-#ifdef linux
X+#if ( defined(linux) || defined(__FreeBSD__) )
X             if(!strcmp(argv[i], "dsp")) sound_device = SD_DSP; else
X #endif
X             if(!strcmp(argv[i], "audio")) sound_device = SD_AUDIO; else
END-of-xdigger-1.0.6/patches/patch-ac
echo x - xdigger-1.0.6/patches/patch-aa
sed 's/^X//' >xdigger-1.0.6/patches/patch-aa << 'END-of-xdigger-1.0.6/patches/patch-aa'
X--- configure.h	Thu Jan  1 00:06:00 1998
X+++ /home/andy/tmp/wrk/configure.h	Sat Jun 29 23:18:58 1996
X@@ -19,8 +19,13 @@
X #define _CONFIGURE_H
X 
X /* Directories */
X+#ifdef __FreeBSD__
X+#define XDIGGER_LIB_DIR     "/usr/X11R6/share/xdigger"
X+#define XDIGGER_HISCORE_DIR "/usr/X11R6/share/xdigger"
X+#else
X #define XDIGGER_LIB_DIR     "/usr/lib/X11/xdigger"
X #define XDIGGER_HISCORE_DIR "/var/X11R6/scores"
X+#endif
X 
X #define SOUND_DSP_AUDIO
X 
END-of-xdigger-1.0.6/patches/patch-aa
exit


>How-To-Repeat:

>Fix:

   Please, check and commit this port.

>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?199807030536.JAA14598>