diff --git a/games/xtrojka/Makefile b/games/xtrojka/Makefile index 10cc1ee9df26..afdd323fc4f1 100644 --- a/games/xtrojka/Makefile +++ b/games/xtrojka/Makefile @@ -1,30 +1,30 @@ PORTNAME= xtrojka PORTVERSION= 1.2.3 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games MASTER_SITES= SUNSITE/games/arcade/tetris DISTNAME= ${PORTNAME}${PORTVERSION:C/\.//g} MAINTAINER= ports@edwinm.ik.nu COMMENT= Game of skill similar to T*tris USES= xorg USE_XORG= x11 xt xorgproto xaw xmu xext MAKE_JOBS_UNSAFE= yes INSTALL_TARGET= install PREFIX=${STAGEDIR}${PREFIX} WRKSRC= ${WRKDIR}/${DISTNAME} .include post-patch: .if ${OPSYS} == FreeBSD @${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS=-Wno-error=incompatible-function-pointer-types |g' \ ${WRKSRC}/Makefile .endif pre-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/xtrojka .include diff --git a/games/xtrojka/files/patch-scores.c b/games/xtrojka/files/patch-scores.c new file mode 100644 index 000000000000..0b726e648963 --- /dev/null +++ b/games/xtrojka/files/patch-scores.c @@ -0,0 +1,19 @@ +--- scores.c.orig ++++ scores.c +@@ -15,6 +15,7 @@ + + #include "_strdefs.h" + ++#include + #include + #include + #include +@@ -36,8 +37,6 @@ + + extern flag is_wizard; + extern time_t last_time; +- +-extern int errno; + + int position; + diff --git a/games/xtrojka/files/patch-slist.c b/games/xtrojka/files/patch-slist.c new file mode 100644 index 000000000000..f040bb90ca7f --- /dev/null +++ b/games/xtrojka/files/patch-slist.c @@ -0,0 +1,19 @@ +--- slist.c.orig ++++ slist.c +@@ -11,6 +11,7 @@ + + #include "debug.h" + ++#include + #include + #include + #include +@@ -38,8 +39,6 @@ + extern SCORES scores[NUMSCORES]; + extern SCORES old_scores[NUMSCORES]; + extern SCORES cur; +- +-extern int errno; + + extern int position; + extern GAME_STATE game_state;