head	1.31;
access;
symbols
	pkgsrc-2026Q1:1.31.0.2
	pkgsrc-2026Q1-base:1.31
	pkgsrc-2025Q4:1.30.0.2
	pkgsrc-2025Q4-base:1.30
	pkgsrc-2025Q3:1.28.0.2
	pkgsrc-2025Q3-base:1.28
	pkgsrc-2025Q2:1.26.0.2
	pkgsrc-2025Q2-base:1.26
	pkgsrc-2025Q1:1.25.0.2
	pkgsrc-2025Q1-base:1.25
	pkgsrc-2024Q4:1.22.0.4
	pkgsrc-2024Q4-base:1.22
	pkgsrc-2024Q3:1.22.0.2
	pkgsrc-2024Q3-base:1.22
	pkgsrc-2024Q2:1.20.0.2
	pkgsrc-2024Q2-base:1.20
	pkgsrc-2024Q1:1.18.0.2
	pkgsrc-2024Q1-base:1.18
	pkgsrc-2023Q4:1.16.0.2
	pkgsrc-2023Q4-base:1.16
	pkgsrc-2023Q3:1.12.0.4
	pkgsrc-2023Q3-base:1.12
	pkgsrc-2023Q2:1.12.0.2
	pkgsrc-2023Q2-base:1.12
	pkgsrc-2023Q1:1.9.0.2
	pkgsrc-2023Q1-base:1.9
	pkgsrc-2022Q4:1.7.0.2
	pkgsrc-2022Q4-base:1.7
	pkgsrc-2022Q3:1.5.0.6
	pkgsrc-2022Q3-base:1.5
	pkgsrc-2022Q2:1.5.0.4
	pkgsrc-2022Q2-base:1.5
	pkgsrc-2022Q1:1.5.0.2
	pkgsrc-2022Q1-base:1.5
	pkgsrc-2021Q4:1.4.0.2
	pkgsrc-2021Q4-base:1.4
	pkgsrc-2021Q3:1.3.0.4
	pkgsrc-2021Q3-base:1.3
	pkgsrc-2021Q2:1.3.0.2
	pkgsrc-2021Q2-base:1.3
	pkgsrc-2021Q1:1.2.0.2
	pkgsrc-2021Q1-base:1.2;
locks; strict;
comment	@# @;


1.31
date	2026.01.27.08.39.54;	author wiz;	state Exp;
branches;
next	1.30;
commitid	f4MYtJVcsY7dz0sG;

1.30
date	2025.10.23.20.37.54;	author wiz;	state Exp;
branches;
next	1.29;
commitid	1V2hBZn9ypXaCJfG;

1.29
date	2025.09.21.18.15.08;	author wiz;	state Exp;
branches;
next	1.28;
commitid	tn5f7O3DThG7SBbG;

1.28
date	2025.08.30.22.45.41;	author wiz;	state Exp;
branches;
next	1.27;
commitid	2izPxU30rhec4O8G;

1.27
date	2025.08.20.11.35.01;	author wiz;	state Exp;
branches;
next	1.26;
commitid	lgT5N7I1hRAxGs7G;

1.26
date	2025.04.24.14.14.47;	author wiz;	state Exp;
branches;
next	1.25;
commitid	A3VBjL8Zdd4LljSF;

1.25
date	2025.01.30.15.34.44;	author wiz;	state Exp;
branches;
next	1.24;
commitid	yJrwnNHTQWgtvwHF;

1.24
date	2025.01.23.23.27.28;	author riastradh;	state Exp;
branches;
next	1.23;
commitid	nbXjxSLm733ClFGF;

1.23
date	2024.12.27.08.20.08;	author wiz;	state Exp;
branches;
next	1.22;
commitid	tLKuqVS8lkJCb7DF;

1.22
date	2024.08.25.06.18.55;	author wiz;	state Exp;
branches;
next	1.21;
commitid	BcrSL94SO85mvanF;

