head	1.12;
access;
symbols
	pkgsrc-2026Q1:1.12.0.10
	pkgsrc-2026Q1-base:1.12
	pkgsrc-2025Q4:1.12.0.8
	pkgsrc-2025Q4-base:1.12
	pkgsrc-2025Q3:1.12.0.6
	pkgsrc-2025Q3-base:1.12
	pkgsrc-2025Q2:1.12.0.4
	pkgsrc-2025Q2-base:1.12
	pkgsrc-2025Q1:1.12.0.2
	pkgsrc-2025Q1-base:1.12
	pkgsrc-2024Q4:1.11.0.4
	pkgsrc-2024Q4-base:1.11
	pkgsrc-2024Q3:1.11.0.2
	pkgsrc-2024Q3-base:1.11
	pkgsrc-2024Q2:1.10.0.2
	pkgsrc-2024Q2-base:1.10
	pkgsrc-2024Q1:1.8.0.4
	pkgsrc-2024Q1-base:1.8
	pkgsrc-2023Q4:1.8.0.2
	pkgsrc-2023Q4-base:1.8
	pkgsrc-2023Q3:1.6.0.4
	pkgsrc-2023Q3-base:1.6
	pkgsrc-2023Q2:1.6.0.2
	pkgsrc-2023Q2-base:1.6
	pkgsrc-2023Q1:1.5.0.2
	pkgsrc-2023Q1-base:1.5
	pkgsrc-2022Q4:1.4.0.16
	pkgsrc-2022Q4-base:1.4
	pkgsrc-2022Q3:1.4.0.14
	pkgsrc-2022Q3-base:1.4
	pkgsrc-2022Q2:1.4.0.12
	pkgsrc-2022Q2-base:1.4
	pkgsrc-2022Q1:1.4.0.10
	pkgsrc-2022Q1-base:1.4
	pkgsrc-2021Q4:1.4.0.8
	pkgsrc-2021Q4-base:1.4
	pkgsrc-2021Q3:1.4.0.6
	pkgsrc-2021Q3-base:1.4
	pkgsrc-2021Q2:1.4.0.4
	pkgsrc-2021Q2-base:1.4
	pkgsrc-2021Q1:1.4.0.2
	pkgsrc-2021Q1-base:1.4
	pkgsrc-2020Q4:1.3.0.14
	pkgsrc-2020Q4-base:1.3
	pkgsrc-2020Q3:1.3.0.12
	pkgsrc-2020Q3-base:1.3
	pkgsrc-2020Q2:1.3.0.10
	pkgsrc-2020Q2-base:1.3
	pkgsrc-2020Q1:1.3.0.6
	pkgsrc-2020Q1-base:1.3
	pkgsrc-2019Q4:1.3.0.8
	pkgsrc-2019Q4-base:1.3
	pkgsrc-2019Q3:1.3.0.4
	pkgsrc-2019Q3-base:1.3
	pkgsrc-2019Q2:1.3.0.2
	pkgsrc-2019Q2-base:1.3
	pkgsrc-2019Q1:1.1.0.8
	pkgsrc-2019Q1-base:1.1
	pkgsrc-2018Q4:1.1.0.6
	pkgsrc-2018Q4-base:1.1
	pkgsrc-2018Q3:1.1.0.4
	pkgsrc-2018Q3-base:1.1
	pkgsrc-2018Q2:1.1.0.2
	pkgsrc-2018Q2-base:1.1;
locks; strict;
comment	@# @;


1.12
date	2025.01.23.23.27.29;	author riastradh;	state Exp;
branches;
next	1.11;
commitid	nbXjxSLm733ClFGF;

1.11
date	2024.08.21.11.21.41;	author markd;	state Exp;
branches;
next	1.10;
commitid	rQpD8M84t3StjGmF;

1.10
date	2024.06.09.00.46.35;	author markd;	state Exp;
branches;
next	1.9;
commitid	FKf0bS0cP9G39fdF;

1.9
date	2024.05.26.11.02.12;	author markd;	state Exp;
branches;
next	1.8;
commitid	bGgiwDVvb9fYZubF;

1.8
date	2023.11.15.22.07.47;	author gutteridge;	state Exp;
branches;
next	1.7;
commitid	kfHe6TvBrsA6TKME;

1.7
date	2023.11.02.23.47.15;	author wiz;	state Exp;
branches;
next	1.6;
commitid	TX5Xf7to0QHbR5LE;

1.6
date	2023.06.06.12.41.54;	author riastradh;	state Exp;
branches;
next	1.5;
commitid	xhspr6Z8JLQOWSrE;

1.5
date	2023.01.12.19.40.47;	author markd;	state Exp;
branches;
next	1.4;
commitid	QFYEIuzYFxnvWh9E;

1.4
date	2021.02.18.00.20.11;	author gutteridge;	state Exp;
branches;
next	1.3;
commitid	o0oAW8JgXjb5N7IC;

1.3
date	2019.04.27.21.25.56;	author markd;	state Exp;
branches;
next	1.2;
commitid	2lmbIV8yUaCW62lB;

1.2
date	2019.04.27.14.09.23;	author maya;	state Exp;
branches;
next	1.1;
commitid	YZqCEkMZ0QsbHZkB;

1.1
date	2018.04.11.11.34.57;	author markd;	state Exp;
branches;
next	;
commitid	R5b3iSIzsTag51yA;


desc
@@


1.12
log
@devel/extra-cmake-modules: Use buildlink3.mk, not TOOL_DEPENDS.

