1*4882a593SmuzhiyunSUMMARY = "XWayland is an X Server that runs under Wayland." 2*4882a593SmuzhiyunDESCRIPTION = "XWayland is an X Server running as a Wayland client, \ 3*4882a593Smuzhiyunand thus is capable of displaying native X11 client applications in a \ 4*4882a593SmuzhiyunWayland compositor environment. The goal of XWayland is to facilitate \ 5*4882a593Smuzhiyunthe transition from X Window System to Wayland environments, providing \ 6*4882a593Smuzhiyuna way to run unported applications in the meantime." 7*4882a593SmuzhiyunHOMEPAGE = "https://fedoraproject.org/wiki/Changes/XwaylandStandalone" 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunLICENSE = "MIT" 10*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=5df87950af51ac2c5822094553ea1880" 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunSRC_URI = "https://www.x.org/archive/individual/xserver/xwayland-${PV}.tar.xz" 13*4882a593SmuzhiyunSRC_URI[sha256sum] = "d11eeee73290b88ea8da42a7d9350dedfaba856ce4ae44e58c045ad9ecaa2f73" 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "xwayland-(?P<pver>\d+(\.(?!90\d)\d+)+)\.tar" 16*4882a593Smuzhiyun 17*4882a593Smuzhiyuninherit meson features_check pkgconfig 18*4882a593SmuzhiyunREQUIRED_DISTRO_FEATURES = "x11 opengl" 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunDEPENDS += "xorgproto xtrans pixman libxkbfile libxfont2 wayland wayland-native wayland-protocols libdrm libepoxy libxcvt" 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunOPENGL_PKGCONFIGS = "glx glamor dri3" 23*4882a593SmuzhiyunPACKAGECONFIG ??= "${XORG_CRYPTO} \ 24*4882a593Smuzhiyun ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '${OPENGL_PKGCONFIGS}', '', d)} \ 25*4882a593Smuzhiyun" 26*4882a593SmuzhiyunPACKAGECONFIG[dri3] = "-Ddri3=true,-Ddri3=false,libxshmfence" 27*4882a593SmuzhiyunPACKAGECONFIG[glx] = "-Dglx=true,-Dglx=false,virtual/libgl virtual/libx11" 28*4882a593SmuzhiyunPACKAGECONFIG[glamor] = "-Dglamor=true,-Dglamor=false,libepoxy virtual/libgbm,libegl" 29*4882a593SmuzhiyunPACKAGECONFIG[unwind] = "-Dlibunwind=true,-Dlibunwind=false,libunwind" 30*4882a593SmuzhiyunPACKAGECONFIG[xinerama] = "-Dxinerama=true,-Dxinerama=false" 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun# Xorg requires a SHA1 implementation, pick one 33*4882a593SmuzhiyunXORG_CRYPTO ??= "openssl" 34*4882a593SmuzhiyunPACKAGECONFIG[openssl] = "-Dsha1=libcrypto,,openssl" 35*4882a593SmuzhiyunPACKAGECONFIG[nettle] = "-Dsha1=libnettle,,nettle" 36*4882a593SmuzhiyunPACKAGECONFIG[gcrypt] = "-Dsha1=libgcrypt,,libgcrypt" 37*4882a593Smuzhiyun 38*4882a593Smuzhiyundo_install:append() { 39*4882a593Smuzhiyun # remove files not needed and clashing with xserver-xorg 40*4882a593Smuzhiyun rm -rf ${D}/${libdir}/xorg/ 41*4882a593Smuzhiyun} 42*4882a593Smuzhiyun 43*4882a593SmuzhiyunFILES:${PN} += "${libdir}/xorg/protocol.txt" 44*4882a593Smuzhiyun 45*4882a593SmuzhiyunRDEPENDS:${PN} += "xkbcomp" 46