aboutsummaryrefslogtreecommitdiff
path: root/games/xdigger
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-07-12 23:08:56 +0000
committerSteve Price <steve@FreeBSD.org>1998-07-12 23:08:56 +0000
commit93e071172dce49bb69c28a1a19edc5cfd6b9505c (patch)
treeb2192b751b38d0c195149406faef06cc31de3728 /games/xdigger
parentb5278d0b4afad9c7db7ce722787c115a90d4ad9a (diff)
downloadports-93e071172dce49bb69c28a1a19edc5cfd6b9505c.tar.gz
ports-93e071172dce49bb69c28a1a19edc5cfd6b9505c.zip
Initial import of xdigger version 1.0.6.
Boulderdash-like KC85 Digger for X Window System. PR: 7149 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Notes
Notes: svn path=/head/; revision=11862
Diffstat (limited to 'games/xdigger')
-rw-r--r--games/xdigger/Makefile38
-rw-r--r--games/xdigger/distinfo1
-rw-r--r--games/xdigger/files/patch-aa16
-rw-r--r--games/xdigger/files/patch-ab57
-rw-r--r--games/xdigger/files/patch-ac50
-rw-r--r--games/xdigger/pkg-comment1
-rw-r--r--games/xdigger/pkg-descr2
-rw-r--r--games/xdigger/pkg-plist14
8 files changed, 179 insertions, 0 deletions
diff --git a/games/xdigger/Makefile b/games/xdigger/Makefile
new file mode 100644
index 000000000000..2f2f69b6c221
--- /dev/null
+++ b/games/xdigger/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: xdigger
+# Version required: 1.0.6
+# Date created: 29 June 1998
+# Whom: Andrey Zakhvatov
+#
+# $Id$
+#
+
+DISTNAME= xdigger-1.0.6
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR= games/arcade
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= andy@icc.surw.chel.su
+
+USE_IMAKE= yes
+
+MAN6= xdigger.6
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/xdigger ${PREFIX}/bin
+ @ ${INSTALL_DATA} ${WRKSRC}/xdigger.man ${PREFIX}/man/man6/xdigger.6
+ @ ${MKDIR} ${PREFIX}/share/xdigger
+ @ ${INSTALL_DATA} ${WRKSRC}/xdigger.hiscore ${PREFIX}/share/xdigger
+ @ ${INSTALL_DATA} ${WRKSRC}/xdigger.level ${PREFIX}/share/xdigger
+.for file in diamond.au step.au stone.au
+ @ ${INSTALL_DATA} ${WRKSRC}/audio/${file} ${PREFIX}/share/xdigger
+.endfor
+ @ chmod a+rw ${PREFIX}/share/xdigger/xdigger.hiscore
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${PREFIX}/share/doc/xdigger
+.for file in COPYING ChangeLog README
+ @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xdigger
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/xdigger/distinfo b/games/xdigger/distinfo
new file mode 100644
index 000000000000..89dc4d6b157e
--- /dev/null
+++ b/games/xdigger/distinfo
@@ -0,0 +1 @@
+MD5 (xdigger-1.0.6.tgz) = 18408b730bac4182dfef63cd3d056edf
diff --git a/games/xdigger/files/patch-aa b/games/xdigger/files/patch-aa
new file mode 100644
index 000000000000..13e59245dc1d
--- /dev/null
+++ b/games/xdigger/files/patch-aa
@@ -0,0 +1,16 @@
+--- configure.h Thu Jan 1 00:06:00 1998
++++ /home/andy/tmp/wrk/configure.h Sat Jun 29 23:18:58 1996
+@@ -19,8 +19,13 @@
+ #define _CONFIGURE_H
+
+ /* Directories */
++#ifdef __FreeBSD__
++#define XDIGGER_LIB_DIR "/usr/X11R6/share/xdigger"
++#define XDIGGER_HISCORE_DIR "/usr/X11R6/share/xdigger"
++#else
+ #define XDIGGER_LIB_DIR "/usr/lib/X11/xdigger"
+ #define XDIGGER_HISCORE_DIR "/var/X11R6/scores"
++#endif
+
+ #define SOUND_DSP_AUDIO
+
diff --git a/games/xdigger/files/patch-ab b/games/xdigger/files/patch-ab
new file mode 100644
index 000000000000..b16ec0eed71d
--- /dev/null
+++ b/games/xdigger/files/patch-ab
@@ -0,0 +1,57 @@
+--- sound.c Thu Jan 1 00:06:00 1998
++++ /home/andy/tmp/wrk/sound.c Sat Jun 29 23:19:09 1996
+@@ -39,6 +39,9 @@
+ #ifdef linux
+ #include <linux/soundcard.h>
+ #endif
++#ifdef __FreeBSD__
++#include <machine/soundcard.h>
++#endif
+ #ifdef SOUND_RPLAY
+ #include <rplay.h>
+ #endif
+@@ -147,7 +150,7 @@
+ {
+ ton_typ = msgp.mtext[0];
+ #endif
+-#ifdef linux
++#if ( defined(linux) || defined(__FreeBSD__) )
+ if (sound_device == SD_DSP)
+ {
+ int rate = TON_DSP_RATE;
+@@ -171,7 +174,7 @@
+ else
+ done = True;
+ }
+-#ifdef linux
++#if ( defined(linux) || defined(__FreeBSD__) )
+ if(sound_device == SD_DSP)
+ ioctl(fd, SNDCTL_DSP_RESET, 0);
+ #endif
+@@ -248,7 +251,7 @@
+
+ } /* Fill_TonBuffer(int ton_low, int ton_high, int korrektur, Bool sndheader)*/
+
+-#ifdef linux
++#if ( defined(linux) || defined (__FreeBSD__) )
+ Bool Check_DSP(Bool msg)
+ {
+ int fd;
+@@ -374,7 +377,7 @@
+ {
+ if (debug) fprintf(stderr, "%s: XDisplay is on localhost\n", progname);
+ #ifdef SOUND_DSP_AUDIO
+-#ifdef linux
++#if ( defined(linux) || defined(__FreeBSD__) )
+ Check_DSP(False);
+ #endif
+ if (sound_device == SD_AUTO) Check_SUN_Audio(False);
+@@ -400,7 +403,7 @@
+ else
+ {
+ #ifdef SOUND_DSP_AUDIO
+-#ifdef linux
++#if ( defined(linux) || defined(__FreeBSD__) )
+ if (sound_device == SD_DSP)
+ {
+ if (!Check_DSP(True)) sound_device = SD_NONE;
diff --git a/games/xdigger/files/patch-ac b/games/xdigger/files/patch-ac
new file mode 100644
index 000000000000..26a45e318adb
--- /dev/null
+++ b/games/xdigger/files/patch-ac
@@ -0,0 +1,50 @@
+--- xdigger.c Thu Jan 1 00:06:00 1998
++++ /home/andy/tmp/wrk/xdigger.c Sat Jun 29 23:19:18 1996
+@@ -311,17 +315,29 @@
+
+ Fill_TonBuffer(TON_AUDIO_LOW, TON_AUDIO_HIGH, TON_AUDIO_RATE, True);
+
++#ifdef __FreeBSD__
++ fd = open("/usr/X11R6/share/xdigger/diamond.au", O_CREAT | O_WRONLY);
++#else
+ fd = open("audio/diamond.au", O_CREAT | O_WRONLY);
++#endif
+ fchmod(fd, 0644);
+ write(fd, &ton_buffer[TON_DIAMANT], ton_laenge[TON_DIAMANT]+24);
+ close(fd);
+
++#ifdef __FreeBSD__
++ fd = open("/usr/X11R6/share/xdigger/stone.au", O_CREAT | O_WRONLY);
++#else
+ fd = open("audio/stone.au", O_CREAT | O_WRONLY);
++#endif
+ fchmod(fd, 0644);
+ write(fd, &ton_buffer[TON_STEINE], ton_laenge[TON_STEINE]+24);
+ close(fd);
+
++#ifdef __FreeBSD__
++ fd = open("/usr/X11R6/share/xdigger/step.au", O_CREAT | O_WRONLY);
++#else
+ fd = open("audio/step.au", O_CREAT | O_WRONLY);
++#endif
+ fchmod(fd, 0644);
+ write(fd, &ton_buffer[TON_SCHRITT], ton_laenge[TON_SCHRITT]+24);
+ close(fd);
+@@ -338,7 +354,7 @@
+ {
+ printf("Usage: xdigger [-display display] [-1|2|3|...] [-noblink] [-noiconmove] [-vert240] [-sound ");
+ #ifdef SOUND_DSP_AUDIO
+-#ifdef linux
++#if ( defined(linux) || defined(__FreeBSD__) )
+ printf("dsp|");
+ #endif
+ printf("audio|");
+@@ -390,7 +406,7 @@
+ }
+ #endif
+ #ifdef SOUND_DSP_AUDIO
+-#ifdef linux
++#if ( defined(linux) || defined(__FreeBSD__) )
+ if(!strcmp(argv[i], "dsp")) sound_device = SD_DSP; else
+ #endif
+ if(!strcmp(argv[i], "audio")) sound_device = SD_AUDIO; else
diff --git a/games/xdigger/pkg-comment b/games/xdigger/pkg-comment
new file mode 100644
index 000000000000..5510f8c1d963
--- /dev/null
+++ b/games/xdigger/pkg-comment
@@ -0,0 +1 @@
+Boulderdash-like KC85 Digger for X Window System.
diff --git a/games/xdigger/pkg-descr b/games/xdigger/pkg-descr
new file mode 100644
index 000000000000..562d5bdc26c7
--- /dev/null
+++ b/games/xdigger/pkg-descr
@@ -0,0 +1,2 @@
+XDigger is digger game for X Window System. Digger was
+originally developed for the KC 85/3 and KC 85/4.
diff --git a/games/xdigger/pkg-plist b/games/xdigger/pkg-plist
new file mode 100644
index 000000000000..59547e1ca86e
--- /dev/null
+++ b/games/xdigger/pkg-plist
@@ -0,0 +1,14 @@
+bin/xdigger
+man/man6/xdigger.6.gz
+share/doc/xdigger/COPYING
+share/doc/xdigger/ChangeLog
+share/doc/xdigger/README
+share/xdigger/diamond.au
+share/xdigger/step.au
+share/xdigger/stone.au
+@mode 666
+share/xdigger/xdigger.hiscore
+@mode
+share/xdigger/xdigger.level
+@dirrm share/doc/xdigger
+@dirrm share/xdigger