Skip to content

Commit

Permalink
games/gnuchess: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Pet portclippy
- Adopt port

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jun 26, 2023
1 parent 3237ce1 commit 1f66e60
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions games/gnuchess/Makefile
Expand Up @@ -5,24 +5,29 @@ MASTER_SITES= GNU/chess
# The DISTFILES here is explicitly needed because it can be extended later.
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER= ports@FreeBSD.org
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

SHEBANG_FILES= doc/quotes.rb

GNU_CONFIGURE= yes
CONFIGURE_ENV= MKDIR_P="${MKDIR}"

INFO= gnuchess
USES= cpe shebangfix
SHEBANG_FILES= doc/quotes.rb
CPE_PRODUCT= chess
CPE_VENDOR= gnu

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

Expand All @@ -33,6 +38,10 @@ DISTFILES+= book_1.02.pgn.gz
EXTRACT_ONLY+= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
.endif

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CPPFLAGS+= -Dregister=
.endif

post-build:
.if ${PORT_OPTIONS:MOPENING_BOOK}
zcat ${DISTDIR}/book_1.02.pgn.gz > ${WRKSRC}/src/book.pgn
Expand Down

0 comments on commit 1f66e60

Please sign in to comment.