[Buildroot] [PATCH v4 03/10] package/foot: new package

Yann E. MORIN yann.morin.1998 at free.fr
Sun Dec 24 21:38:30 UTC 2023


Adam, All,

On 2023-12-21 08:36 -0700, Adam Duskett spake thusly:
> This is the default terminal sway uses.
> 
> Signed-off-by: Adam Duskett <adam.duskett at amarulasolutions.com>
> ---
[--SNIP--]
> diff --git a/package/foot/Config.in b/package/foot/Config.in
> new file mode 100644
> index 0000000000..a3894c5469
> --- /dev/null
> +++ b/package/foot/Config.in
> @@ -0,0 +1,36 @@
> +config BR2_PACKAGE_FOOT
> +	bool "foot"
> +	depends on !BR2_STATIC_LIBS # wayland -> dlfcn.h

As was noticed by Thomas on a previous patch in this series, only the
first-order dependencies need to be listed, so I dropped the dlfcn.h
part.

Applied to master, thanks.

Regards,
Yann E. MORIN.

> +	depends on BR2_TOOLCHAIN_HAS_THREADS # fcft, wayland
> +	select BR2_PACKAGE_FCFT
> +	select BR2_PACKAGE_FONTCONFIG
> +	select BR2_PACKAGE_FREETYPE
> +	select BR2_PACKAGE_LIBXKBCOMMON
> +	select BR2_PACKAGE_PIXMAN
> +	select BR2_PACKAGE_TLLIST
> +	select BR2_PACKAGE_WAYLAND
> +	select BR2_PACKAGE_WAYLAND_PROTOCOLS
> +	help
> +	  A fast, lightweight and minimalistic Wayland terminal
> +	  emulator.
> +	  NOTE: foot needs a working UTF-8 locale (BR2_GENERATE_LOCALE)
> +
> +	  https://codeberg.org/dnkl/foot
> +
> +if BR2_PACKAGE_FOOT
> +
> +config BR2_PACKAGE_FOOT_GRAPHEME_CLUSTERING
> +	bool "grapheme-clustering"
> +	select BR2_PACKAGE_UTF8PROC
> +	help
> +	  Enables grapheme clustering.
> +
> +config BR2_PACKAGE_FOOT_THEMES
> +	bool "themes"
> +	help
> +	  Install themes (predefined color schemes)
> +
> +endif # BR2_PACKAGE_FOOT
> +
> +comment "foot needs a toolchain w/ dynamic library, threads"
> +	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
> diff --git a/package/foot/foot.hash b/package/foot/foot.hash
> new file mode 100644
> index 0000000000..f3bf0f6058
> --- /dev/null
> +++ b/package/foot/foot.hash
> @@ -0,0 +1,3 @@
> +# Locally computed
> +sha256  8060ec28cbf6e2e3d408665330da4bc48fd094d4f1265d7c58dc75c767463c29  1.16.2.tar.gz
> +sha256  d534a23a31500a0ac958d9634b84f532bd73ff1aca1bb8f7debbcbebc16ff39a  LICENSE
> diff --git a/package/foot/foot.mk b/package/foot/foot.mk
> new file mode 100644
> index 0000000000..1595e2a718
> --- /dev/null
> +++ b/package/foot/foot.mk
> @@ -0,0 +1,50 @@
> +################################################################################
> +#
> +# foot
> +#
> +################################################################################
> +
> +FOOT_VERSION = 1.16.2
> +FOOT_SOURCE = $(FOOT_VERSION).tar.gz
> +FOOT_SITE = https://codeberg.org/dnkl/foot/archive
> +FOOT_LICENSE = MIT
> +FOOT_LICENSE_FILES = LICENSE
> +FOOT_DEPENDENCIES = \
> +	fcft \
> +	fontconfig \
> +	freetype \
> +	libxkbcommon \
> +	pixman \
> +	tllist \
> +	wayland \
> +	wayland-protocols
> +
> +FOOT_CONF_OPTS = \
> +	-Ddocs=disabled \
> +	-Dtests=false
> +
> +ifeq ($(BR2_PACKAGE_SYSTEMD),y)
> +FOOT_DEPENDENCIES += systemd
> +endif
> +
> +ifeq ($(BR2_PACKAGE_LIBUTEMPTER),y)
> +FOOT_DEPENDENCIES += libutempter
> +FOOT_CONF_OPTS += -Dutmp-backend='libutempter'
> +else
> +FOOT_CONF_OPTS += -Dutmp-backend='none'
> +endif
> +
> +ifeq ($(BR2_PACKAGE_FOOT_GRAPHEME_CLUSTERING),y)
> +FOOT_DEPENDENCIES += utf8proc
> +FOOT_CONF_OPTS += -Dgrapheme-clustering=enabled
> +else
> +FOOT_CONF_OPTS += -Dgrapheme-clustering=disabled
> +endif
> +
> +ifeq ($(BR2_PACKAGE_FOOT_THEMES),y)
> +FOOT_CONF_OPTS += -Dthemes=true
> +else
> +FOOT_CONF_OPTS += -Dthemes=false
> +endif
> +
> +$(eval $(meson-package))
> -- 
> 2.43.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list