summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2016-08-23 15:29:09 +0000
committerJohn Marino <marino@FreeBSD.org>2016-08-23 15:29:09 +0000
commit96aa446b358bc06851dc6d487ba16d5eb94af7e5 (patch)
tree283de5388b655e2c214967ba93d0d2a2116c1467
parent- Fix codelite install for Clang 3.4, 3.5 and 3.6. (diff)
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".
Notes
Notes: svn path=/head/; revision=420701
-rw-r--r--games/eif/Makefile5
-rw-r--r--games/eif/files/patch-src_games.c18
2 files changed, 21 insertions, 2 deletions
diff --git a/games/eif/Makefile b/games/eif/Makefile
index b5a23a5984ef..8d05c2638fd8 100644
--- a/games/eif/Makefile
+++ b/games/eif/Makefile
@@ -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>
diff --git a/games/eif/files/patch-src_games.c b/games/eif/files/patch-src_games.c
new file mode 100644
index 000000000000..7f3c4663fbf9
--- /dev/null
+++ b/games/eif/files/patch-src_games.c
@@ -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 {