package/foot: new package

This is the default terminal sway uses.

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
[yann.morin.1998@free.fr: add comment only for first-order deps]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Adam Duskett 2023-12-21 08:36:12 -07:00 committed by Yann E. MORIN
parent 2f6b1b8e68
commit d62dda2065
5 changed files with 91 additions and 0 deletions

View File

@ -35,6 +35,7 @@ N: Adam Duskett <adam.duskett@amarulasolutions.com>
F: package/depot-tools/
F: package/dmenu-wayland/
F: package/fcft/
F: package/foot/
F: package/flutter-engine/
F: package/flutter-gallery/
F: package/flutter-pi/

View File

@ -314,6 +314,7 @@ comment "Graphic applications"
source "package/cage/Config.in"
source "package/cog/Config.in"
source "package/dmenu-wayland/Config.in"
source "package/foot/Config.in"
source "package/fswebcam/Config.in"
source "package/ghostscript/Config.in"
source "package/glmark2/Config.in"

36
package/foot/Config.in Normal file
View File

@ -0,0 +1,36 @@
config BR2_PACKAGE_FOOT
bool "foot"
depends on !BR2_STATIC_LIBS # wayland
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

3
package/foot/foot.hash Normal file
View File

@ -0,0 +1,3 @@
# Locally computed
sha256 8060ec28cbf6e2e3d408665330da4bc48fd094d4f1265d7c58dc75c767463c29 1.16.2.tar.gz
sha256 d534a23a31500a0ac958d9634b84f532bd73ff1aca1bb8f7debbcbebc16ff39a LICENSE

50
package/foot/foot.mk Normal file
View File

@ -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))