1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- More mirrors

- General clean-up
This commit is contained in:
Andrew Pantyukhin 2007-08-04 16:02:50 +00:00
parent 08004f17e6
commit e4a7e34250
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197083
5 changed files with 19 additions and 72 deletions

View File

@ -7,25 +7,33 @@
PORTNAME= garith
PORTVERSION= 2.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= http://www.cnm-vra.com/micah/garith/
MASTER_SITES= http://www.cnm-vra.com/micah/garith/ CENKES
# Latest version (2.3.1) does not build with gtk 1.2.10
MAINTAINER= ports@FreeBSD.org
COMMENT= Arithmetic quiz program for X Window System
ALL_TARGET= # empty
USE_X_PREFIX= yes
USE_GNOME= gtk12
WRKSRC= ${WRKDIR}/garith
CFLAGS+= `${GTK_CONFIG} --cflags`
LDFLAGS= `${GTK_CONFIG} --libs`
PORTDOCS= BUGS HISTORY README TODO
PLIST_FILES= bin/garith
post-patch:
@${REINPLACE_CMD} -e 's|gldouble|double|;/gnome/d;/all.*apps/d'\
${WRKSRC}/garith.c
do-build:
cd ${WRKSRC}&&${CC} ${CFLAGS} -o garith garith.c ${LDFLAGS}
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
${INSTALL_PROGRAM} ${WRKSRC}/garith ${PREFIX}/bin/
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@cd ${WRKSRC}&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
.include <bsd.port.mk>

View File

@ -1,26 +0,0 @@
--- Makefile.orig Thu Sep 18 13:03:00 1997
+++ Makefile Wed Mar 29 21:49:16 2000
@@ -1,16 +1,16 @@
# Makefile adapted from that in the GMix distribution, thanks.
-CC=gcc
-LINK=gcc
-INCDIR=
-LIBDIR=-L/usr/X11R6/lib
-LDLIBS=-lgnome -lgnomeui -lgdk -lgtk -lglib -lm
-OPTFLAGS= -m486 -O2 -Wall
+CC?=gcc
+LINK=$(CC)
+INCDIR=`${GTK_CONFIG} --cflags`
+LIBDIR=`${GTK_CONFIG} --libs`
+#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)
LFLAGS= $(LIBDIR) $(LDLIBS)
$(DEST) : $(OBJS)

View File

@ -1,29 +0,0 @@
--- 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 */

View File

@ -3,3 +3,4 @@ It is fairly self-explanatory, so there is no documentation about
program usage much at all.
WWW: http://www.cnm-vra.com/micah/garith/
Author: Micah Stetson

View File

@ -1,7 +0,0 @@
bin/garith
%%PORTDOCS%%share/doc/garith/BUGS
%%PORTDOCS%%share/doc/garith/COPYING
%%PORTDOCS%%share/doc/garith/HISTORY
%%PORTDOCS%%share/doc/garith/README
%%PORTDOCS%%share/doc/garith/TODO
%%PORTDOCS%%@dirrm share/doc/garith