games/stockfish: fix build with GCC-based architectures

PR:		234410
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
Approved by:	maintainer timeout (execve@gmail.com, >2 weeks)
This commit is contained in:
Steve Wills 2019-01-14 15:44:21 +00:00
parent e375fe5a48
commit 7fb5219c5f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=490272

View File

@ -61,6 +61,8 @@ ALL_TARGET= ${TGTBLD} ARCH=${MYARCH} COMP=${MYCC}
post-patch: post-patch:
@${REINPLACE_CMD} -e "s/^PREFIX =/PREFIX ?=/" ${WRKSRC}/Makefile @${REINPLACE_CMD} -e "s/^PREFIX =/PREFIX ?=/" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s/CXX=g++/CXX=g++${GCC_DEFAULT}/" \
${WRKSRC}/Makefile
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/stockfish ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/stockfish ${STAGEDIR}${PREFIX}/bin