# $FreeBSD: head/graphics/qt5-wayland/Makefile 465911 2018-03-29 19:03:17Z tcberner $

PORTNAME=	wayland
DISTVERSION=	${QT5_VERSION}
PORTREVISION=	1
CATEGORIES=	graphics
PKGNAMEPREFIX=	qt5-

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Qt5 wrapper for Wayland

LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		libwayland-client.so:graphics/wayland \
		libxkbcommon.so:x11/libxkbcommon

USES=		pkgconfig qmake:norecursive
USE_GL=		egl gl
USE_GNOME=	glib20
USE_QT5=	core dbus gui qml quick \
		buildtools_build qmake_build
USE_XORG=       x11 xcomposite
QT_DIST=	${PORTNAME}

USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}

OPTIONS_DEFINE=	WAYLAND
WAYLAND_DESC=		Requires graphics/mesa-libs with WAYLAND on
WAYLAND_IGNORE_OFF=	Cannot be built without wayland support
WAYLAND_LIB_DEPENDS=	libwayland-egl.so:graphics/mesa-libs

.include <bsd.port.mk>
