summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>1999-04-13 14:43:17 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>1999-04-13 14:43:17 +0000
commit3d1a4dbf032aabf756efa8ad575a36594df9dc98 (patch)
tree710eef6c6779ec30f4821dc166402565a444950a /games
parentTo compile on FreeBSD/alpha (diff)
Arithmetic quiz program for X Window System
PR: 7827 Submitted by: Andrey Zakhvatov andy@icc.surw.chel.su
Notes
Notes: svn path=/head/; revision=17839
Diffstat (limited to 'games')
-rw-r--r--games/garith/Makefile30
-rw-r--r--games/garith/distinfo1
-rw-r--r--games/garith/files/patch-aa35
-rw-r--r--games/garith/files/patch-ab29
-rw-r--r--games/garith/pkg-comment1
-rw-r--r--games/garith/pkg-descr5
-rw-r--r--games/garith/pkg-plist7
7 files changed, 108 insertions, 0 deletions
diff --git a/games/garith/Makefile b/games/garith/Makefile
new file mode 100644
index 000000000000..e37aa22fe2ad
--- /dev/null
+++ b/games/garith/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: garith
+# Version required: 2.1
+# Date created: 5 August 1998
+# Whom: Andrey Zakhvatov
+#
+# $Id$
+#
+
+DISTNAME= garith-2.1
+CATEGORIES= games
+MASTER_SITES= http://www.cnm-vra.com/micah/garith/
+
+MAINTAINER= andy@icc.surw.chel.su
+
+LIB_DEPENDS= gdk12.1:${PORTSDIR}/x11-toolkits/gtk12
+
+ALL_TARGET=
+USE_X_PREFIX= yes
+WRKSRC= ${WRKDIR}/garith
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/garith ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${PREFIX}/share/doc/garith
+.for file in BUGS COPYING HISTORY README TODO
+ @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/garith
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/garith/distinfo b/games/garith/distinfo
new file mode 100644
index 000000000000..10203bf38dc8
--- /dev/null
+++ b/games/garith/distinfo
@@ -0,0 +1 @@
+MD5 (garith-2.1.tar.gz) = 05bd81423e7a7c343b2f3f63ca9b24f4
diff --git a/games/garith/files/patch-aa b/games/garith/files/patch-aa
new file mode 100644
index 000000000000..8b3b5747dcae
--- /dev/null
+++ b/games/garith/files/patch-aa
@@ -0,0 +1,35 @@
+--- Makefile.orig Thu Sep 18 13:03:00 1997
++++ Makefile Fri Mar 19 18:15:00 1999
+@@ -1,26 +1,22 @@
+ # Makefile adapted from that in the GMix distribution, thanks.
+ CC=gcc
++GTK_FLAGS=`gtk12-config --cflags` `gtk12-config --libs`
+ LINK=gcc
+ INCDIR=
+ LIBDIR=-L/usr/X11R6/lib
+-LDLIBS=-lgnome -lgnomeui -lgdk -lgtk -lglib -lm
+-OPTFLAGS= -m486 -O2 -Wall
++#LDLIBS=-lgnome -lgnomeui -lgdk -lgtk -lglib -lm
++#OPTFLAGS= -m486 -O2 -Wall
+ DEST=garith
+
+ OBJS=garith.o
+ SRCS=garith.c
+
+-CFLAGS= $(OPTFLAGS) $(DEFINES) $(INCDIR)
++CFLAGS= $(OPTFLAGS) $(DEFINES) $(INCDIR) $(GTK_FLAGS)
+ LFLAGS= $(LIBDIR) $(LDLIBS)
+
+-$(DEST) : $(OBJS)
+- $(LINK) $(CFLAGS) -o $@ $(OBJS) $(LFLAGS)
++$(DEST) : garith.c
++ $(CC) -Wall $(GTK_FLAGS) garith.c -o garith ${CFLAGS}
+
+ clean:
+ rm -f *~
+ rm -f *.o $(DEST)
+-
+-.c.o:
+- $(CC) $(CFLAGS) -c $<
+-
+-garith.o: garith.c
diff --git a/games/garith/files/patch-ab b/games/garith/files/patch-ab
new file mode 100644
index 000000000000..8571b9ee232f
--- /dev/null
+++ b/games/garith/files/patch-ab
@@ -0,0 +1,29 @@
+--- garith.c Wed Sep 17 23:47:03 1997
++++ /home/andy/tmp/wrk/garith.c Wed Aug 5 13:55:44 1998
+@@ -24,7 +24,7 @@
+ */
+
+ #include <gtk/gtk.h> /* GTK stuff */
+-#include <gnome.h> /* GNOME stuff */
++/* #include <gnome.h> /* GNOME stuff */
+ #include <stdlib.h>
+ #include <time.h> /* we use time as seed for rand() */
+
+@@ -76,7 +76,7 @@
+
+ gulong num1, num2;
+ guint right = 0, done = 0;
+-gldouble less_than;
++double less_than;
+ gchar op;
+ time_t starttime;
+
+@@ -643,7 +643,7 @@
+ gnome_init() is called by all gnome apps. */
+
+ gtk_init(&argc, &argv);
+- gnome_init(&argc, &argv);
++ /* gnome_init(&argc, &argv); */
+
+ /* Make the windows */
+
diff --git a/games/garith/pkg-comment b/games/garith/pkg-comment
new file mode 100644
index 000000000000..37d234c79772
--- /dev/null
+++ b/games/garith/pkg-comment
@@ -0,0 +1 @@
+Arithmetic quiz program for X Window System.
diff --git a/games/garith/pkg-descr b/games/garith/pkg-descr
new file mode 100644
index 000000000000..47a8b3f9c9e5
--- /dev/null
+++ b/games/garith/pkg-descr
@@ -0,0 +1,5 @@
+G Arith is a GTK+ based arithmetic quiz program for X Window System.
+It is fairly self-explanatory, so there is no documentation about
+program usage much at all.
+
+http://www.cnm-vra.com/micah/garith
diff --git a/games/garith/pkg-plist b/games/garith/pkg-plist
new file mode 100644
index 000000000000..e6715e070ee7
--- /dev/null
+++ b/games/garith/pkg-plist
@@ -0,0 +1,7 @@
+bin/garith
+share/doc/garith/BUGS
+share/doc/garith/COPYING
+share/doc/garith/HISTORY
+share/doc/garith/README
+share/doc/garith/TODO
+@dirrm share/doc/garith