PORTNAME=	libwnck
PORTVERSION=	43.2
CATEGORIES=	x11-toolkits gnome
MASTER_SITES=	GNOME/sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+)\..*/\1/}
PKGNAMESUFFIX=	3
DIST_SUBDIR=	gnome

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Library used for writing pagers and taskslists
WWW=		https://gitlab.gnome.org/GNOME/libwnck

LICENSE=	lgpl
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		bison gettext gnome localbase meson pkgconfig tar:xz \
		xorg
USE_GNOME=	cairo gdkpixbuf gtk30 introspection:build
USE_XORG=	xext xrender xres x11
USE_LDCONFIG=	yes
MESON_ARGS=	-Dgtk_doc=false \
		-Dinstall_tools=false

OPTIONS_DEFINE=	STARTUP
OPTIONS_DEFAULT=STARTUP
STARTUP_DESC=	Startup notification support
STARTUP_LIB_DEPENDS=	libstartup-notification-1.so:x11/startup-notification
STARTUP_MESON_ENABLED=	startup_notification

.include <bsd.mport.options.mk>

.if ${OSVERSION} < 400000
EXTRA_PATCHES=	${FILESSDIR}/extra-patch-libwnck_libwnck-3.map
.endif

.include <bsd.port.mk>
