mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-07 11:49:40 +00:00
Add a patch to open the Opening Book in read-only mode if r/w fails.
This lets non-root users use the system-wide Opening Book as well.
This commit is contained in:
parent
7df1eba093
commit
ad7562548d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=278413
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= gnuchess
|
||||
PORTVERSION= 6.0.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_GNU}
|
||||
MASTER_SITE_SUBDIR= chess
|
||||
@ -37,6 +38,9 @@ CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}" MKDIR_P="${MKDIR}"
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS:S/"//g}|g ; \
|
||||
s|-pthread ||g' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e '/BookFile = fopen/{p;s/B.*/if (BookFile == NULL)\
|
||||
BookFile = fopen(full_file_name,"rb");/;}' \
|
||||
${WRKSRC}/src/adapter/book.cpp
|
||||
|
||||
post-build:
|
||||
.if defined(WITH_OPENING_BOOK)
|
||||
|
Loading…
x
Reference in New Issue
Block a user