pkgsrc/x11/vte3/Makefile
gutteridge 06fb2a1961 vte3: fix GCC binary package dependency for NetBSD < 9.99.82
This involves a bit of a kludge to deal with how GCC from pkgsrc ends
up linking. This is obviously not ideal, and is part of a broader
topic that needs revisiting.
2022-04-13 01:24:33 +00:00

64 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.51 2022/04/13 01:24:33 gutteridge Exp $
DISTNAME= vte-0.68.0
PKGNAME= ${DISTNAME:S/vte/vte3/}
PKGREVISION= 3
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=GNOME/}
GITHUB_PROJECT= vte
GITHUB_TAG= ${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.gnome.org/
COMMENT= Terminal widget with improved accessibility and I18N support
LICENSE= gnu-lgpl-v2
PKGCONFIG_OVERRIDE_STAGE= post-configure
PKGCONFIG_OVERRIDE+= output/meson-private/vte-2.91.pc
USE_TOOLS+= msgfmt pkg-config bash
USE_LANGUAGES= c c++20
# for c++20
GCC_REQD+= 10
.include "../../mk/bsd.prefs.mk"
# This package will link against libstdc++.so from the pkgsrc GCC when the
# base OS GCC doesn't meet the minimum requirement. Thus we do this so the
# appropriate gcc-libs package will be captured as a dependency, otherwise
# binary packages will be broken.
.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 099982
USE_PKGSRC_GCC= yes
USE_PKGSRC_GCC_RUNTIME= yes
.endif
# Otherwise, this will fail on Linux distributions that don't
# have libsystemd.
MESON_ARGS+= -D_systemd=false
CONF_FILES+= ${PREFIX}/share/examples/profile.d/vte.sh \
${PKG_SYSCONFDIR}/profile.d/vte.sh
CONF_FILES+= ${PREFIX}/share/examples/profile.d/vte.csh \
${PKG_SYSCONFDIR}/profile.d/vte.csh
MAKE_DIRS+= ${PKG_SYSCONFDIR}/profile.d
PYTHON_FOR_BUILD_ONLY= tool
REPLACE_PYTHON= src/*.py
.include "options.mk"
.include "../../devel/meson/build.mk"
.include "../../converters/fribidi/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/gobject-introspection/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../devel/pcre2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/tool.mk"
.include "../../lang/vala/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"