# Created by: kwm@FreeBSD.org
# $FreeBSD: tags/RELEASE_12_1_0/graphics/wayland/Makefile 490980 2019-01-22 20:51:38Z zeising $

PORTNAME=	wayland
PORTVERSION=	1.16.0
PORTREVISION=	1
CATEGORIES=	graphics wayland
MASTER_SITES=	https://wayland.freedesktop.org/releases/

MAINTAINER=	x11@FreeBSD.org
COMMENT=	Wayland composite "server"

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libexpat.so:textproc/expat2 \
		libffi.so:devel/libffi \
		libepoll-shim.so:devel/libepoll-shim

CFLAGS+=	"-I${LOCALBASE}/include/libepoll-shim"

USES=		autoreconf gmake gnome libtool localbase pathfix pkgconfig tar:xz
USE_GNOME=	libxslt:build
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-documentation
CONFIGURE_ENV=	ac_cv_func_posix_fallocate=no # EINVAL for many FS on 12.0
INSTALL_TARGET=	install-strip

.include <bsd.port.mk>
