mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
x11-servers/xorg-server: add missing features for PRIME
Modern PRIME X11 setups autoconfigure themselves, which internally
uses the udev and udev_kms options to do so. These options are required
for X to find the available DRM devices. This is needed for PRIME on
FreeBSD.
This is also adds the DRM platform code, taken from X commit:
5468123822
Differential Revision: https://reviews.freebsd.org/D39886
Which is in master but not yet in any releases. This adds the platform
code to the build for DRM so that PRIME setups can work.
This commit is contained in:
parent
4eef420a25
commit
f32b188cc3
@ -1,6 +1,6 @@
|
||||
PORTNAME= xorg
|
||||
PORTVERSION= 21.1.8
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= x11-servers
|
||||
MASTER_SITES= XORG/individual/xserver
|
||||
@ -58,7 +58,6 @@ MESON_ARGS+= -Dxwin=false \
|
||||
-Dxselinux=false \
|
||||
-Dfallback_input_driver=libinput \
|
||||
-Ddocs=false \
|
||||
-Dudev_kms=false \
|
||||
-Dxcsecurity=true \
|
||||
-Dxkb_dir=${LOCALBASE}/share/X11/xkb \
|
||||
-Dxkb_output_dir=/var/lib/xkb \
|
||||
@ -72,10 +71,12 @@ MESON_ARGS+= -D${f}=false
|
||||
LIB_DEPENDS+= libudev.so:devel/libudev-devd \
|
||||
libxcvt.so:x11/libxcvt
|
||||
MESON_ARGS+= -Dudev=true \
|
||||
-Dudev_kms=true \
|
||||
-Dlog_dir=/var/log \
|
||||
-Dsuid_wrapper=true
|
||||
.else
|
||||
MESON_ARGS+= -Dudev=false
|
||||
MESON_ARGS+= -Dudev=false \
|
||||
-Dudev_kms=false
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR} == xorg || ${FLAVOR} == xephyr
|
||||
|
@ -1,14 +1,15 @@
|
||||
--- hw/xfree86/os-support/meson.build.orig 2022-07-12 13:27:57 UTC
|
||||
--- hw/xfree86/os-support/meson.build.orig 2023-03-29 12:55:03 UTC
|
||||
+++ hw/xfree86/os-support/meson.build
|
||||
@@ -96,6 +96,7 @@ elif host_machine.system().endswith('bsd')
|
||||
@@ -96,6 +96,8 @@ elif host_machine.system().endswith('bsd')
|
||||
'bsd/bsd_VTsw.c',
|
||||
'bsd/bsd_bell.c',
|
||||
'bsd/bsd_init.c',
|
||||
+ 'linux/lnx_platform.c',
|
||||
+ 'misc/SlowBcopy.c',
|
||||
'shared/pm_noop.c'
|
||||
]
|
||||
|
||||
@@ -111,9 +112,9 @@ elif host_machine.system().endswith('bsd')
|
||||
@@ -111,9 +113,9 @@ elif host_machine.system().endswith('bsd')
|
||||
if host_machine.system() == 'netbsd' or host_machine.system() == 'openbsd'
|
||||
os_dep += cc.find_library('i386')
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user