diff options
author | sat <sat@FreeBSD.org> | 2007-08-05 00:02:50 +0800 |
---|---|---|
committer | sat <sat@FreeBSD.org> | 2007-08-05 00:02:50 +0800 |
commit | 0743042b857dcf0570851780d8c7943a7e384750 (patch) | |
tree | c99b473523a36fb496b21c0ad89bf368d1acf0c8 | |
parent | 6e037501a6ff7f440396d951526da3675ec99089 (diff) | |
download | freebsd-ports-gnome-0743042b857dcf0570851780d8c7943a7e384750.tar.gz freebsd-ports-gnome-0743042b857dcf0570851780d8c7943a7e384750.tar.zst freebsd-ports-gnome-0743042b857dcf0570851780d8c7943a7e384750.zip |
- More mirrors
- General clean-up
-rw-r--r-- | games/garith/Makefile | 28 | ||||
-rw-r--r-- | games/garith/files/patch-aa | 26 | ||||
-rw-r--r-- | games/garith/files/patch-ab | 29 | ||||
-rw-r--r-- | games/garith/pkg-descr | 1 | ||||
-rw-r--r-- | games/garith/pkg-plist | 7 |
5 files changed, 19 insertions, 72 deletions
diff --git a/games/garith/Makefile b/games/garith/Makefile index c426de674370..caf795420447 100644 --- a/games/garith/Makefile +++ b/games/garith/Makefile @@ -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> diff --git a/games/garith/files/patch-aa b/games/garith/files/patch-aa deleted file mode 100644 index 19fb332dadd4..000000000000 --- a/games/garith/files/patch-aa +++ /dev/null @@ -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) diff --git a/games/garith/files/patch-ab b/games/garith/files/patch-ab deleted file mode 100644 index 8571b9ee232f..000000000000 --- a/games/garith/files/patch-ab +++ /dev/null @@ -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 */ - diff --git a/games/garith/pkg-descr b/games/garith/pkg-descr index 862f5bfab06c..2cddff4c53e5 100644 --- a/games/garith/pkg-descr +++ b/games/garith/pkg-descr @@ -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 diff --git a/games/garith/pkg-plist b/games/garith/pkg-plist deleted file mode 100644 index 7579e6f1c5d6..000000000000 --- a/games/garith/pkg-plist +++ /dev/null @@ -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 |