1.21
date	2024.07.16.10.02.04;	author prlw1;	state Exp;
branches;
next	1.20;
commitid	MBUpXRw92xfN13iF;

1.20
date	2024.04.07.07.34.26;	author wiz;	state Exp;
branches;
next	1.19;
commitid	oMYDjdZchby5qb5F;

1.19
date	2024.04.06.08.05.59;	author wiz;	state Exp;
branches;
next	1.18;
commitid	xuM7fEJrv2TOC35F;

1.18
date	2024.02.15.18.21.34;	author nia;	state Exp;
branches;
next	1.17;
commitid	fzyG0YYFSk8cGyYE;

1.17
date	2024.02.10.09.58.33;	author ryoon;	state Exp;
branches;
next	1.16;
commitid	kPeV5niDoUeD3SXE;

1.16
date	2023.11.14.14.02.17;	author wiz;	state Exp;
branches;
next	1.15;
commitid	BZ5vzwBRof1beAME;

1.15
date	2023.11.12.13.22.24;	author wiz;	state Exp;
branches;
next	1.14;
commitid	SjpNXQIV5XeZ3kME;

1.14
date	2023.10.24.22.09.34;	author wiz;	state Exp;
branches;
next	1.13;
commitid	MTsrqKm6aGrQAVJE;

1.13
date	2023.10.21.17.10.48;	author gdt;	state Exp;
branches;
next	1.12;
commitid	Sr0Nb6aaZLDw2wJE;

1.12
date	2023.06.06.12.41.37;	author riastradh;	state Exp;
branches;
next	1.11;
commitid	xhspr6Z8JLQOWSrE;

1.11
date	2023.05.21.05.55.39;	author wiz;	state Exp;
branches;
next	1.10;
commitid	0Aoyg1nAYeIkeNpE;

1.10
date	2023.05.16.21.20.52;	author wiz;	state Exp;
branches;
next	1.9;
commitid	yAgpHtQ2b3zIvepE;

1.9
date	2023.01.29.21.16.52;	author ryoon;	state Exp;
branches;
next	1.8;
commitid	QL7aBXsBGmQvUtbE;

1.8
date	2023.01.03.17.37.37;	author wiz;	state Exp;
branches;
next	1.7;
commitid	vvAqE6UmuqFFx78E;

1.7
date	2022.12.13.12.42.23;	author jperkin;	state Exp;
branches;
next	1.6;
commitid	zxQvBuQCxADNAo5E;

1.6
date	2022.11.28.19.20.21;	author jperkin;	state Exp;
branches;
next	1.5;
commitid	f3Buss7Ku64ehv3E;

1.5
date	2022.03.27.13.17.34;	author tnn;	state Exp;
branches;
next	1.4;
commitid	kR9o686vRXYQaRxD;

1.4
date	2021.12.08.16.05.12;	author adam;	state Exp;
branches;
next	1.3;
commitid	2PyWjHx5T8rqARjD;

1.3
date	2021.03.30.16.20.59;	author ryoon;	state Exp;
branches;
next	1.2;
commitid	sfZA0JANi7eoPlNC;

1.2
date	2021.02.27.19.30.57;	author ryoon;	state Exp;
branches;
next	1.1;
commitid	vqaRqTHM6rufSnJC;

1.1
date	2021.02.17.15.16.25;	author ryoon;	state Exp;
branches;
next	;
commitid	qIUiXoRBnOMYM4IC;


desc
@@


1.31
log
@*: recursive bump for removal of cairo's xcb option
@
text
@# $NetBSD: Makefile,v 1.30 2025/10/23 20:37:54 wiz Exp $

DISTNAME=	fcitx5-5.1.7
PKGREVISION=	9
CATEGORIES=	inputmethod
MASTER_SITES=	https://download.fcitx-im.org/fcitx5/fcitx5/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	ryoon@@NetBSD.org
HOMEPAGE=	https://github.com/fcitx/fcitx5
COMMENT=	Input method framework with extension support
LICENSE=	gnu-lgpl-v2.1

