aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2003-05-02 01:24:44 +0800
committerarved <arved@FreeBSD.org>2003-05-02 01:24:44 +0800
commitb878e511acb300f2656dbcfeb8490116c52e9b6d (patch)
tree97b590418d3b0d4853e8c5f9090fc21cdb8eb289
parent5478baa53d4a7b66919821f42df73e2ad7b1e558 (diff)
downloadfreebsd-ports-gnome-b878e511acb300f2656dbcfeb8490116c52e9b6d.tar.gz
freebsd-ports-gnome-b878e511acb300f2656dbcfeb8490116c52e9b6d.tar.zst
freebsd-ports-gnome-b878e511acb300f2656dbcfeb8490116c52e9b6d.zip
Add tictactoe3d, a simple tictactoe game
PR: 51501 Submitted by: Kirill Ponomarew <ponomarew@oberon.net>
-rw-r--r--games/Makefile1
-rw-r--r--games/tictactoe3d/Makefile24
-rw-r--r--games/tictactoe3d/distinfo1
-rw-r--r--games/tictactoe3d/files/patch-Makefile22
-rw-r--r--games/tictactoe3d/pkg-descr4
-rw-r--r--games/tictactoe3d/pkg-plist1
6 files changed, 53 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index fb450ec075d1..d0140d90b75f 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -319,6 +319,7 @@
SUBDIR += tetrinet
SUBDIR += tetrinet-x
SUBDIR += textmaze
+ SUBDIR += tictactoe3d
SUBDIR += tileworld
SUBDIR += tinymux
SUBDIR += tkmoo
diff --git a/games/tictactoe3d/Makefile b/games/tictactoe3d/Makefile
new file mode 100644
index 000000000000..80b1bc032a62
--- /dev/null
+++ b/games/tictactoe3d/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: tictactoe3d
+# Date created: Mon Apr 28 16:46:17 CEST 2003
+# Whom: Kirill Ponomarew <ponomarew@oberon.net>
+#
+# $FreeBSD$
+
+PORTNAME= tictactoe3d
+PORTVERSION= 1.0
+CATEGORIES= games
+MASTER_SITES= http://www.che.iitm.ac.in/~ch99057/software/
+DISTNAME= ttt3d
+
+MAINTAINER= ponomarew@oberon.net
+COMMENT= This is a simple "3D" tic tac toe game
+
+WRKSRC= ${WRKDIR}/ttt3d
+
+USE_GMAKE= yes
+USE_GNOME= gtk12
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ttt ${PREFIX}/bin/tictactoe3d
+
+.include <bsd.port.mk>
diff --git a/games/tictactoe3d/distinfo b/games/tictactoe3d/distinfo
new file mode 100644
index 000000000000..a27aa184bd4a
--- /dev/null
+++ b/games/tictactoe3d/distinfo
@@ -0,0 +1 @@
+MD5 (ttt3d.tar.gz) = 280c142f143557a385681f129387b9c7
diff --git a/games/tictactoe3d/files/patch-Makefile b/games/tictactoe3d/files/patch-Makefile
new file mode 100644
index 000000000000..3cd3cba79ec7
--- /dev/null
+++ b/games/tictactoe3d/files/patch-Makefile
@@ -0,0 +1,22 @@
+--- Makefile.orig Thu Jan 16 07:49:52 2003
++++ Makefile Thu May 1 18:53:05 2003
+@@ -1,15 +1,14 @@
+ all:ttt
+-CC=gcc
+ CC_GTK_FLAGS=`gtk-config --cflags`
+ LINK_GTK_FLAGS=`gtk-config --libs`
+ FLAGS=-c -Wall
+ ttt.h:ai.h gui.h
+ main.o:main.c ttt.h
+- $(CC) $(FLAGS) main.c
++ $(CC) $(CFLAGS) -c main.c
+ gui.o:gui.c ttt.h gui.h
+- $(CC) $(FLAGS) gui.c $(CC_GTK_FLAGS)
+-ai.o:ai.c ttt.h ai.h
+- $(CC) $(FLAGS) ai.c
++ $(CC) $(CFLAGS) -c gui.c $(CC_GTK_FLAGS)
++ai.o:ai.c ttt.h ai.h
++ $(CC) $(CFLAGS) -c ai.c
+ ttt:main.o gui.o ai.o
+ $(CC) $(LINK_FLAGS) $(LINK_GTK_FLAGS) $^ -o $@
+ clean:
diff --git a/games/tictactoe3d/pkg-descr b/games/tictactoe3d/pkg-descr
new file mode 100644
index 000000000000..0580a150c127
--- /dev/null
+++ b/games/tictactoe3d/pkg-descr
@@ -0,0 +1,4 @@
+This is a simple "3D" tic tac toe game you can play
+against the computer.
+
+WWW: http://www.che.iitm.ac.in/~ch99057/software
diff --git a/games/tictactoe3d/pkg-plist b/games/tictactoe3d/pkg-plist
new file mode 100644
index 000000000000..b1fe57667971
--- /dev/null
+++ b/games/tictactoe3d/pkg-plist
@@ -0,0 +1 @@
+bin/tictactoe3d