# Created by: kwm@FreeBSD.org # $FreeBSD: head/graphics/wayland/Makefile 440699 2017-05-12 18:46:53Z rezny $ # NOTE # Changes made by kwm to use kevent instead of epoll # are still in place. However, since libinput depends # on libepoll-shim the simplest to do was to have Wayland # also use it. Currently build will fail if epoll-shim # is not available but can be built without epoll-shim # if EPOLLSHIM_LIBS is cleared (configure.ac) # # TODO: Add condition for this in configure # # If we want to build Wayland with kwm's kevent patches # and use epoll-shim for libinput we have to change it # so that Wayland ignore epoll headers installed by # epoll-shim. # Maybe best is to use epoll-shim if it is good enough # and keep diff with upstream minimal. PORTNAME= wayland PORTVERSION= 1.16.0 PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://wayland.freedesktop.org/releases/ MAINTAINER= x11@FreeBSD.org COMMENT= Wayland composite "server" LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libexpat.so:textproc/expat2 \ libevent.so:devel/libevent \ libffi.so:devel/libffi # libepoll-shim.so:devel/libepoll-shim CFLAGS+= "-I${LOCALBASE}/include/libepoll-shim" WITH_DEBUG= 1 USES= autoreconf gmake libtool localbase pathfix pkgconfig tar:xz USE_GNOME= libxslt:build USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-documentation \ --with-pkgconfigdir=${LOCALBASE}/libdata/pkgconfig INSTALL_TARGET= install-strip pre-package: @if [ -e ${STAGEDIR}${LOCALBASE}/lib/pkgconfig/wayland-server.pc ] ; \ then \ ${MV} ${STAGEDIR}${LOCALBASE}/lib/pkgconfig/*.pc ${STAGEDIR}${LOCALBASE}/libdata/pkgconfig/ ; \ fi ; .include