[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / stockfish

File: [cvs.NetBSD.org] / pkgsrc / games / stockfish / Makefile (download)

Revision 1.4, Mon Nov 21 18:20:42 2022 UTC (2 months, 2 weeks ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.3: +2 -1 lines

*: Re-apply SunOS linker argument removals.

These are currently duplicated in mk/platform/SunOS.mk but the generic
removals will be removed soon in favour of per-package removals, due to
flags getting leaked into installed files.

# $NetBSD: Makefile,v 1.4 2022/11/21 18:20:42 jperkin Exp $

DISTNAME=	stockfish-9-src
PKGNAME=	${DISTNAME:S/-src//}
CATEGORIES=	games
MASTER_SITES=	https://stockfish.s3.amazonaws.com/
EXTRACT_SUFX=	.zip

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://stockfishchess.org/
COMMENT=	Strong open source chess engine
LICENSE=	gnu-gpl-v3

WRKSRC=		${WRKDIR}/src
USE_LANGUAGES=	c++
USE_TOOLS+=	gmake

INSTALLATION_DIRS=	bin share/doc/stockfish

BUILDLINK_TRANSFORM.NetBSD+=	rm:-flto rm:-m32
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--no-as-needed

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/stockfish ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKDIR}/Readme.md ${DESTDIR}${PREFIX}/share/doc/stockfish

.include "../../mk/atomic64.mk"
.include "../../mk/bsd.pkg.mk"