This one is borderline: should it be BUILD_DEPENDS or TOOL_DEPENDS?
It doesn't appear to vary depending on the build environment, so it
doesn't meaningfully describe the cross-builder vs the target system.
It is used only at build-time, but it doesn't have any native
executables -- they're just source code cmake scripts.

For now, it is convenient to use a buildlink3.mk file because this
enables us to explicitly expose only files under share/ECM/ -- and
not other random files installed in the prefix -- via buildlink3 to
keep dependent package builds clean.  Eventually we should have the
same mechanism for TOOL_DEPENDS but that day has not yet come.

This change creates a new use of BUILDLINK_DEPMETHOD build for
extra-cmake-modules, which is a priori risky.  Fortunately,
extra-cmake-modules has no libraries, so this is unlikely to cause
trouble.
@
text
@# $NetBSD: Makefile.common,v 1.11 2024/08/21 11:21:41 markd Exp $
#
# used by meta-pkgs/kde/applications.mk
# used by meta-pkgs/kde/kf5.mk
# used by meta-pkgs/kde/kf6.mk
# used by meta-pkgs/kde/plasma5.mk
# used by meta-pkgs/kde/plasma6.mk

MAINTAINER?=	markd@@NetBSD.org

.include "../../devel/extra-cmake-modules/buildlink3.mk"
BUILDLINK_API_DEPENDS.extra-cmake-modules+=	extra-cmake-modules>=5.19.0

USE_LANGUAGES+=	c c++
CMAKE_BUILD_DIR=	_KDE_build
.include "../../devel/cmake/build.mk"

CMAKE_CONFIGURE_ARGS+=	-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
CMAKE_CONFIGURE_ARGS+=	-DKDE_INSTALL_LIBEXECDIR=libexec
CMAKE_CONFIGURE_ARGS+=	-DKDE_INSTALL_SYSCONFDIR=${PKG_SYSCONFDIR:Q}

CMAKE_CONFIGURE_ARGS+=	-DKDE_INSTALL_XDG_EX_DIR=${PREFIX}/share/examples/kde-xdg
CMAKE_CONFIGURE_ARGS+=	-DKDE_INSTALL_AUTOSTARTEXDIR=${PREFIX}/share/examples/kde-xdg/autostart

.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} == "NetBSD"
# Work-around bad use-warning check in GNU ld 2.26
# /usr/lib/librpcsvc.so.1: warning: warning: this program uses xdr_peername(), which is deprecated and buggy.
# is triggered, even though the current linker output contains
# no references to it.
BUILDLINK_TRANSFORM+=	rm:-Wl,--fatal-warnings
.endif
@


1.11
log
@kde: CMAKE_ARGS -> CMAKE_CONFIGURE_ARGS
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.10 2024/06/09 00:46:35 markd Exp $
d11 2
a12 1
TOOL_DEPENDS+= extra-cmake-modules>=5.19.0:../../devel/extra-cmake-modules
@


1.10
log
@kde: note use of Makefile.common by plasma6.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.9 2024/05/26 11:02:12 markd Exp $
d17 3
a19 3
CMAKE_ARGS+=	-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
CMAKE_ARGS+=	-DKDE_INSTALL_LIBEXECDIR=libexec
CMAKE_ARGS+=	-DKDE_INSTALL_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
d21 2
a22 2
CMAKE_ARGS+=	-DKDE_INSTALL_XDG_EX_DIR=${PREFIX}/share/examples/kde-xdg
CMAKE_ARGS+=	-DKDE_INSTALL_AUTOSTARTEXDIR=${PREFIX}/share/examples/kde-xdg/autostart
@


1.9
log
@kde: update kf6 version to 6.2.0. Default PKGNAME has kf6- prefix.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.8 2023/11/15 22:07:47 gutteridge Exp $
d7 1
@


1.8
log
@kde: fix a comment
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.7 2023/11/02 23:47:15 wiz Exp $
d5 1
@


1.7
log
@kde: USE_LANGUAGES+= to allow packages to add to it
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.6 2023/06/06 12:41:54 riastradh Exp $
d5 1
a5 1
# used by meta-pkgs/kde/plasma.mk
@


1.6
log
@Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.

Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.5 2023/01/12 19:40:47 markd Exp $
d11 1
a11 1
USE_LANGUAGES=	c c++
@


1.5
log
@kde: switch to cmake/build.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.4 2021/02/18 00:20:11 gutteridge Exp $
d9 1
a9 1
BUILD_DEPENDS+= extra-cmake-modules>=5.19.0:../../devel/extra-cmake-modules
@


1.4
log
@kde: remove now redundant BUILDLINK_ABI_DEPENDS override
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.3 2019/04/27 21:25:56 markd Exp $
a10 1
USE_CMAKE=	yes
d12 2
a13 2
CMAKE_ARG_PATH=	..
CONFIGURE_DIRS=	_KDE_build
a21 5
pre-configure: mk-kde-dir

mk-kde-dir:
	${MKDIR} ${WRKSRC}/_KDE_build

@


1.3
log
@kde; dont change the value of KDE_INSTALL_CONFDIR
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.2 2019/04/27 14:09:23 maya Exp $
a27 2
BUILDLINK_ABI_DEPENDS.qt5-qtbase+=	qt5-qtbase>=5.10.1nb2

@


1.2
log
@kde framework: install some things to share/examples, and use CONF_FILES.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.1 2018/04/11 11:34:57 markd Exp $
a18 1
CMAKE_ARGS+=	-DKDE_INSTALL_CONFDIR=${PREFIX}/share/examples/kde
@


1.1
log
@kde: Makefile fragments to support kde packages.
@
text
@d1 1
a1 1
# $NetBSD$
d19 1
@

