pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games games: add 3dpong



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f69651060f96
branches:  trunk
changeset: 771916:f69651060f96
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Dec 30 00:26:20 2021 +0000

description:
games: add 3dpong

3D Pong is a one- or two-player, three dimensional sports game, based on
the first arcade game ever made, "Pong" from Atari. Each player controls
their "paddle" with the mouse, and tries to score by bouncing a ball into
the other player's goal (just behind the paddle).

3D Pong is a vector-based graphics X-Window game for Unix.

diffstat:

 games/3dpong/DESCR                       |   6 ++++++
 games/3dpong/Makefile                    |  21 +++++++++++++++++++++
 games/3dpong/PLIST                       |   5 +++++
 games/3dpong/distinfo                    |   8 ++++++++
 games/3dpong/patches/patch-src_3dpong.c  |  14 ++++++++++++++
 games/3dpong/patches/patch-src_randnum.c |  14 ++++++++++++++
 games/3dpong/patches/patch-src_text.c    |  15 +++++++++++++++
 games/Makefile                           |   3 ++-
 8 files changed, 85 insertions(+), 1 deletions(-)

diffs (127 lines):

diff -r d4af11c86c31 -r f69651060f96 games/3dpong/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/3dpong/DESCR        Thu Dec 30 00:26:20 2021 +0000
@@ -0,0 +1,6 @@
+3D Pong is a one- or two-player, three dimensional sports game, based on
+the first arcade game ever made, "Pong" from Atari. Each player controls
+their "paddle" with the mouse, and tries to score by bouncing a ball into
+the other player's goal (just behind the paddle).
+
+3D Pong is a vector-based graphics X-Window game for Unix.
diff -r d4af11c86c31 -r f69651060f96 games/3dpong/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/3dpong/Makefile     Thu Dec 30 00:26:20 2021 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2021/12/30 00:26:20 nia Exp $
+
+DISTNAME=      3dpong-0.5
+CATEGORIES=    games
+MASTER_SITES=  ftp://ftp.tuxpaint.org/unix/x/3dpong/src/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.newbreedsoftware.com/3dpong/index2.php3
+COMMENT=       One or two player 3D sports game based on Pong from Atari
+LICENSE=       gnu-gpl-v2
+
+USE_TOOLS+=    gmake
+
+MAKE_FLAGS+=   CC=${CC:Q}
+MAKE_FLAGS+=   CFLAGS=${CFLAGS:Q}
+MAKE_FLAGS+=   XLIB="${LDFLAGS} -lX11"
+MAKE_FLAGS+=   PREFIX=${DESTDIR}${PREFIX}
+MAKE_FLAGS+=   MANPREFIX=${DESTDIR}${PREFIX}/${PKGMANDIR}
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r d4af11c86c31 -r f69651060f96 games/3dpong/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/3dpong/PLIST        Thu Dec 30 00:26:20 2021 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2021/12/30 00:26:20 nia Exp $
+bin/3dpong
+bin/3dpong-handball.sh
+bin/3dpong-vs-computer.sh
+man/man6/3dpong.6
diff -r d4af11c86c31 -r f69651060f96 games/3dpong/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/3dpong/distinfo     Thu Dec 30 00:26:20 2021 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2021/12/30 00:26:20 nia Exp $
+
+BLAKE2s (3dpong-0.5.tar.gz) = 007beba9c00c479de25e77bcbe5cb3c21fc95f6b04e0a2f4cacaf1d1959d442e
+SHA512 (3dpong-0.5.tar.gz) = 83d771e149e94f0fadbb8c19ed2ba1d4ce518d97ad910185a5eee1c1c3501200403329db8aff1408953e712355785ea77eb63bcf2a7e01fd38868853cdaadcbc
+Size (3dpong-0.5.tar.gz) = 37004 bytes
+SHA1 (patch-src_3dpong.c) = 9222af77d2f465f9f26b2bf546abc1790b6b3336
+SHA1 (patch-src_randnum.c) = f52b08c16d7990715cd050939e9679bfef0c120c
+SHA1 (patch-src_text.c) = f2d4d8d8eaa50eb0dd1febc1f210a190254da78d
diff -r d4af11c86c31 -r f69651060f96 games/3dpong/patches/patch-src_3dpong.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/3dpong/patches/patch-src_3dpong.c   Thu Dec 30 00:26:20 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_3dpong.c,v 1.1 2021/12/30 00:26:21 nia Exp $
+
+unistd.h needed for usleep().
+
+--- src/3dpong.c.orig  2004-04-29 06:49:13.000000000 +0000
++++ src/3dpong.c
+@@ -15,6 +15,7 @@
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <math.h>
++#include <unistd.h>
+ #include "window.h"
+ #include "connect.h"
+ #include "hints.h"
diff -r d4af11c86c31 -r f69651060f96 games/3dpong/patches/patch-src_randnum.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/3dpong/patches/patch-src_randnum.c  Thu Dec 30 00:26:20 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_randnum.c,v 1.1 2021/12/30 00:26:21 nia Exp $
+
+stdlib.h needed for rand()
+
+--- src/randnum.c.orig 1997-12-10 01:56:00.000000000 +0000
++++ src/randnum.c
+@@ -9,6 +9,7 @@
+ */
+ 
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/time.h>
+ #include "randnum.h"
+ 
diff -r d4af11c86c31 -r f69651060f96 games/3dpong/patches/patch-src_text.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/3dpong/patches/patch-src_text.c     Thu Dec 30 00:26:20 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_text.c,v 1.1 2021/12/30 00:26:21 nia Exp $
+
+string.h needed for strlen().
+
+--- src/text.c.orig    1997-12-10 23:27:49.000000000 +0000
++++ src/text.c
+@@ -6,6 +6,8 @@
+ */
+ 
+ #include <X11/Xlib.h>
++#include <stdlib.h>
++#include <string.h>
+ #include "text.h"
+ 
+ int FontHeight(XFontStruct *font_struct)
diff -r d4af11c86c31 -r f69651060f96 games/Makefile
--- a/games/Makefile    Wed Dec 29 23:56:15 2021 +0000
+++ b/games/Makefile    Thu Dec 30 00:26:20 2021 +0000
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.509 2021/12/29 23:56:01 nia Exp $
+# $NetBSD: Makefile,v 1.510 2021/12/30 00:26:20 nia Exp $
 #
 
 COMMENT=       Games
 
 SUBDIR+=       0verkill
 SUBDIR+=       2048-cli
+SUBDIR+=       3dpong
 SUBDIR+=       4stAttack
 SUBDIR+=       7kaa
 SUBDIR+=       7kaa-music



Home | Main Index | Thread Index | Old Index