diff --git a/games/3dc/Makefile b/games/3dc/Makefile index 6387671812dd..bb7a5b526c20 100644 --- a/games/3dc/Makefile +++ b/games/3dc/Makefile @@ -1,39 +1,39 @@ # Created by: Andrey Zakhvatov PORTNAME= 3dc PORTVERSION= 0.8.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= SUNSITE/games/strategy DISTNAME= 3Dc-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= 3-Dimensional Chess for X Window System LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/../GPL LIB_DEPENDS= libXaw3d.so:x11-toolkits/Xaw3d USES= perl5 xorg USE_PERL5= build USE_XORG= x11 xaw xext xmu xpm xt WRKSRC= ${WRKDIR}/3Dc/src DOCSDIR= ${PREFIX}/share/doc/3Dc OPTIONS_DEFINE= DOCS post-patch: .for file in init.c main.c piece.c stack.c xif.c @${REINPLACE_CMD} -i '' -e 's|malloc.h|stdlib.h|' \ ${WRKSRC}/${file} .endfor do-install: ${INSTALL_PROGRAM} ${WRKSRC}/3Dc ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in 3Dc-rules.html ACKNOWLEDGEMENTS GPL README TODO ${INSTALL_DATA} ${WRKSRC}/../${file} ${STAGEDIR}${DOCSDIR} .endfor .include diff --git a/games/3dc/files/patch-xif.c b/games/3dc/files/patch-xif.c new file mode 100644 index 000000000000..b184d0136707 --- /dev/null +++ b/games/3dc/files/patch-xif.c @@ -0,0 +1,11 @@ +--- xif.c.orig 2021-05-12 08:22:05 UTC ++++ xif.c +@@ -171,7 +171,7 @@ InitMainWindow( GfxInfo *gfx ) + /* undo, */ resign, + musterTitle + /* muster */; +- int bg; ++ long bg; + + form = XtVaCreateManagedWidget("form", formWidgetClass, gfx->mainWindow, + NULL);