DATAFILES+=	en_dict-20121020.tar.gz
EXTRACT_ONLY=	${DEFAULT_DISTFILES}
DISTFILES+=	${DISTNAME}${EXTRACT_SUFX}

.for f in ${DATAFILES}
SITES.${f}=	https://download.fcitx-im.org/data/
DISTFILES+=	${f}
.endfor

SUBST_CLASSES+=			fix-machine-id
SUBST_STAGE.fix-machine-id=	pre-configure
SUBST_MESSAGE.fix-machine-id=	Fixing machine-id path
SUBST_FILES.fix-machine-id+=	src/lib/fcitx/misc_p.h
SUBST_SED.fix-machine-id+=	-e 's,/var/lib/dbus/machine-id,${VARBASE}/lib/dbus/machine-id,g'

CONFLICTS+=	fcitx-[0-9]*

USE_TOOLS+=		bash:run pkg-config
USE_PKGLOCALEDIR=	yes
USE_LANGUAGES=		c c++
BUILD_DEFS+=		VARBASE

USE_CXX_FEATURES+=	charconv

REPLACE_BASH+=		data/fcitx5-diagnose.sh

CMAKE_CONFIGURE_ARGS+=	-DENABLE_WAYLAND=off # cairo-egl is required.
CMAKE_CONFIGURE_ARGS+=	-DUSE_SYSTEMD=off
CMAKE_CONFIGURE_ARGS+=	-DENABLE_TEST=off
CMAKE_CONFIGURE_ARGS+=	-DLibIntl_INCLUDE_DIR=${BUILDLINK_PREFIX.gettext}/include
CMAKE_CONFIGURE_ARGS+=	-DLIBUUID_INCLUDE_DIR=${BUILDLINK_PREFIX.libuuid}/include
CMAKE_CONFIGURE_ARGS+=	-DCMAKE_POLICY_VERSION_MINIMUM=3.5

CXXFLAGS.NetBSD+=	-DLIBKVM_FOUND

BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--as-needed

PKGCONFIG_OVERRIDE+=	src/lib/fcitx-config/Fcitx5Config.pc.in
PKGCONFIG_OVERRIDE+=	src/lib/fcitx-utils/Fcitx5Utils.pc.in
PKGCONFIG_OVERRIDE+=	src/lib/fcitx/Fcitx5Core.pc.in
PKGCONFIG_OVERRIDE+=	src/modules/Fcitx5Module.pc.in

SUBST_CLASSES+=		xdg
SUBST_STAGE.xdg=	pre-configure
SUBST_MESSAGE.xdg=	Fix desktop autostart file installation
SUBST_FILES.xdg=	data/CMakeLists.txt
SUBST_SED.xdg=		-e 's,{CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/autostart,{CMAKE_INSTALL_PREFIX}/share/examples/fcitx5,'

MAKE_DIRS+=	${PKG_SYSCONFDIR}/xdg/autostart
CONF_FILES+=	${PREFIX}/share/examples/fcitx5/org.fcitx.Fcitx5.desktop \
		${PKG_SYSCONFDIR}/xdg/autostart/org.fcitx.Fcitx5.desktop

pre-configure:
	${LN} -s ${DISTDIR}/en_dict-20121020.tar.gz \
		${WRKSRC}/src/modules/spell/

.include "../../devel/cmake/build.mk"

