summaryrefslogtreecommitdiff
path: root/games/garith/files
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/garith/files
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/garith/files')
-rw-r--r--games/garith/files/patch-aa35
-rw-r--r--games/garith/files/patch-ab29
2 files changed, 64 insertions, 0 deletions
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 */
+