1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

x11-servers/xorg-server: expose UDEV support for evdev hotplug

UDEV builds Xorg against libudev-devd, allowing automatic detection of
/dev/input/* (evdev) devices with xf86-input-libinput or xf86-input-evdev.

PR:		222609
Submitted by:	Greg V <greg@unrelenting.technology>
Tested by:	Ivan <bsd@abinet.ru>, manu
Approved by:	x11 (bapt via IRC)
This commit is contained in:
Jan Beich 2020-01-25 16:26:41 +00:00
parent 4b23f7b9b5
commit 78328a9895
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=524048
7 changed files with 16 additions and 7 deletions

View File

@ -16,7 +16,7 @@ MASTERDIR= ${.CURDIR}/../xorg-server
DESCR= ${.CURDIR}/pkg-descr
SLAVE_PORT= yes
OPTIONS_EXCLUDE=DEVD HAL SUID
OPTIONS_EXCLUDE=DEVD HAL SUID UDEV
USE_XORG= x11 xcb

View File

@ -11,7 +11,7 @@ MASTERDIR= ${.CURDIR}/../xorg-server
DESCR= ${.CURDIR}/pkg-descr
SLAVE_PORT= yes
OPTIONS_EXCLUDE=DEVD HAL SUID
OPTIONS_EXCLUDE=DEVD HAL SUID UDEV
USE_XORG= dmx xorgproto x11 xaw7 xext xfixes xi xmu xpm xrender xres xt xtst

View File

@ -17,7 +17,7 @@ PATCHDIR= ${.CURDIR}/files
RUN_DEPENDS= xkeyboard-config>=2.5:x11/xkeyboard-config
SLAVE_PORT= yes
OPTIONS_EXCLUDE=DEVD HAL SUID
OPTIONS_EXCLUDE=DEVD HAL SUID UDEV
USE_XORG= x11 xext xfont2

View File

@ -22,9 +22,10 @@ SLAVE_PORT?= no
OPTIONS_SUB= yes
OPTIONS_DEFINE= SUID
OPTIONS_RADIO= CONF
OPTIONS_RADIO_CONF= DEVD HAL
OPTIONS_RADIO_CONF= DEVD HAL UDEV
DEVD_DESC= Use devd for autoconfiguration of input devices
HAL_DESC= Use hald for autoconfiguration of input devices
UDEV_DESC= Use udev via libudev-devd for autoconfiguration of input devices
SUID_DESC= Install the Xorg server with setuid bit set
OPTIONS_DEFAULT=DEVD SUID
@ -52,7 +53,7 @@ USE_XORG+= pixman xau xdmcp xfont xkbfile xorgproto xshmfence xtrans
CONFIGURE_ARGS+=--without-doxygen --without-xmlto --without-fop \
--with-default-font-path="$$(${DEFAULT_FONTPATH_CMD})" \
--localstatedir=/var --with-shared-memory-dir=/tmp \
--disable-config-udev --disable-config-udev-kms \
--disable-config-udev-kms --disable-systemd-logind \
--without-dtrace --enable-glamor
INSTALL_TARGET= install-strip
@ -92,6 +93,13 @@ CONFIGURE_ARGS+= --enable-config-hal
CONFIGURE_ARGS+= --disable-config-hal
.endif
.if ${PORT_OPTIONS:MUDEV}
LIB_DEPENDS+= libudev.so:devel/libudev-devd
CONFIGURE_ARGS+= --enable-config-udev
.else
CONFIGURE_ARGS+= --disable-config-udev
.endif
# We handle Xorg setuid in the plist. This allows to build xorg-server as a user.
CONFIGURE_ARGS+=--disable-install-setuid

View File

@ -185,6 +185,7 @@ man/man4/fbdevhw.4.gz
man/man4/modesetting.4.gz
man/man5/xorg.conf.5.gz
man/man5/xorg.conf.d.5.gz
%%UDEV%%share/X11/xorg.conf.d/10-quirks.conf
share/aclocal/xorg-server.m4
@dir etc/X11/xorg.conf.d
@dir %%FONTPATHD%%

View File

@ -15,7 +15,7 @@ DISTINFO_FILE= ${.CURDIR}/distinfo
PATCHDIR= ${.CURDIR}/files
SLAVE_PORT= yes
OPTIONS_EXCLUDE=DEVD HAL SUID
OPTIONS_EXCLUDE=DEVD HAL SUID UDEV
USE_XORG= xfont2

View File

@ -21,7 +21,7 @@ DISTINFO_FILE= ${.CURDIR}/distinfo
PATCHDIR= ${.CURDIR}/files
SLAVE_PORT= yes
OPTIONS_EXCLUDE=DEVD HAL SUID
OPTIONS_EXCLUDE=DEVD HAL SUID UDEV
USE_XORG= x11 xext xfont2
USE_GL+= egl gbm