pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/vv
Module Name: pkgsrc
Committed By: wiz
Date: Tue Feb 4 11:25:45 UTC 2025
Added Files:
pkgsrc/graphics/vv: DESCR Makefile PLIST distinfo
pkgsrc/graphics/vv/patches: patch-src_util_Alloca.h
patch-src_util_Logs.cpp
Log Message:
graphics/vv: import vv-3.1
vv - terminal image viewer
With vv you can display image files directly in your terminal. This
works both locally and over remote connections. An extensive range
of modern image formats is supported. Image data is displayed in
full color, without any color space reduction or dithering. Images
are scaled to fit the available space in the terminal. Small images
can be upscaled.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/vv/DESCR pkgsrc/graphics/vv/Makefile \
pkgsrc/graphics/vv/PLIST pkgsrc/graphics/vv/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/vv/patches/patch-src_util_Alloca.h \
pkgsrc/graphics/vv/patches/patch-src_util_Logs.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/graphics/vv/DESCR
diff -u /dev/null pkgsrc/graphics/vv/DESCR:1.1
--- /dev/null Tue Feb 4 11:25:45 2025
+++ pkgsrc/graphics/vv/DESCR Tue Feb 4 11:25:45 2025
@@ -0,0 +1,8 @@
+vv - terminal image viewer
+
+With vv you can display image files directly in your terminal. This
+works both locally and over remote connections. An extensive range
+of modern image formats is supported. Image data is displayed in
+full color, without any color space reduction or dithering. Images
+are scaled to fit the available space in the terminal. Small images
+can be upscaled.
Index: pkgsrc/graphics/vv/Makefile
diff -u /dev/null pkgsrc/graphics/vv/Makefile:1.1
--- /dev/null Tue Feb 4 11:25:45 2025
+++ pkgsrc/graphics/vv/Makefile Tue Feb 4 11:25:45 2025
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1 2025/02/04 11:25:45 wiz Exp $
+
+DISTNAME= vv-3.1
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GITHUB:=wolfpld/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/wolfpld/vv/
+COMMENT= View images in your terminal
+LICENSE= modified-bsd
+
+USE_LANGUAGES= c c++
+USE_CXX_FEATURES+= c++20
+# needs <format> which was added in 13, despite being in C++ 20
+GCC_REQD+= 13
+USE_TOOLS+= pkg-config
+INSTALLATION_DIRS+= bin share/doc/vv
+
+# 'master' as of 2025/01/20
+GITHUB_SUBMODULES+= wolfpld tracy f583d1c855bcf45d182eb16a57e84afdab7b0e67 tracy
+CMAKE_CONFIGURE_ARGS+= -DCPM_tracy_SOURCE=${WRKSRC}/tracy
+# hash from CMakeLists.txt
+GITHUB_SUBMODULES+= nothings stb 2e2bef463a5b53ddf8bb788e25da6b8506314c08 stb
+CMAKE_CONFIGURE_ARGS+= -DCPM_stb_SOURCE=${WRKSRC}/stb
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${CMAKE_BUILD_DIR}/vv ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/vv/
+
+.include "../../converters/aklomp-base64/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../graphics/libheif/buildlink3.mk"
+.include "../../graphics/libjxl/buildlink3.mk"
+.include "../../graphics/libraw/buildlink3.mk"
+.include "../../graphics/librsvg/buildlink3.mk"
+.include "../../graphics/libsixel/buildlink3.mk"
+.include "../../graphics/libwebp/buildlink3.mk"
+.include "../../graphics/lcms2/buildlink3.mk"
+.include "../../graphics/openexr/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../devel/cmake/build.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/graphics/vv/PLIST
diff -u /dev/null pkgsrc/graphics/vv/PLIST:1.1
--- /dev/null Tue Feb 4 11:25:45 2025
+++ pkgsrc/graphics/vv/PLIST Tue Feb 4 11:25:45 2025
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2025/02/04 11:25:45 wiz Exp $
+bin/vv
+share/doc/vv/README.md
Index: pkgsrc/graphics/vv/distinfo
diff -u /dev/null pkgsrc/graphics/vv/distinfo:1.1
--- /dev/null Tue Feb 4 11:25:45 2025
+++ pkgsrc/graphics/vv/distinfo Tue Feb 4 11:25:45 2025
@@ -0,0 +1,13 @@
+$NetBSD: distinfo,v 1.1 2025/02/04 11:25:45 wiz Exp $
+
+BLAKE2s (nothings-stb-2e2bef463a5b53ddf8bb788e25da6b8506314c08.tar.gz) = abec19494d8c7a652c22a2941984fa7e1aad4004fb60d9c9ff1e74ae9b48f31e
+SHA512 (nothings-stb-2e2bef463a5b53ddf8bb788e25da6b8506314c08.tar.gz) =
c63bd95f97e3985e6de43b6a4091044e7e19a32dcdd21181918d1350cb363238d4685c13773954c3942ad9d3cddaef5bf6605e9c0c8a2f5ec09d23a459ccde28
+Size (nothings-stb-2e2bef463a5b53ddf8bb788e25da6b8506314c08.tar.gz) = 1512470 bytes
+BLAKE2s (vv-3.1.tar.gz) = a45af79fb7b080b116042c0ef0d99e74dc16933b218780f6f74a068a42766a26
+SHA512 (vv-3.1.tar.gz) = 09b4cf83db7606a22405c9563b4bfac78838be42a51f26424306a884f0d1a9b8779ce92adc25aebb4e1f314e645f601ab6075a499509709897876ecee15c5f0b
+Size (vv-3.1.tar.gz) = 1839316 bytes
+BLAKE2s (wolfpld-tracy-f583d1c855bcf45d182eb16a57e84afdab7b0e67.tar.gz) = 379d29e811edb705d066f087b18cb0596a8ecd4a9c1f629809415fd14a940935
+SHA512 (wolfpld-tracy-f583d1c855bcf45d182eb16a57e84afdab7b0e67.tar.gz) =
36401c62b39ae7c44f765b7c0e092f795756d947159b3c1e9fc2034735dad7746fadb1265bd06bf2bd4a6d2c318e62811a4438aa4eb43ddb1e5f32871aaf284e
+Size (wolfpld-tracy-f583d1c855bcf45d182eb16a57e84afdab7b0e67.tar.gz) = 5253102 bytes
+SHA1 (patch-src_util_Alloca.h) = d3f26e7eba4a645c4fef7a0248a0efaef7ca8cc1
+SHA1 (patch-src_util_Logs.cpp) = 259b29964f2c8e6544e3f5e9bb6117d6c845fe69
Index: pkgsrc/graphics/vv/patches/patch-src_util_Alloca.h
diff -u /dev/null pkgsrc/graphics/vv/patches/patch-src_util_Alloca.h:1.1
--- /dev/null Tue Feb 4 11:25:45 2025
+++ pkgsrc/graphics/vv/patches/patch-src_util_Alloca.h Tue Feb 4 11:25:45 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_util_Alloca.h,v 1.1 2025/02/04 11:25:45 wiz Exp $
+
+Fix build on NetBSD
+https://github.com/wolfpld/vv/pull/11/files
+
+--- src/util/Alloca.h.orig 2024-12-23 10:46:59.000000000 +0000
++++ src/util/Alloca.h
+@@ -1,6 +1,6 @@
+ #pragma once
+
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ # include <stdlib.h>
+ #else
+ # include <alloca.h>
Index: pkgsrc/graphics/vv/patches/patch-src_util_Logs.cpp
diff -u /dev/null pkgsrc/graphics/vv/patches/patch-src_util_Logs.cpp:1.1
--- /dev/null Tue Feb 4 11:25:45 2025
+++ pkgsrc/graphics/vv/patches/patch-src_util_Logs.cpp Tue Feb 4 11:25:45 2025
@@ -0,0 +1,30 @@
+$NetBSD: patch-src_util_Logs.cpp,v 1.1 2025/02/04 11:25:45 wiz Exp $
+
+Fix build on NetBSD.
+https://github.com/wolfpld/vv/commit/b13920153b945d8b2531b7892789c438032bf5c6
+
+--- src/util/Logs.cpp.orig 2024-12-23 10:46:59.000000000 +0000
++++ src/util/Logs.cpp
+@@ -101,10 +101,12 @@ void MCoreLogMessage( LogLevel level, co
+ va_start( args, fmt );
+ const auto len = strlen( fileName );
+
++#ifndef DISABLE_CALLSTACK
+ // Get callstack outside of lock
+ const bool printCallstack = level >= LogLevel::Error && s_logLevel <= LogLevel::Callstack;
+ CallstackData stack;
+ if( printCallstack ) stack.count = backtrace( stack.addr, 64 );
++#endif
+
+ s_logLock.lock();
+ PrintLevel( level );
+@@ -121,7 +123,9 @@ void MCoreLogMessage( LogLevel level, co
+ fprintf( s_logFile, ANSI_RESET "\n" );
+ fflush( s_logFile );
+ }
++#ifndef DISABLE_CALLSTACK
+ if( printCallstack ) PrintCallstack( stack, 1 );
++#endif
+ s_logLock.unlock();
+ va_end( args );
+
Home |
Main Index |
Thread Index |
Old Index