git: 3c56f9634cec - main - x11/xlibre-minimal: New port: XLibre + X.Org minimal distribution metaport

From: Jose Alonso Cardenas Marquez <acm_at_FreeBSD.org>
Date: Sat, 27 Dec 2025 01:46:26 UTC
The branch main has been updated by acm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3c56f9634cec1df043d809b9de34c479a8aae715

commit 3c56f9634cec1df043d809b9de34c479a8aae715
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2025-12-27 01:44:24 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2025-12-27 01:45:44 +0000

    x11/xlibre-minimal: New port: XLibre + X.Org minimal distribution metaport
    
    Obtained from:  https://github.com/b-aaz/xlibre-ports
---
 x11/Makefile                 |  1 +
 x11/xlibre-minimal/Makefile  | 35 +++++++++++++++++++++++++++++++++++
 x11/xlibre-minimal/pkg-descr |  2 ++
 3 files changed, 38 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index abaf2faf9cff..50cca63cd3a6 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -609,6 +609,7 @@
     SUBDIR += xkeywrap
     SUBDIR += xkill
     SUBDIR += xlibre
+    SUBDIR += xlibre-minimal
     SUBDIR += xload
     SUBDIR += xloadimage
     SUBDIR += xlockmore
diff --git a/x11/xlibre-minimal/Makefile b/x11/xlibre-minimal/Makefile
new file mode 100644
index 000000000000..177e5468702f
--- /dev/null
+++ b/x11/xlibre-minimal/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	xlibre-minimal
+PORTVERSION=	1.0
+CATEGORIES=	x11 x11-servers
+
+MAINTAINER=	b-aazbsd@proton.me
+COMMENT=	XLibre + X.Org minimal distribution metaport
+WWW=		https://github.com/X11Libre/xserver/ \
+		https://www.x.org/
+
+USES=		metaport
+
+.include "../../x11-servers/xlibre-server/Makefile.version"
+MODULEDIR=	${LOCALBASE}/lib/xorg/modules/xlibre-${XLIBRE_MJR_VER}/
+VIDEODIR=	${MODULEDIR}/drivers
+INPUTDIR=	${MODULEDIR}/input
+
+.include <bsd.port.options.mk>
+
+VIDEO_DRIVER?=	vesa
+
+RUN_DEPENDS+=	${LOCALBASE}/bin/Xorg:x11-servers/xlibre-server \
+		${LOCALBASE}/bin/xinit:x11/xinit \
+		${LOCALBASE}/bin/xauth:x11/xauth \
+		${INPUTDIR}/libinput_drv.so:x11-drivers/xlibre-xf86-input-libinput
+
+.if ${VIDEO_DRIVER} == "nvidia"
+RUN_DEPENDS+=	${LOCALBASE}/lib/xorg/modules/drivers/nvidia_drv.so:x11/nvidia-driver@xlibre
+.elif ${VIDEO_DRIVER} == "intel"
+RUN_DEPENDS+=	${LOCALBASE}/lib/dri/i965_drv_video.so:multimedia/libva-intel-driver
+RUN_DEPENDS+=	${VIDEODIR}/${VIDEO_DRIVER}_drv.so:x11-drivers/xlibre-xf86-video-${VIDEO_DRIVER}
+.else
+RUN_DEPENDS+=	${VIDEODIR}/${VIDEO_DRIVER}_drv.so:x11-drivers/xlibre-xf86-video-${VIDEO_DRIVER}
+.endif
+
+.include <bsd.port.mk>
diff --git a/x11/xlibre-minimal/pkg-descr b/x11/xlibre-minimal/pkg-descr
new file mode 100644
index 000000000000..b968f08c0d69
--- /dev/null
+++ b/x11/xlibre-minimal/pkg-descr
@@ -0,0 +1,2 @@
+This is a meta-port that includes the least amount of ports for working
+comfortably with XLibre X server.