pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
ueberzugcpp: add new package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Tue Feb 11 16:19:14 2025 +0100
Changeset: 0da6253b21e2ca55cd099236960bcde91a0095d3
Modified Files:
Makefile
Added Files:
ueberzugcpp/DESCR
ueberzugcpp/Makefile
ueberzugcpp/PLIST
ueberzugcpp/distinfo
ueberzugcpp/patches/patch-src_process_linux.cpp
Log Message:
ueberzugcpp: add new package
Finished but untested.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0da6253b21e2ca55cd099236960bcde91a0095d3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
ueberzugcpp/DESCR | 19 ++++++++++++++++
ueberzugcpp/Makefile | 30 +++++++++++++++++++++++++
ueberzugcpp/PLIST | 5 +++++
ueberzugcpp/distinfo | 6 +++++
ueberzugcpp/patches/patch-src_process_linux.cpp | 15 +++++++++++++
6 files changed, 76 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 194463923d..792454c9e1 100644
--- a/Makefile
+++ b/Makefile
@@ -5772,6 +5772,7 @@ SUBDIR+= uclibc
SUBDIR+= udhcp
SUBDIR+= udp-ping
SUBDIR+= udunits2
+SUBDIR+= ueberzugcpp
SUBDIR+= uebimiau
SUBDIR+= ufc
SUBDIR+= uffizi
diff --git a/ueberzugcpp/DESCR b/ueberzugcpp/DESCR
new file mode 100644
index 0000000000..814278f144
--- /dev/null
+++ b/ueberzugcpp/DESCR
@@ -0,0 +1,19 @@
+Ueberzug++ is a command line utility written in C++ which allows
+to draw images on terminals by using X11/wayland child windows,
+sixels, kitty and iterm2..
+
+This project intends to be a drop-in replacement for the now defunct
+ueberzug project.
+
+Advantages over w3mimgdisplay and ueberzug:
+
+- support for wayland: sway, hyprland and wayfire
+- support for MacOS
+- no race conditions as a new window is created to display images
+- expose events will be processed, so images will be redrawn on
+ switch workspaces
+- tmux support on X11, sway and hyprland
+- terminals without the WINDOWID environment variable are supported
+- chars are used as position - and size unit
+- No memory leak (usage of smart pointers)
+- A lot of image formats supported (through opencv and libvips).
diff --git a/ueberzugcpp/Makefile b/ueberzugcpp/Makefile
new file mode 100644
index 0000000000..918e835847
--- /dev/null
+++ b/ueberzugcpp/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD$
+
+DISTNAME= ueberzugpp-2.9.6
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GITHUB:=jstkdng/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/jstkdng/ueberzugpp/
+COMMENT= Command line utility allowing to draw images on terminals
+LICENSE= gnu-gpl-v3
+
+USE_LANGUAGES= c c++
+USE_TOOLS+= pkg-config
+
+.include "../../devel/cmake/build.mk"
+.include "../../devel/CLI11/buildlink3.mk"
+.include "../../devel/range-v3/buildlink3.mk"
+.include "../../devel/spdlog/buildlink3.mk"
+.include "../../graphics/chafa/buildlink3.mk"
+.include "../../graphics/libsixel/buildlink3.mk"
+.include "../../graphics/opencv/buildlink3.mk"
+.include "../../parallel/threadingbuildingblocks/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/fmtlib/buildlink3.mk"
+.include "../../textproc/nlohmann-json/buildlink3.mk"
+.include "../../wip/libvips/buildlink3.mk"
+.include "../../x11/libxcb/buildlink3.mk"
+.include "../../x11/xcb-util-image/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/ueberzugcpp/PLIST b/ueberzugcpp/PLIST
new file mode 100644
index 0000000000..e988999c30
--- /dev/null
+++ b/ueberzugcpp/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+bin/ueberzug
+bin/ueberzugpp
+man/man1/ueberzug.1
+man/man1/ueberzugpp.1
diff --git a/ueberzugcpp/distinfo b/ueberzugcpp/distinfo
new file mode 100644
index 0000000000..7ec4ae75dd
--- /dev/null
+++ b/ueberzugcpp/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (ueberzugpp-2.9.6.tar.gz) = 418c03427c17388d7729f90e164a8d8962cee8d6d70b2f29901e890c2ea96e33
+SHA512 (ueberzugpp-2.9.6.tar.gz) = bb70933cbc887cc3967c6011f0616d056f5723f333f6cfd70e7a3dd785791b83b9855c0b3d0c901efc59d65ba113462946bc0f08d57cf845ec6c59ec861da874
+Size (ueberzugpp-2.9.6.tar.gz) = 69379 bytes
+SHA1 (patch-src_process_linux.cpp) = 2a4797cb732b0fcdc3737301e67cd5c6c556591b
diff --git a/ueberzugcpp/patches/patch-src_process_linux.cpp b/ueberzugcpp/patches/patch-src_process_linux.cpp
new file mode 100644
index 0000000000..2cbad75349
--- /dev/null
+++ b/ueberzugcpp/patches/patch-src_process_linux.cpp
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix build on NetBSD.
+
+--- src/process/linux.cpp.orig 2025-02-11 15:17:24.790710191 +0000
++++ src/process/linux.cpp
+@@ -19,7 +19,7 @@
+ #include <fmt/format.h>
+ #include <fstream>
+ #include <limits>
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ # include <sys/types.h>
+ #else
+ # include <sys/sysmacros.h>
Home |
Main Index |
Thread Index |
Old Index