diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-11-10 20:39:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-11 17:09:16 +0000 |
commit | 9f4df8fa58c2c7b3a1bf1e697b6160e88874e878 (patch) | |
tree | c95386ff9f1ba88a0d8e4e0074668fbb6cb15d00 /meta/recipes-graphics/xorg-xserver | |
parent | 6d7d97d787ee9351fe9fd42e21045239bbdae8ff (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 55 |
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 | ||
24 | S = "${WORKDIR}/${XORG_PN}-${PV}" | 24 | S = "${WORKDIR}/${XORG_PN}-${PV}" |
25 | 25 | ||
26 | inherit autotools pkgconfig | 26 | inherit meson pkgconfig |
27 | 27 | ||
28 | inherit features_check | 28 | inherit features_check |
29 | REQUIRED_DISTRO_FEATURES = "x11" | 29 | REQUIRED_DISTRO_FEATURES = "x11" |
@@ -105,50 +105,39 @@ FILES:${PN}-module-libxf1bpp = "${libdir}/xorg/modules/libxf1bpp.so" | |||
105 | FILES:${PN}-module-libxf4bpp = "${libdir}/xorg/modules/libxf4bpp.so" | 105 | FILES:${PN}-module-libxf4bpp = "${libdir}/xorg/modules/libxf4bpp.so" |
106 | FILES:xf86-video-modesetting = "${libdir}/xorg/modules/drivers/modesetting_drv.so" | 106 | FILES:xf86-video-modesetting = "${libdir}/xorg/modules/drivers/modesetting_drv.so" |
107 | 107 | ||
108 | EXTRA_OECONF += "--with-fop=no \ | 108 | EXTRA_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 | ||
122 | OPENGL_PKGCONFIGS = "dri glx glamor dri3 xshmfence" | 116 | OPENGL_PKGCONFIGS = "dri glx glamor dri3" |
123 | PACKAGECONFIG ??= "dga dri2 udev ${XORG_CRYPTO} \ | 117 | PACKAGECONFIG ??= "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 | ||
128 | PACKAGECONFIG[udev] = "--enable-config-udev,--disable-config-udev,udev" | 122 | PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev" |
129 | PACKAGECONFIG[dga] = "--enable-dga,--disable-dga" | 123 | PACKAGECONFIG[dga] = "-Ddga=true,-Ddga=false" |
130 | PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,virtual/mesa" | 124 | PACKAGECONFIG[dri] = "-Ddri1=true,-Ddri1=false,virtual/mesa" |
131 | PACKAGECONFIG[dri2] = "--enable-dri2,--disable-dri2" | 125 | PACKAGECONFIG[dri2] = "-Ddri2=true,-Ddri2=false" |
132 | # DRI3 requires xshmfence to also be enabled | 126 | PACKAGECONFIG[dri3] = "-Ddri3=true,-Ddri3=false" |
133 | PACKAGECONFIG[dri3] = "--enable-dri3,--disable-dri3" | 127 | PACKAGECONFIG[glx] = "-Dglx=true,-Dglx=false,virtual/libgl virtual/libx11" |
134 | PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,virtual/libgl virtual/libx11" | 128 | PACKAGECONFIG[glamor] = "-Dglamor=true,-Dglamor=false,libepoxy virtual/libgbm,libegl" |
135 | PACKAGECONFIG[glamor] = "--enable-glamor,--disable-glamor,libepoxy virtual/libgbm,libegl" | 129 | PACKAGECONFIG[unwind] = "-Dlibunwind=true,-Dlibunwind=false,libunwind" |
136 | PACKAGECONFIG[unwind] = "--enable-libunwind,--disable-libunwind,libunwind" | 130 | PACKAGECONFIG[systemd-logind] = "-Dsystemd_logind=true,-Dsystemd_logind=false,dbus," |
137 | PACKAGECONFIG[xshmfence] = "--enable-xshmfence,--disable-xshmfence,libxshmfence" | 131 | PACKAGECONFIG[xinerama] = "-Dxinerama=true,-Dxinerama=false" |
138 | PACKAGECONFIG[xmlto] = "--with-xmlto, --without-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native" | ||
139 | PACKAGECONFIG[systemd-logind] = "--enable-systemd-logind=yes,--enable-systemd-logind=no,dbus," | ||
140 | PACKAGECONFIG[systemd] = "--with-systemd-daemon,--without-systemd-daemon,systemd" | ||
141 | PACKAGECONFIG[xinerama] = "--enable-xinerama,--disable-xinerama" | ||
142 | 132 | ||
143 | # Xorg requires a SHA1 implementation, pick one | 133 | # Xorg requires a SHA1 implementation, pick one |
144 | XORG_CRYPTO ??= "openssl" | 134 | XORG_CRYPTO ??= "openssl" |
145 | PACKAGECONFIG[openssl] = "--with-sha1=libcrypto,,openssl" | 135 | PACKAGECONFIG[openssl] = "-Dsha1=libcrypto,,openssl" |
146 | PACKAGECONFIG[nettle] = "--with-sha1=libnettle,,nettle" | 136 | PACKAGECONFIG[nettle] = "-Dsha1=libnettle,,nettle" |
147 | PACKAGECONFIG[gcrypt] = "--with-sha1=libgcrypt,,libgcrypt" | 137 | PACKAGECONFIG[gcrypt] = "-Dsha1=libgcrypt,,libgcrypt" |
148 | 138 | ||
149 | do_install:append () { | 139 | do_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 | ||