Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2021 11:38:07 +0000 (UTC)
From:      Mikael Urankar <mikael@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568171 - head/x11/alacritty
Message-ID:  <202103121138.12CBc7bq067077@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mikael
Date: Fri Mar 12 11:38:07 2021
New Revision: 568171
URL: https://svnweb.freebsd.org/changeset/ports/568171

Log:
  x11/alacritty: Add video backend option
  
  PR:		254035
  Submitted by:	Evgeniy Khramtsov

Modified:
  head/x11/alacritty/Makefile

Modified: head/x11/alacritty/Makefile
==============================================================================
--- head/x11/alacritty/Makefile	Fri Mar 12 11:31:40 2021	(r568170)
+++ head/x11/alacritty/Makefile	Fri Mar 12 11:38:07 2021	(r568171)
@@ -3,6 +3,7 @@
 PORTNAME=	alacritty
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.7.2
+PORTREVISION=	1
 CATEGORIES=	x11
 
 MAINTAINER=	mikael@FreeBSD.org
@@ -15,9 +16,8 @@ LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2
 TEST_DEPENDS=	dejavu>0:x11-fonts/dejavu
 
-USES=		cargo localbase:ldflags python:3.6+,build ssl:build xorg
+USES=		cargo localbase:ldflags python:3.6+,build ssl:build
 USE_GITHUB=	yes
-USE_XORG=	xcb
 
 CARGO_CRATES=	ab_glyph_rasterizer-0.1.4 \
 		adler32-1.2.0 \
@@ -221,6 +221,9 @@ CARGO_CRATES=	ab_glyph_rasterizer-0.1.4 \
 CARGO_USE_GITHUB=	yes
 CARGO_INSTALL_PATH=	alacritty
 
+CARGO_FEATURES+=	--no-default-features
+CARGO_CARGOTOML=	${WRKSRC}/${PORTNAME}/Cargo.toml
+
 # For xcb crate
 BINARY_ALIAS=	python3=${PYTHON_CMD}
 
@@ -234,6 +237,17 @@ PLIST_FILES=	bin/alacritty \
 PORTEXAMPLES=	alacritty.yml
 
 OPTIONS_DEFINE=	EXAMPLES
+
+BACKEND_DESC=	Display backend
+
+OPTIONS_MULTI=		BACKEND
+OPTIONS_MULTI_BACKEND=	WAYLAND X11
+OPTIONS_DEFAULT=	WAYLAND
+
+WAYLAND_VARS=	CARGO_FEATURES+=wayland
+X11_USES=	xorg
+X11_USE=	XORG=xcb
+X11_VARS=	CARGO_FEATURES+=x11
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/alacritty



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103121138.12CBc7bq067077>