diff options
author | marino <marino@FreeBSD.org> | 2016-08-23 23:29:09 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2016-08-23 23:29:09 +0800 |
commit | d533a3c53ca471d3574323209f314dfbbfdffe09 (patch) | |
tree | 283de5388b655e2c214967ba93d0d2a2116c1467 /games | |
parent | cdf7b0cb894ab9f6aa749c6a993736c67682e842 (diff) | |
download | freebsd-ports-gnome-d533a3c53ca471d3574323209f314dfbbfdffe09.tar.gz freebsd-ports-gnome-d533a3c53ca471d3574323209f314dfbbfdffe09.tar.zst freebsd-ports-gnome-d533a3c53ca471d3574323209f314dfbbfdffe09.zip |
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".
Diffstat (limited to 'games')
-rw-r--r-- | games/eif/Makefile | 5 | ||||
-rw-r--r-- | games/eif/files/patch-src_games.c | 18 |
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 { |