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

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

Revision 1.27, Fri Dec 4 20:45:20 2020 UTC (3 years, 2 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.26: +2 -2 lines

Revbump packages with a runtime Python dep but no version prefix.

For the Python 3.8 default switch.

# $NetBSD: Makefile,v 1.27 2020/12/04 20:45:20 nia Exp $
#

DISTNAME=		scid-3.6.1
PKGREVISION=		13
CATEGORIES=		games
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=scid/}

MAINTAINER=		luapzz@gmail.com
HOMEPAGE=		http://scid.sourceforge.net/
COMMENT=		Shane's Chess Information Database

USE_PKGLOCALEDIR=	yes
HAS_CONFIGURE=		yes
USE_LANGUAGES=		c c++
USE_TOOLS+=		gmake

# Make the LINK command CXX and the LDFLAGS.
LINK=			${CXX} ${LDFLAGS}

CONFIGURE_ENV+=		TCLCONFIG_SH=${TCLCONFIG_SH:Q}
CONFIGURE_ARGS+=	BINDIR=${PREFIX}/bin SHAREDIR=${PREFIX}/share/scid
CONFIGURE_ARGS+=	COMPILE=${CXX:Q} OPTIMIZE=${CFLAGS:Q} LINK=${LINK:Q}

SUBST_CLASSES+=		paths
SUBST_MESSAGE.paths=	Fixing paths to tcl.h and tk.h.
SUBST_STAGE.paths=	pre-configure
SUBST_FILES.paths=	configure
SUBST_SED.paths=	-e 's,@TCLPREFIX@,${BUILDLINK_PREFIX.tcl},g'
SUBST_SED.paths+=	-e 's,@TKPREFIX@,${BUILDLINK_PREFIX.tk},g'
SUBST_SED.paths+=	-e 's,@LIBDL@,${BUILDLINK_LDADD.dl},g'

MAKE_ENV+=		X_LDFLAGS=${X11_LDFLAGS:Q}

REPLACE_PYTHON+=	scripts/pgnfix.py

# src/textbuf.h: In member function 'void TextBuffer::ClearTranslation(char)':
# src/textbuf.h:70:57: error: array subscript has type 'char' [-Werror=char-subscripts]
#      void     ClearTranslation (char ch) { Translation[ch] = NULL; }
# Maybe fix this later.
BUILDLINK_TRANSFORM+=	rm:-Werror=char-subscripts

.include "../../lang/python/application.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"