View | Details | Raw Unified | Return to bug 159470 | Differences between
and this patch

Collapse All | Expand All

(-)games/znibbles/Makefile (-9 / +46 lines)
Lines 7-28 Link Here
7
7
8
PORTNAME=	znibbles
8
PORTNAME=	znibbles
9
PORTVERSION=	0.0.7
9
PORTVERSION=	0.0.7
10
PORTREVISION=	5
10
PORTREVISION=	6
11
CATEGORIES=	games
11
CATEGORIES=	games
12
MASTER_SITES=	http://koala.ilog.fr/ftp/pub/games/znibbles/
12
MASTER_SITES=	http://old.koalateam.com/ftp/pub/games/znibbles/ \
13
		http://www.jfouffa.com/vmallet/archives/
13
14
14
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	A multi-player networked nibbles game
16
COMMENT=	A multi-player networked nibbles game
16
17
17
DEPRECATED=	No more public distfiles
18
LICENSE=	GPLv2 GPLv3
18
EXPIRATION_DATE=	2011-09-01
19
LICENSE_COMB=	dual
20
21
OPTIONS=	GTK "Build GTK+ client" on
19
22
20
USE_MOTIF=	yes
23
USE_MOTIF=	yes
21
USE_GNOME=	gtk12
24
WANT_GNOME=	yes
22
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
23
CONFIGURE_ARGS=	--without-motif \
26
MAKE_JOBS_SAFE=	yes
24
		--disable-motif
27
28
MAN6=		nibbles.6 znibbles.6 znibblesX.6
29
PLIST_FILES=	bin/nibbles bin/znibbles bin/znibblesX
30
31
.include <bsd.port.pre.mk>
25
32
26
MAN6=	nibbles.6 znibbles.6 gznibbles.6 znibblesX.6
33
.if defined(WITHOUT_GTK)
34
CONFIGURE_ARGS+=--disable-gtk
35
.else
36
USE_GNOME+=	gtk12
37
MAN6+=		gznibbles.6
38
PLIST_FILES+=	bin/gznibbles
39
.endif
40
41
post-extract:
42
	@${RM} -f ${WRKSRC}/src/getopt.h
43
#	@${LN} -sf /usr/include/getopt.h ${WRKSRC}/src
44
45
post-patch:
46
	@${REINPLACE_CMD} -e \
47
		'/^SUBDIRS/s|doc||g' ${WRKSRC}/Makefile.in
48
	@${REINPLACE_CMD} -e \
49
		'/^getopt/d ; \
50
		 s|getopt.[cho]||g ; \
51
		 s|getopt1.[co]||g' ${WRKSRC}/src/Makefile.in
52
.for dir in GTK Motif X11
53
	@${REINPLACE_CMD} -e \
54
		's|../getopt.h||g' ${WRKSRC}/src/${dir}/Makefile.in
55
.endfor
56
57
post-install:
58
	${INSTALL_MAN} ${WRKSRC}/doc/nibbles.6 ${MAN6PREFIX}/man/man6
59
	${INSTALL_MAN} ${WRKSRC}/doc/znibbles.6 ${MAN6PREFIX}/man/man6
60
	${INSTALL_MAN} ${WRKSRC}/doc/znibblesX.6 ${MAN6PREFIX}/man/man6
61
.if !defined(WITHOUT_GTK)
62
	${INSTALL_MAN} ${WRKSRC}/doc/gznibbles.6 ${MAN6PREFIX}/man/man6
63
.endif
27
64
28
.include <bsd.port.mk>
65
.include <bsd.port.post.mk>
(-)games/znibbles/files/patch-src::getopt.c (-10 lines)
Lines 1-10 Link Here
1
--- src/getopt.c	Tue Apr 27 09:38:18 1999
2
+++ src/getopt.c	Sat Oct 26 00:48:50 2002
3
@@ -40,6 +40,7 @@
4
 #endif
5
 
6
 #include <stdio.h>
7
+#include <string.h>
8
 
9
 /* Comment out all this code if we are using the GNU C Library, and are not
10
    actually compiling the library itself.  This code is part of the GNU C
(-)games/znibbles/files/patch-src__Motif__menus.C (+20 lines)
Line 0 Link Here
1
--- src/Motif/menus.C.orig	1999-04-14 23:50:14.000000000 +0900
2
+++ src/Motif/menus.C	2011-08-11 02:41:55.000000000 +0900
3
@@ -52,7 +52,7 @@
4
 {
5
   w = w; cbs = cbs;
6
 
7
-  switch( (int) client_data) {
8
+  switch( (unsigned long) client_data) {
9
   case ItemFileQuit:
10
     quit();
11
     break;
12
@@ -64,7 +64,7 @@
13
 {
14
   w = w; cbs = cbs;
15
 
16
-  switch( (int) client_data) {
17
+  switch( (unsigned long) client_data) {
18
   case ItemHelpAbout:
19
     if (NULL != mythis->about)
20
       mythis->about->show_dialog();
(-)games/znibbles/pkg-descr (-1 / +1 lines)
Lines 18-21 Link Here
18
18
19
Run "nibbles" first as the ZNibbles server, and then run its clients to play.
19
Run "nibbles" first as the ZNibbles server, and then run its clients to play.
20
20
21
WWW: http://www.jfouffa.com/v
21
WWW: http://www.jfouffa.com/vmallet/ZNibbles.html
(-)games/znibbles/pkg-plist (-3 lines)
Lines 1-3 Link Here
1
bin/nibbles
2
bin/gznibbles
3
bin/znibblesX

Return to bug 159470