summaryrefslogtreecommitdiff
path: root/x11/foot
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2021-01-19 17:05:55 +0000
committerJan Beich <jbeich@FreeBSD.org>2021-01-19 17:05:55 +0000
commitd900a00d9ea285e5267b28dcedabf0bcc7594df7 (patch)
tree2c6aed983ead969ec9cfb548f92ea371bb5da78a /x11/foot
parentx11/xmenu: Update to 4.5.4 (diff)
x11/foot: add new port
A fast, lightweight and minimalistic Wayland terminal emulator. Features: - Fast - Lightweight, in dependencies, on-disk and in-memory - Wayland native - DE agnostic - User configurable font fallback - On-the-fly font resize - On-the-fly DPI font size adjustment - Scrollback search - Color emoji support - Server/daemon mode - IME (via text-input-v3) - Multi-seat - Synchronized Updates - Sixel image support https://codeberg.org/dnkl/foot
Notes
Notes: svn path=/head/; revision=562056
Diffstat (limited to 'x11/foot')
-rw-r--r--x11/foot/Makefile51
-rw-r--r--x11/foot/distinfo31
-rw-r--r--x11/foot/pkg-descr19
-rw-r--r--x11/foot/pkg-message17
-rw-r--r--x11/foot/pkg-plist12
5 files changed, 130 insertions, 0 deletions
diff --git a/x11/foot/Makefile b/x11/foot/Makefile
new file mode 100644
index 000000000000..8e46bbdef1c6
--- /dev/null
+++ b/x11/foot/Makefile
@@ -0,0 +1,51 @@
+# $FreeBSD$
+
+PORTNAME= foot
+DISTVERSION= 1.6.2
+CATEGORIES= x11
+MASTER_SITES= https://codeberg.org/dnkl/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
+
+PATCH_SITES= https://github.com/jbeich/${PORTNAME}/commit/
+PATCHFILES+= 301fd904df8f.patch:-p1 # main: correct header for mode macros
+PATCHFILES+= 8fc036b2b31c.patch:-p1 # client/server: switch to POSIX header for sockaddr_un
+PATCHFILES+= 7d60eb475c3f.patch:-p1 # terminal: add/exclude missing headers
+PATCHFILES+= 0541c4377d34.patch:-p1 # uri: switch to conservative maximum hostname lengthb
+PATCHFILES+= 225a19d49aa8.patch:-p1 # slave: skip e310487dae99 if not supported
+PATCHFILES+= 859e9b145be2.patch:-p1 # client: adjust overflow check on 32-bit (i386, armv7)
+PATCHFILES+= 0fa2bf34d323.patch:-p1 # shm: silence -Wunused-function on i386
+PATCHFILES+= 5937c4157c6d.patch:-p1 # shm: disable fallocate optimization if not supported
+PATCHFILES+= 6614d6a60753.patch:-p1 # shm: unbreak build without memfd_create
+PATCHFILES+= 400e06127154.patch:-p1 # render: set thread name in a portable way
+PATCHFILES+= 237a8fdcf8bb.patch:-p1 # meson: don't force POSIX compliance
+PATCHFILES+= 754b0b8900be.patch:-p1 # meson: libpthread may lack C11 threads e.g., on FreeBSD
+PATCHFILES+= 30243d39e602.patch:-p1 # meson: require epoll-shim on BSDs
+PATCHFILES+= db419ae55d46.patch:-p1 # meson: optionalize terminfo dependency
+
+MAINTAINER= jbeich@FreeBSD.org
+COMMENT= Fast, lightweight and minimalistic Wayland terminal emulator
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \
+ tllist>=1.0.4:devel/tllist \
+ wayland-protocols>0:graphics/wayland-protocols \
+ scdoc:textproc/scdoc
+LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
+ libwayland-client.so:graphics/wayland \
+ libfcft.so:x11-fonts/fcft \
+ libfontconfig.so:x11-fonts/fontconfig \
+ libxkbcommon.so:x11/libxkbcommon
+
+USES= compiler:c11 meson pkgconfig xorg
+USE_XORG= pixman
+WRKSRC= ${WRKDIR}/${PORTNAME}
+MESON_ARGS= -Dterminfo=false
+
+# XXX Drop after FreeBSD 12.1 EOL
+.if exists(/usr/lib/clang/8.0.1)
+# prompt.c:45:21: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
+CFLAGS+= -Wno-error=missing-braces
+.endif
+
+.include <bsd.port.mk>
diff --git a/x11/foot/distinfo b/x11/foot/distinfo
new file mode 100644
index 000000000000..490d6ef28d94
--- /dev/null
+++ b/x11/foot/distinfo
@@ -0,0 +1,31 @@
+TIMESTAMP = 1608562705
+SHA256 (foot-1.6.2.tar.gz) = dee10d8153a3ed57e21f5d8c0ed4121ddf83eeb33655728e5b8c46dfa3566a45
+SIZE (foot-1.6.2.tar.gz) = 340942
+SHA256 (301fd904df8f.patch) = d1c3d595a30412292d0ad7ed25c0142564e30e3564798c3b1a7726d85fc1358a
+SIZE (301fd904df8f.patch) = 1341
+SHA256 (8fc036b2b31c.patch) = 7af89c2274ab676e98f26592aac2e4caff3408911c0af9c7e1073b626bb1f384
+SIZE (8fc036b2b31c.patch) = 2110
+SHA256 (7d60eb475c3f.patch) = 5f7b868fc3a1a3e63c436e4c6552098832ab10b0a31129a57fae075a662aee97
+SIZE (7d60eb475c3f.patch) = 1066
+SHA256 (0541c4377d34.patch) = 5888fb21d0916039970d6bf11794d434616053c795df148d132a251c983a08bb
+SIZE (0541c4377d34.patch) = 833
+SHA256 (225a19d49aa8.patch) = 8404e138fc8e78744585308df4429ea50f90c41b5ee376be9c28e773af6bba50
+SIZE (225a19d49aa8.patch) = 897
+SHA256 (859e9b145be2.patch) = 6442015f92b1cb14f68595f17a92951e8c0af02b47249d5d5e87c544669e7b54
+SIZE (859e9b145be2.patch) = 1521
+SHA256 (0fa2bf34d323.patch) = bfa9e8cb7082723ce47532308286dfb95bc7f510bc608779464f33a8d1569f40
+SIZE (0fa2bf34d323.patch) = 788
+SHA256 (5937c4157c6d.patch) = eb7f4952b59886c1f4a353583a1c402df98f9866a7a9754b8e20b0a2c9621d6e
+SIZE (5937c4157c6d.patch) = 3683
+SHA256 (6614d6a60753.patch) = 2c1538c0c1e545c2cd31dc86258cfdb459a53aaf914fe7bb5c9bd4ebcf75507f
+SIZE (6614d6a60753.patch) = 5142
+SHA256 (400e06127154.patch) = cf4def2398e0563a77e22eb92b1a55b44af1070794811b386eeda5bbc3108268
+SIZE (400e06127154.patch) = 1998
+SHA256 (237a8fdcf8bb.patch) = 5901737978169a67e9cb9423daf0d4d3d79bbb8f979988e519434cd9fe6b4211
+SIZE (237a8fdcf8bb.patch) = 12214
+SHA256 (754b0b8900be.patch) = f0a97644ecaef34dc1e5da37280f805d14b88a24243338ede09375ff24dc8438
+SIZE (754b0b8900be.patch) = 2037
+SHA256 (30243d39e602.patch) = 1d88076621cbec1b64a0c9ceec0813f18a9428d2ff3154c07253f941f7a4f12c
+SIZE (30243d39e602.patch) = 4104
+SHA256 (db419ae55d46.patch) = dad1f6e4cbcceb52e70d848dfb59b63c890f7bd042f5473449715265ef15c7e5
+SIZE (db419ae55d46.patch) = 2224
diff --git a/x11/foot/pkg-descr b/x11/foot/pkg-descr
new file mode 100644
index 000000000000..cd8efef0c9c7
--- /dev/null
+++ b/x11/foot/pkg-descr
@@ -0,0 +1,19 @@
+A fast, lightweight and minimalistic Wayland terminal emulator.
+
+Features:
+- Fast
+- Lightweight, in dependencies, on-disk and in-memory
+- Wayland native
+- DE agnostic
+- User configurable font fallback
+- On-the-fly font resize
+- On-the-fly DPI font size adjustment
+- Scrollback search
+- Color emoji support
+- Server/daemon mode
+- IME (via text-input-v3)
+- Multi-seat
+- Synchronized Updates
+- Sixel image support
+
+WWW: https://codeberg.org/dnkl/foot
diff --git a/x11/foot/pkg-message b/x11/foot/pkg-message
new file mode 100644
index 000000000000..61d6bf89415c
--- /dev/null
+++ b/x11/foot/pkg-message
@@ -0,0 +1,17 @@
+[
+{ type: install
+ message: <<EOM
+Some features require adjusting termcap(5) e.g.,
+
+ $ export TERMCAP="${TERM}:bw:hs:ds=\E]2;\E\\:fs=\E\\:kb=\177:ts=\E]2;:vb=\E]555\E\\:tc=${TERM}:"
+
+or providing a separate entry for "foot --term=foot" e.g.,
+
+ $ cat >>/etc/termcap
+ foot|foot terminal emulator:\
+ :bw:hs:\
+ :ds=\E]2;\E\\:fs=\E\\:kb=\177:ts=\E]2;:vb=\E]555\E\\:\
+ :tc=xterm-256color:
+EOM
+}
+]
diff --git a/x11/foot/pkg-plist b/x11/foot/pkg-plist
new file mode 100644
index 000000000000..11bbc7955757
--- /dev/null
+++ b/x11/foot/pkg-plist
@@ -0,0 +1,12 @@
+bin/foot
+bin/footclient
+man/man1/foot.1.gz
+man/man1/footclient.1.gz
+man/man5/foot.ini.5.gz
+share/applications/foot-server.desktop
+share/applications/foot.desktop
+%%DATADIR%%/foot.ini
+share/icons/hicolor/48x48/apps/foot.png
+share/icons/hicolor/scalable/apps/foot.svg
+share/zsh/site-functions/_foot
+share/zsh/site-functions/_footclient