1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/games/gnuchess/Makefile
Muhammad Moinur Rahman 95274bf4f9 */*: Fix build with llvm16 on 13.2-STABLE
As like as HEAD(14.0-RELEASE) llvm16 was merged in base for 13.2-STABLE
with the OSVERSION 1302507.

- Utilize USE_CXXSTD=c++14 or similar solution where applicable
- Update conditionals to addtionally check for OSVERSION greater than
  1302507 and less than 1400000

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-07-26 02:48:20 +02:00

51 lines
1.3 KiB
Makefile

PORTNAME= gnuchess
PORTVERSION= 6.2.9
CATEGORIES= games
MASTER_SITES= GNU/chess
# The DISTFILES here is explicitly needed because it can be extended later.
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= bofh@FreeBSD.org
COMMENT= Classic Gnu Chess
WWW= https://savannah.gnu.org/projects/chess
LICENSE= GPLv3+
USES= cpe shebangfix
CPE_VENDOR= gnu
CPE_PRODUCT= chess
USE_CXXSTD= c++14
SHEBANG_FILES= doc/quotes.rb
GNU_CONFIGURE= yes
CONFIGURE_ENV= MKDIR_P="${MKDIR}"
INFO= gnuchess
OPTIONS_DEFINE= OPENING_BOOK DOCS NLS
OPTIONS_DEFAULT= OPENING_BOOK
OPTIONS_SUB= yes
OPENING_BOOK_DESC= Install opening book (25 MB download)
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
OPENING_BOOK_DISTFILES= book_1.02.pgn.gz
OPENING_BOOK_EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
post-build-OPENING_BOOK-on:
zcat ${DISTDIR}/book_1.02.pgn.gz > ${WRKSRC}/src/book.pgn
cd ${WRKSRC}/src && ( ${ECHO} book add book.pgn; sleep 1; ${ECHO} quit ) | ./gnuchess
@${REINPLACE_CMD} -e '/Book =/s/false/true/' ${WRKSRC}/src/gnuchess.ini
post-install:
cd ${STAGEDIR}${PREFIX}/bin && ${LN} -f gnuchess gnuchessx
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
${RM} ${STAGEDIR}${DOCSDIR}/gnuchess.info
.include <bsd.port.mk>