1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Arithmetic quiz program for X Window System

PR:		7827
Submitted by:	Andrey Zakhvatov andy@icc.surw.chel.su
This commit is contained in:
Satoshi Taoka 1999-04-13 14:43:17 +00:00
parent 08984a68ae
commit 3d1a4dbf03
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=17839
7 changed files with 108 additions and 0 deletions

30
games/garith/Makefile Normal file
View File

@ -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>

1
games/garith/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (garith-2.1.tar.gz) = 05bd81423e7a7c343b2f3f63ca9b24f4

View File

@ -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

View File

@ -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 */

1
games/garith/pkg-comment Normal file
View File

@ -0,0 +1 @@
Arithmetic quiz program for X Window System.

5
games/garith/pkg-descr Normal file
View File

@ -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

7
games/garith/pkg-plist Normal file
View File

@ -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