svn commit: r420701 - in head/games/eif: . files

John Marino marino at FreeBSD.org
Tue Aug 23 15:29:11 UTC 2016


Author: marino
Date: Tue Aug 23 15:29:09 2016
New Revision: 420701
URL: https://svnweb.freebsd.org/changeset/ports/420701

Log:
  games/eif: Document and fix ncurses requirement, use errno.h
  
  The ncurses work is covered by the ncurses infrastructure blanket and the
  use of errno.h header over extern errno is "just fix it".

Added:
  head/games/eif/files/
  head/games/eif/files/patch-src_games.c   (contents, props changed)
Modified:
  head/games/eif/Makefile

Modified: head/games/eif/Makefile
==============================================================================
--- head/games/eif/Makefile	Tue Aug 23 15:28:53 2016	(r420700)
+++ head/games/eif/Makefile	Tue Aug 23 15:29:09 2016	(r420701)
@@ -3,7 +3,7 @@
 
 PORTNAME=	eif
 PORTVERSION=	1.3.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games ipv6
 MASTER_SITES=	http://www.stack.nl/~marcolz/empire/ \
 		ftp://ftp.stack.nl/pub/users/johans/eif/
@@ -12,7 +12,7 @@ MAINTAINER=	johans at FreeBSD.org
 COMMENT=	Empire text client
 
 GNU_CONFIGURE=	yes
-USES=		shebangfix readline
+USES=		ncurses readline shebangfix
 SHEBANG_FILES=	contrib/*.pl
 
 .include <bsd.port.pre.mk>
@@ -21,5 +21,6 @@ post-patch:
 	@${REINPLACE_CMD} -e '/curout_isapipe/d' ${WRKSRC}/src/data.h
 	@${REINPLACE_CMD} -e '/cd .(pkglibdir)/s/cd /&$$(DESTDIR)/' \
 		${WRKSRC}/contrib/Makefile.in
+	@${REINPLACE_CMD} -e 's at lcurses@lncurses at g' ${WRKSRC}/configure
 
 .include <bsd.port.post.mk>

Added: head/games/eif/files/patch-src_games.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/eif/files/patch-src_games.c	Tue Aug 23 15:29:09 2016	(r420701)
@@ -0,0 +1,18 @@
+--- src/games.c.orig	2003-09-25 15:54:27 UTC
++++ src/games.c
+@@ -25,14 +25,13 @@
+ #ifdef	HAVE_UNISTD_H
+ #include	<unistd.h>
+ #endif				/* HAVE_UNISTD_H */
++#include	<errno.h>
+ 
+ #include	"cntl.h"
+ #include	"data.h"
+ #include	"games.h"
+ #include	"print.h"
+ 
+-extern int	errno;
+-
+ #define MAX_GAMES 50
+ 
+ typedef struct {


More information about the svn-ports-all mailing list