summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-11-10 20:39:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-11 17:09:16 +0000
commit9f4df8fa58c2c7b3a1bf1e697b6160e88874e878 (patch)
treec95386ff9f1ba88a0d8e4e0074668fbb6cb15d00 /meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
parent6d7d97d787ee9351fe9fd42e21045239bbdae8ff (diff)
downloadpoky-9f4df8fa58c2c7b3a1bf1e697b6160e88874e878.tar.gz
xserver-xorg: convert from autotools to meson
Not every option was carried over, drop them accordingly. (From OE-Core rev: e05abd87ee5d23750c641d0129d9c83db68ee2e8) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/xorg-xserver/xserver-xorg.inc')
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xorg.inc55
1 files changed, 22 insertions, 33 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
index 6a5f274046..4a7048aced 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
@@ -23,7 +23,7 @@ CVE_PRODUCT = "xorg-server"
23 23
24S = "${WORKDIR}/${XORG_PN}-${PV}" 24S = "${WORKDIR}/${XORG_PN}-${PV}"
25 25
26inherit autotools pkgconfig 26inherit meson pkgconfig
27 27
28inherit features_check 28inherit features_check
29REQUIRED_DISTRO_FEATURES = "x11" 29REQUIRED_DISTRO_FEATURES = "x11"
@@ -105,50 +105,39 @@ FILES:${PN}-module-libxf1bpp = "${libdir}/xorg/modules/libxf1bpp.so"
105FILES:${PN}-module-libxf4bpp = "${libdir}/xorg/modules/libxf4bpp.so" 105FILES:${PN}-module-libxf4bpp = "${libdir}/xorg/modules/libxf4bpp.so"
106FILES:xf86-video-modesetting = "${libdir}/xorg/modules/drivers/modesetting_drv.so" 106FILES:xf86-video-modesetting = "${libdir}/xorg/modules/drivers/modesetting_drv.so"
107 107
108EXTRA_OECONF += "--with-fop=no \ 108EXTRA_OEMESON += " \
109 --with-pic \ 109 -Dxnest=false \
110 --disable-static \ 110 -Dxvfb=true \
111 --disable-record \ 111 -Ddtrace=false \
112 --disable-xnest \ 112 -Dint10=x86emu \
113 --enable-xvfb \ 113 -Dxkb_output_dir=/var/lib/xkb \
114 --enable-composite \
115 --without-dtrace \
116 --with-int10=x86emu \
117 --sysconfdir=/etc/X11 \
118 --localstatedir=/var \
119 --with-xkb-output=/var/lib/xkb \
120" 114"
121 115
122OPENGL_PKGCONFIGS = "dri glx glamor dri3 xshmfence" 116OPENGL_PKGCONFIGS = "dri glx glamor dri3"
123PACKAGECONFIG ??= "dga dri2 udev ${XORG_CRYPTO} \ 117PACKAGECONFIG ??= "dga dri2 udev ${XORG_CRYPTO} \
124 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '${OPENGL_PKGCONFIGS}', '', d)} \ 118 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '${OPENGL_PKGCONFIGS}', '', d)} \
125 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-logind', '', d)} \ 119 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-logind', '', d)} \
126" 120"
127 121
128PACKAGECONFIG[udev] = "--enable-config-udev,--disable-config-udev,udev" 122PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev"
129PACKAGECONFIG[dga] = "--enable-dga,--disable-dga" 123PACKAGECONFIG[dga] = "-Ddga=true,-Ddga=false"
130PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,virtual/mesa" 124PACKAGECONFIG[dri] = "-Ddri1=true,-Ddri1=false,virtual/mesa"
131PACKAGECONFIG[dri2] = "--enable-dri2,--disable-dri2" 125PACKAGECONFIG[dri2] = "-Ddri2=true,-Ddri2=false"
132# DRI3 requires xshmfence to also be enabled 126PACKAGECONFIG[dri3] = "-Ddri3=true,-Ddri3=false"
133PACKAGECONFIG[dri3] = "--enable-dri3,--disable-dri3" 127PACKAGECONFIG[glx] = "-Dglx=true,-Dglx=false,virtual/libgl virtual/libx11"
134PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,virtual/libgl virtual/libx11" 128PACKAGECONFIG[glamor] = "-Dglamor=true,-Dglamor=false,libepoxy virtual/libgbm,libegl"
135PACKAGECONFIG[glamor] = "--enable-glamor,--disable-glamor,libepoxy virtual/libgbm,libegl" 129PACKAGECONFIG[unwind] = "-Dlibunwind=true,-Dlibunwind=false,libunwind"
136PACKAGECONFIG[unwind] = "--enable-libunwind,--disable-libunwind,libunwind" 130PACKAGECONFIG[systemd-logind] = "-Dsystemd_logind=true,-Dsystemd_logind=false,dbus,"
137PACKAGECONFIG[xshmfence] = "--enable-xshmfence,--disable-xshmfence,libxshmfence" 131PACKAGECONFIG[xinerama] = "-Dxinerama=true,-Dxinerama=false"
138PACKAGECONFIG[xmlto] = "--with-xmlto, --without-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
139PACKAGECONFIG[systemd-logind] = "--enable-systemd-logind=yes,--enable-systemd-logind=no,dbus,"
140PACKAGECONFIG[systemd] = "--with-systemd-daemon,--without-systemd-daemon,systemd"
141PACKAGECONFIG[xinerama] = "--enable-xinerama,--disable-xinerama"
142 132
143# Xorg requires a SHA1 implementation, pick one 133# Xorg requires a SHA1 implementation, pick one
144XORG_CRYPTO ??= "openssl" 134XORG_CRYPTO ??= "openssl"
145PACKAGECONFIG[openssl] = "--with-sha1=libcrypto,,openssl" 135PACKAGECONFIG[openssl] = "-Dsha1=libcrypto,,openssl"
146PACKAGECONFIG[nettle] = "--with-sha1=libnettle,,nettle" 136PACKAGECONFIG[nettle] = "-Dsha1=libnettle,,nettle"
147PACKAGECONFIG[gcrypt] = "--with-sha1=libgcrypt,,libgcrypt" 137PACKAGECONFIG[gcrypt] = "-Dsha1=libgcrypt,,libgcrypt"
148 138
149do_install:append () { 139do_install:append () {
150 # Its assumed base-files creates this for us 140 # Its assumed base-files creates this for us
151 rmdir ${D}${localstatedir}/log/
152 sed -i -e 's,${libdir}/xorg/modules,${prefix}/lib*/xorg/modules,' ${D}${mandir}/man5/xorg.conf.5 141 sed -i -e 's,${libdir}/xorg/modules,${prefix}/lib*/xorg/modules,' ${D}${mandir}/man5/xorg.conf.5
153} 142}
154 143