Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2016 15:29:10 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r420701 - in head/games/eif: . files
Message-ID:  <201608231529.u7NFTAIo033457@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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@lcurses@lncurses@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 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608231529.u7NFTAIo033457>