.include "../../devel/extra-cmake-modules/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/gettext-tools/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
USE_BUILTIN.libevent=	no
.include "../../devel/libevent/buildlink3.mk"
.include "../../devel/libexecinfo/buildlink3.mk"
.include "../../devel/libuuid/buildlink3.mk"
.include "../../devel/libuv/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/cldr-emoji-annotation/buildlink3.mk"
.include "../../textproc/enchant2/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../textproc/fmtlib/buildlink3.mk"
.include "../../textproc/iso-codes/buildlink3.mk"
.include "../../textproc/json-c/buildlink3.mk"
.include "../../x11/libxcb/buildlink3.mk"
.include "../../x11/libxkbcommon/buildlink3.mk"
.include "../../x11/libxkbfile/buildlink3.mk"
.include "../../x11/xcb-imdkit/buildlink3.mk"
.include "../../x11/xcb-util/buildlink3.mk"
.include "../../x11/xcb-util-keysyms/buildlink3.mk"
.include "../../x11/xcb-util-wm/buildlink3.mk"
.include "../../x11/xkeyboard-config/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.30
log
@*: recursive bump for pcre2

Running an old binary against the new pcre doesn't work:
/usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2025/09/21 18:15:08 wiz Exp $
d4 1
a4 1
PKGREVISION=	8
@


1.29
log
@*: recursive bump for fmtlib 12
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2025/08/30 22:45:41 wiz Exp $
d4 1
a4 1
PKGREVISION=	7
@


1.28
log
@*: recursive bump for tiff growing lerc dependency
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2025/08/20 11:35:01 wiz Exp $
d4 1
a4 1
PKGREVISION=	6
@


1.27
log
@*: fix build with cmake 4
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2025/04/24 14:14:47 wiz Exp $
d4 1
a4 1
PKGREVISION=	5
@


1.26
log
@*: recursive bump for jpeg -> libjpeg-turbo switch
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2025/01/30 15:34:44 wiz Exp $
d40 6
a45 5
CMAKE_CONFIGURE_ARGS+=		-DENABLE_WAYLAND=off # cairo-egl is required.
CMAKE_CONFIGURE_ARGS+=		-DUSE_SYSTEMD=off
CMAKE_CONFIGURE_ARGS+=		-DENABLE_TEST=off
CMAKE_CONFIGURE_ARGS+=		-DLibIntl_INCLUDE_DIR=${BUILDLINK_PREFIX.gettext}/include
CMAKE_CONFIGURE_ARGS+=		-DLIBUUID_INCLUDE_DIR=${BUILDLINK_PREFIX.libuuid}/include
@


1.25
log
@fcitx5: do not build tests

Fixes build on NetBSD/current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2025/01/23 23:27:28 riastradh Exp $
d4 1
a4 1
PKGREVISION=	4
@


1.24
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
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2024/12/27 08:20:08 wiz Exp $
d42 1
@


1.23
log
@*: recursive bump for pango requiring fontconfig 2.15
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2024/08/25 06:18:55 wiz Exp $
a39 2
TOOL_DEPENDS+=	extra-cmake-modules-[0-9]*:../../devel/extra-cmake-modules

d69 2
@


1.22
log
@*: replace CMAKE_ARGS with CMAKE_CONFIGURE_ARGS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2024/07/16 10:02:04 prlw1 Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.21
log
@Revbump for fmtlib 11.0.1
Pointed out by David Gutteridge on pkgsrc-changes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2024/04/07 07:34:26 wiz Exp $
d42 4
a45 4
CMAKE_ARGS+=		-DENABLE_WAYLAND=off # cairo-egl is required.
CMAKE_ARGS+=		-DUSE_SYSTEMD=off
CMAKE_ARGS+=		-DLibIntl_INCLUDE_DIR=${BUILDLINK_PREFIX.gettext}/include
CMAKE_ARGS+=		-DLIBUUID_INCLUDE_DIR=${BUILDLINK_PREFIX.libuuid}/include
@


1.20
log
@*: bump for cairo buildlink3.mk change

lzo was made an option
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2024/04/06 08:05:59 wiz Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.19
log
@* recursive bump for libxkbcommon 1.7.0

