# $NetBSD: Makefile.common,v 1.8 2023/11/15 22:07:47 gutteridge Exp $ # # used by meta-pkgs/kde/applications.mk # used by meta-pkgs/kde/kf5.mk # used by meta-pkgs/kde/plasma5.mk MAINTAINER?= markd@NetBSD.org TOOL_DEPENDS+= extra-cmake-modules>=5.19.0:../../devel/extra-cmake-modules USE_LANGUAGES+= c c++ CMAKE_BUILD_DIR= _KDE_build .include "../../devel/cmake/build.mk" CMAKE_ARGS+= -DKDE_INSTALL_USE_QT_SYS_PATHS=ON CMAKE_ARGS+= -DKDE_INSTALL_LIBEXECDIR=libexec CMAKE_ARGS+= -DKDE_INSTALL_SYSCONFDIR=${PKG_SYSCONFDIR:Q} CMAKE_ARGS+= -DKDE_INSTALL_XDG_EX_DIR=${PREFIX}/share/examples/kde-xdg CMAKE_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