Changeset View
Changeset View
Standalone View
Standalone View
graphics/mesa-libs/Makefile
# Created by: Eric Anholt <anholt@FreeBSD.org> | # Created by: Eric Anholt <anholt@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= libGL | PORTNAME= mesa-libs | ||||
PORTVERSION= ${MESAVERSION} | PORTVERSION= ${MESAVERSION} | ||||
PORTREVISION= 0 | |||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
COMMENT= OpenGL library that renders using GLX or DRI | COMMENT= OpenGL libraries that support GLX and EGL clients | ||||
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs | |||||
LIB_DEPENDS+= libdrm.so:graphics/libdrm \ | LIB_DEPENDS+= libdrm.so:graphics/libdrm \ | ||||
libglapi.so:graphics/libglapi \ | |||||
libexpat.so:textproc/expat2 | libexpat.so:textproc/expat2 | ||||
USE_XORG= dri2proto dri3proto glproto presentproto x11 xcb xdamage xext \ | USE_XORG= dri2proto dri3proto glproto presentproto x11 xcb xdamage xext \ | ||||
xfixes xshmfence xxf86vm | xfixes xshmfence xxf86vm | ||||
OPTIONS_DEFINE= WAYLAND | |||||
OPTIONS_SUB= yes | |||||
kwm: Can the WAYLAND option be enabled by default? While we might not be so far that wayland is able… | |||||
Done Inline ActionsOk I think everyone knows how everyone thinks about wayland, lets keep it like it is now, we can always revisit it later. I'm planning on adding wayland support in gtk30 as a option default-off, but I need this review to land first. kwm: Ok I think everyone knows how everyone thinks about wayland, lets keep it like it is now, we… | |||||
WAYLAND_DESC= Enable support for the Wayland platform in EGL | |||||
WAYLAND_LIB_DEPENDS= libwayland-client.so:graphics/wayland \ | |||||
libwayland-server.so:graphics/wayland | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.include "${.CURDIR}/Makefile.common" | .include "${.CURDIR}/../../graphics/mesa-dri/Makefile.common" | ||||
MESA_BUILD_WRKSRC= src/mapi src/glx | CONFIGURE_ARGS+= --with-dri-drivers=swrast --with-gallium-drivers=swrast | ||||
MESA_INSTALL_WRKSRC= src/glx | |||||
.include "${.CURDIR}/Makefile.targets" | # libEGL needs gallium enabled which depends on llvm | ||||
.if ${MESA_LLVM_VER} != "" | |||||
.if ${PORT_OPTIONS:MWAYLAND} | |||||
CONFIGURE_ARGS+= --with-egl-platforms=x11,drm,wayland | |||||
.else | |||||
CONFIGURE_ARGS+= --with-egl-platforms=x11,drm | |||||
.endif | |||||
PLIST_SUB+= EGL="" | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-egl | |||||
PLIST_SUB+= EGL="@comment " | |||||
.if ${PORT_OPTIONS:MWAYLAND} | |||||
IGNORE= WAYLAND is an option for EGL and thus only valid on platforms with LLVM | |||||
.endif | |||||
.endif | |||||
MESA_BUILD_WRKSRC= src/mapi | |||||
MESA_INSTALL_WRKSRC= src/mapi | |||||
.if ${PORT_OPTIONS:MWAYLAND} | |||||
MESA_BUILD_WRKSRC+= src/egl/wayland/wayland-drm src/egl/wayland/wayland-egl | |||||
MESA_INSTALL_WRKSRC+= src/egl/wayland/wayland-egl | |||||
.endif | |||||
MESA_BUILD_WRKSRC+= src/gbm src/glx | |||||
MESA_INSTALL_WRKSRC+= src/gbm src/glx | |||||
.if ${MESA_LLVM_VER} != "" | |||||
MESA_BUILD_WRKSRC+= src/egl | |||||
MESA_INSTALL_WRKSRC+= src/egl | |||||
.endif | |||||
.include "${.CURDIR}/../../graphics/mesa-dri/Makefile.targets" | |||||
post-install: | post-install: | ||||
@cd ${WRKSRC}/src && ${SETENV} DESTDIR=${STAGEDIR} \ | @cd ${WRKSRC}/src && ${SETENV} DESTDIR=${STAGEDIR} \ | ||||
${MAKE_CMD} install-pkgconfigDATA install-glHEADERS install-glxHEADERS | ${MAKE_CMD} install-pkgconfigDATA install-glHEADERS install-glxHEADERS | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Can the WAYLAND option be enabled by default? While we might not be so far that wayland is able to driver a complete desktop (thinking about GNOME here), simple desktop do work. Although I'm not sure if everything that needed is in ports yet. And seeing the Linux works moving towards it, it really help the people that work on it and want to test it.