summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-12-30 00:26:20 +0000
committernia <nia@pkgsrc.org>2021-12-30 00:26:20 +0000
commit0bec37a2a6105fa8d8e8daecb158411c96a8ff48 (patch)
tree23ce156a7860b3d5a14e6c130a5a1833d1310425
parentd287f49c91624f2d994695d966422fb67ef6a28d (diff)
downloadpkgsrc-0bec37a2a6105fa8d8e8daecb158411c96a8ff48.tar.gz
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.
-rw-r--r--games/3dpong/DESCR6
-rw-r--r--games/3dpong/Makefile21
-rw-r--r--games/3dpong/PLIST5
-rw-r--r--games/3dpong/distinfo8
-rw-r--r--games/3dpong/patches/patch-src_3dpong.c14
-rw-r--r--games/3dpong/patches/patch-src_randnum.c14
-rw-r--r--games/3dpong/patches/patch-src_text.c15
-rw-r--r--games/Makefile3
8 files changed, 85 insertions, 1 deletions
diff --git a/games/3dpong/DESCR b/games/3dpong/DESCR
new file mode 100644
index 00000000000..d1f730b0c22
--- /dev/null
+++ b/games/3dpong/DESCR
@@ -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 --git a/games/3dpong/Makefile b/games/3dpong/Makefile
new file mode 100644
index 00000000000..336111d7dcf
--- /dev/null
+++ b/games/3dpong/Makefile
@@ -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
+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 --git a/games/3dpong/PLIST b/games/3dpong/PLIST
new file mode 100644
index 00000000000..b22c3180d92
--- /dev/null
+++ b/games/3dpong/PLIST
@@ -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 --git a/games/3dpong/distinfo b/games/3dpong/distinfo
new file mode 100644
index 00000000000..2de4895689e
--- /dev/null
+++ b/games/3dpong/distinfo
@@ -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 --git a/games/3dpong/patches/patch-src_3dpong.c b/games/3dpong/patches/patch-src_3dpong.c
new file mode 100644
index 00000000000..6d6a50b39bd
--- /dev/null
+++ b/games/3dpong/patches/patch-src_3dpong.c
@@ -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 --git a/games/3dpong/patches/patch-src_randnum.c b/games/3dpong/patches/patch-src_randnum.c
new file mode 100644
index 00000000000..fe004198597
--- /dev/null
+++ b/games/3dpong/patches/patch-src_randnum.c
@@ -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 --git a/games/3dpong/patches/patch-src_text.c b/games/3dpong/patches/patch-src_text.c
new file mode 100644
index 00000000000..870aeb1a8a6
--- /dev/null
+++ b/games/3dpong/patches/patch-src_text.c
@@ -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 --git a/games/Makefile b/games/Makefile
index 779935a0c24..af6380032ca 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -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