1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/games/3dc/Makefile
Fernando Apesteguía 339d443d7b games/3dc: Fix crash on boot
The call to XtVaGetValues returns a value that overwrites the `bc` variable and
smashes the stack. Use a long instead.

PR:	255765
Reported by:	grahamperrin@gmail.com
Tested by:	rhurling@
MFH:		2021Q2
2021-05-13 14:51:00 +02:00

40 lines
891 B
Makefile

# Created by: Andrey Zakhvatov
PORTNAME= 3dc
PORTVERSION= 0.8.1
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 <bsd.port.mk>