1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Update to 2.2.1

- Changed upstream master-site to the official archive available in dropbox due to continuous
changes and having dynamic URLs.
- Respect PORTDOCS and PORTDATA
- Migrate PLIST into Makefile

PR:	ports/164140
Submitted by: maintainer, Gautam Mani <gautam at execve.net>
Approved by:	rene (mentor)
This commit is contained in:
Jason Helfman 2012-01-18 19:56:54 +00:00
parent 1856510753
commit d99bcbe0b4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289421
3 changed files with 19 additions and 14 deletions

View File

@ -6,15 +6,14 @@
#
PORTNAME= stockfish
PORTVERSION= 2.1.1
PORTREVISION= 1
PORTVERSION= 2.2.1
CATEGORIES= games
MASTER_SITES= http://f.cl.ly/items/1W3R1i3c3Y2n0m133q15/:src \
MASTER_SITES= http://dl.dropbox.com/u/2116588/sf-archive/:src \
http://www.execve.net/sf/:src \
http://f.cl.ly/items/1y0Q3P2n0I2S0g0Y100E/:book \
http://www.execve.net/sf/:book
DISTNAME= sf-211-linux-eng
DISTFILES= sf-211-linux-eng.zip:src \
DISTNAME= stockfish-221-ja
DISTFILES= stockfish-221-ja.zip:src \
sf-211-book.zip:book
MAINTAINER= execve@gmail.com
@ -27,6 +26,12 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_GMAKE= yes
MYARCH= ${ARCH}
BOOKDIR= sf-211-book
PORTDOCS= Readme.txt polyglot.ini
PORTDATA= Book.bin
PLIST_FILES= bin/stockfish
PLIST_DIRSTRY= share/data/${PORTNAME} \
share/docs/${PORTNAME}
ALL_TARGET= build ARCH=${MYARCH}
@ -63,10 +68,16 @@ BROKEN= Does not compile on ia64, powerpc, or sparc64
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/stockfish ${PREFIX}/bin/stockfish
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/Readme.txt ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/polyglot.ini ${DOCSDIR}
.endif
.if !defined(NOPORTDATA)
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/${BOOKDIR}/Book.bin ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/${BOOKDIR}/${PORTDATA} ${DATADIR}
.endif
.include <bsd.port.post.mk>

View File

@ -1,4 +1,4 @@
SHA256 (sf-211-linux-eng.zip) = 65398505d9582160a62520eb1bebe4527df7d90e3af2b88d0458919bf65c2def
SIZE (sf-211-linux-eng.zip) = 1218458
SHA256 (stockfish-221-ja.zip) = 071ea36f7d1fbc5c1b932ce89e4b342e9ec0a95d4d94d40e40803d35338850a0
SIZE (stockfish-221-ja.zip) = 2150276
SHA256 (sf-211-book.zip) = fc4b2964128278dcf076b1601a5fb7a6cc88d87d9f617d32fa82aeb05cfdff74
SIZE (sf-211-book.zip) = 8831695

View File

@ -1,6 +0,0 @@
bin/stockfish
%%DATADIR%%/Book.bin
%%DOCSDIR%%/Readme.txt
%%DOCSDIR%%/polyglot.ini
@dirrm %%DOCSDIR%%
@dirrm %%DATADIR%%