Marc Baudoin reported problems with using old binary packages
with the new libkxbcommon, so force everything to 1.7.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2024/02/15 18:21:34 nia Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.18
log
@fcitx5: requires a C++ implementation new enough to have charconv
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2024/02/10 09:58:33 ryoon Exp $
d4 1
@


1.17
log
@inputmethod/fcitx5: Update to 5.1.7

Changelog:
Many bugfixes.
Update translations.
Improve Wayland support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2023/11/14 14:02:17 wiz Exp $
d35 2
@


1.16
log
@*: recursive bump for cairo dependency changes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2023/11/12 13:22:24 wiz Exp $
d3 1
a3 2
DISTNAME=	fcitx5-5.0.5
PKGREVISION=	10
a29 1
USE_CMAKE=		yes
d65 1
a65 1
		${WRKSRC}/src/modules/spell/dict
d67 1
d71 1
d75 1
@


1.15
log
@*: revebump for new brotli option for freetype2

Addresses PR 57693
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2023/10/24 22:09:34 wiz Exp $
d4 1
a4 1
PKGREVISION=	9
@


1.14
log
@*: bump for openssl 3
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2023/10/21 17:10:48 gdt Exp $
d4 1
a4 1
PKGREVISION=	8
@


1.13
log
@recursive revbump for tiff update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2023/06/06 12:41:37 riastradh Exp $
d4 1
a4 1
PKGREVISION=	7
@


1.12
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,v 1.11 2023/05/21 05:55:39 wiz Exp $
d4 1
a4 1
PKGREVISION=	6
@


1.11
log
@fcitx5: fix build with fmtlib 10

Clean some pkglint while here, and update HOMEPAGE.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2023/05/16 21:20:52 wiz Exp $
d39 1
a39 1
BUILD_DEPENDS+=	extra-cmake-modules-[0-9]*:../../devel/extra-cmake-modules
@


1.10
log
@*: PKGREVISION bump for fmtlib shlib major bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2023/01/29 21:16:52 ryoon Exp $
d10 1
a10 1
HOMEPAGE=	https://download.fcitx-im.org/fcitx5/fcitx5/
d35 1
d62 1
a62 1
CONF_FILES+=	${PREFIX}/share/examples/fcitx5/org.fcitx.Fcitx5.desktop	\
@


1.9
log
@*: Recursive revbup from graphics/freetype2
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2023/01/03 17:37:37 wiz Exp $
d4 1
a4 1
PKGREVISION=	5
@


1.8
log
@*: recursive bump for tiff shlib major bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2022/12/13 12:42:23 jperkin Exp $
d4 1
a4 1
PKGREVISION=	4
@


1.7
log
@fcitx5: Fix paths to gettext/libuuid.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2022/11/28 19:20:21 jperkin Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.6
log
@fcitx5: Remove --as-needed on SunOS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2022/03/27 13:17:34 tnn Exp $
d42 2
d68 1
@


1.5
log
@fcitx5: handle xdg autostart .desktop file correctly. Bump.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2021/12/08 16:05:12 adam Exp $
d45 2
@


1.4
log
@revbump for icu and libffi
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2021/03/30 16:20:59 ryoon Exp $
d4 1
a4 1
PKGREVISION=	2
d50 10
d74 1
@


1.3
log
@fcitx5: Follow sysutils/dbus migration, VARBASE/db/dbus to VARBASE/lib/dbus

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2021/02/27 19:30:57 ryoon Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.2
log
@fcitx5: Update to 5.0.5

Changelog:
Not available.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2021/02/17 15:16:25 ryoon Exp $
d4 1
d27 1
a27 1
SUBST_SED.fix-machine-id+=	-e 's,/var/lib/dbus/machine-id,${VARBASE}/db/dbus/machine-id,g'
@


1.1
log
@inputmethod/fcitx5: import fcitx5-5.0.4

Fcitx 5 is a generic input method framework released under LGPL-2.1+.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	fcitx5-5.0.4
@

