1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

x11-servers/xorg-server: unbreak nvidia-driver < 410 after 88b0ae2bb9

Restore libglx.so -> .nvidia/libglx.so hardlink as symlink when
xorg-server is reinstalled after nvidia-driver.

PR:		271629
Reported by:	gallatin
This commit is contained in:
Jan Beich 2023-08-13 00:35:29 +02:00
parent 2a6f8cb134
commit 0d5b62609e
2 changed files with 6 additions and 1 deletions
x11-servers/xorg-server

View File

@ -1,6 +1,6 @@
PORTNAME= xorg
PORTVERSION= 21.1.8
PORTREVISION= 2
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= x11-servers
MASTER_SITES= XORG/individual/xserver

View File

@ -2,5 +2,10 @@
PREFIX=${PKG_PREFIX-/usr/local}
if [ -e ${PKG_ROOTDIR}${PREFIX}/lib/xorg/modules/extensions/.nvidia/libglx.so ]; then
install -l rs ${PKG_ROOTDIR}${PREFIX}/lib/xorg/modules/extensions/.nvidia/libglx.so \
${PKG_ROOTDIR}${PREFIX}/lib/xorg/modules/extensions/libglx.so
else
install -l rs ${PKG_ROOTDIR}${PREFIX}/lib/xorg/modules/extensions/.xorg/libglx.so \
${PKG_ROOTDIR}${PREFIX}/lib/xorg/modules/extensions/libglx.so
fi