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

File: [cvs.NetBSD.org] / pkgsrc / x11 / libqtxdg / Makefile (download)

Revision 1.22, Wed Nov 23 16:19:10 2022 UTC (2 months, 1 week ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4
Changes since 1.21: +2 -1 lines

massive revision bump after textproc/icu update

# $NetBSD: Makefile,v 1.22 2022/11/23 16:19:10 adam Exp $

DISTNAME=	libqtxdg-3.10.0
PKGREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_GITHUB:=lxqt/}
GITHUB_RELEASE=	${PKGVERSION_NOREV}
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/lxqt/libqtxdg/
COMMENT=	Qt implementation of freedesktop.org xdg specs
LICENSE=	gnu-lgpl-v2.1

USE_CMAKE=	yes
USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c c++

CONFIGURE_DIRS=	build
CMAKE_ARG_PATH=	..

QTXDG_CONF=		share/lxqt
PKG_SYSCONFSUBDIR=	xdg

SUBST_CLASSES+=		prefix
SUBST_MESSAGE.prefix=	Fixing paths.
SUBST_STAGE.prefix=	pre-configure
SUBST_FILES.prefix=	src/qtxdg/xdgdirs.cpp
SUBST_SED.prefix=	-e 's,/etc/xdg,${PKG_SYSCONFDIR},g'
SUBST_SED.prefix+=	-e 's,/usr/share,${PREFIX}/share,g'

CONF_FILES=	${QTXDG_CONF}/lxqt-qtxdg.conf \
		${PKG_SYSCONFDIR}/lxqt-qtxdg.conf
CONF_FILES+=	${QTXDG_CONF}/qtxdg.conf \
		${PKG_SYSCONFDIR}/qtxdg.conf

BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,-Bsymbolic
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,-Bsymbolic-functions
BUILDLINK_TRANSFORM.SunOS+=	rm:-fuse-linker-plugin

pre-configure:
	${MKDIR} -p ${WRKSRC}/build

TOOL_DEPENDS+=	lxqt-build-tools>=0.12.0:../../devel/lxqt-build-tools
TOOL_DEPENDS+=	qt5-qttools-[0-9]*:../../x11/qt5-qttools

.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "NetBSD" || ${X11_TYPE} == "modular"
DEPENDS+=	{xterm,mxterm}-[0-9]*:../../x11/xterm
.endif

.include "../../devel/glib2/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtsvg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"