git: 01c7cbc3bf60 - main - x11/nvidia-driver: Add xlibre support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Dec 2025 09:01:13 UTC
The branch main has been updated by acm:
URL: https://cgit.FreeBSD.org/ports/commit/?id=01c7cbc3bf60015740bcff0bb138738fd1137343
commit 01c7cbc3bf60015740bcff0bb138738fd1137343
Author: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2025-12-12 08:59:59 +0000
Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2025-12-12 08:59:59 +0000
x11/nvidia-driver: Add xlibre support
PR: 291598
Approved by: kbowling
---
x11/nvidia-driver/Makefile | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index 486850364262..e93845e211db 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -28,6 +28,9 @@ LICENSE_FILE= ${WRKSRC}/doc/license.txt
.include "${.CURDIR}/../nvidia-driver/Makefile.version"
.include "${.CURDIR}/../nvidia-driver/Makefile.common"
+FLAVORS= xorg xlibre
+FLAVOR?= ${FLAVORS:[1]}
+
# the package provides lib32 versions of the libraries, which then depends
# themselves in non existing lib32 libraries, so we don't want the package
# to end up depending on non existing libraries
@@ -57,7 +60,18 @@ USES= uidfix xorg
.if ${NVVERSION} >= 470.04201
USES+= tar:xz
.endif
-USE_XORG= x11 xorg-server xext
+
+USE_XORG= x11 xext
+.if ${FLAVOR} == xlibre
+PKGNAMEPREFIX= xlibre-
+USES+=xlibre
+USE_XLIBRE+= xlibre-server
+CONFLICTS_BUILD+= xorg-server
+.else
+USE_XORG+= xorg-server
+CONFLICTS_BUILD+= xlibre-server
+.endif
+
USE_LDCONFIG= yes
PIE_UNSAFE= yes