[BACK]Return to options.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / MesaDemos

File: [cvs.NetBSD.org] / pkgsrc / graphics / MesaDemos / options.mk (download)

Revision 1.4, Sun Jan 5 22:20:40 2020 UTC (8 months, 3 weeks ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, HEAD
Changes since 1.3: +6 -1 lines

MesaDemos: enable wayland where supported

# $NetBSD: options.mk,v 1.4 2020/01/05 22:20:40 nia Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.MesaDemos
PKG_SUPPORTED_OPTIONS=		libdrm wayland x11
PKG_SUGGESTED_OPTIONS=		libdrm x11

.include "../../devel/wayland/platform.mk"
.if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
PKG_SUGGESTED_OPTIONS+=		wayland
.endif

.include "../../mk/bsd.options.mk"

PLIST_VARS+=	wayland x11

.if !empty(PKG_OPTIONS:Mlibdrm)
CONFIGURE_ARGS+=	--enable-libdrm
.include "../../x11/libdrm/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-libdrm
.endif

.if !empty(PKG_OPTIONS:Mwayland)
PLIST.wayland=		yes
CONFIGURE_ARGS+=	--enable-wayland
EGL_PROGS+=		eglgears_wayland egltri_wayland
.include "../../devel/wayland/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-wayland
.endif

.if !empty(PKG_OPTIONS:Mx11)
PLIST.x11=		yes
CONFIGURE_ARGS+=	--enable-x11
EGL_PROGS+=		eglgears_x11 egltri_x11 xeglgears xeglthreads
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-x11
.endif