pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
vv: add package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Mon Jan 20 14:36:32 2025 +0100
Changeset: bcfb725b60e670f05da5c2768c456f6c95a98c0f
Modified Files:
Makefile
Added Files:
vv/DESCR
vv/Makefile
vv/PLIST
vv/distinfo
vv/patches/patch-CMakeLists.txt
vv/patches/patch-src_util_Alloca.h
Log Message:
vv: add package
works, but needs to be cleaned up for non-NetBSD
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=bcfb725b60e670f05da5c2768c456f6c95a98c0f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 3 +++
vv/DESCR | 23 +++++++++++++++++++
vv/Makefile | 46 ++++++++++++++++++++++++++++++++++++++
vv/PLIST | 3 +++
vv/distinfo | 13 +++++++++++
vv/patches/patch-CMakeLists.txt | 15 +++++++++++++
vv/patches/patch-src_util_Alloca.h | 12 ++++++++++
7 files changed, 115 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index d8b8493aea..c0a1f86b9c 100644
--- a/Makefile
+++ b/Makefile
@@ -3999,6 +3999,7 @@ SUBDIR+= py-krylov
SUBDIR+= py-krypy
SUBDIR+= py-lang-trans
SUBDIR+= py-lapack
+SUBDIR+= py-lark
SUBDIR+= py-larlib
SUBDIR+= py-larry
SUBDIR+= py-latexenc
@@ -4015,6 +4016,7 @@ SUBDIR+= py-lempel-Ziv_Complexity
SUBDIR+= py-lenstools
SUBDIR+= py-lib
SUBDIR+= py-libclang-py3
+SUBDIR+= py-liberty_parser
SUBDIR+= py-libgit2-glib
SUBDIR+= py-liblarch
SUBDIR+= py-liblzma
@@ -5857,6 +5859,7 @@ SUBDIR+= vpnc
SUBDIR+= vpr
SUBDIR+= vsearch
SUBDIR+= vulkan-loader
+SUBDIR+= vv
SUBDIR+= w3c-httpd
SUBDIR+= wackamole
SUBDIR+= wadgadget
diff --git a/vv/DESCR b/vv/DESCR
new file mode 100644
index 0000000000..2d27a240e2
--- /dev/null
+++ b/vv/DESCR
@@ -0,0 +1,23 @@
+TODO: Adjust the following lines from README.md
+
+<div align="center">
+
+# vv - terminal image viewer
+
+![Screenshot](doc/img1.png)
+
+</div>
+
+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.
+
+## Image formats
+
+The following types of image files can be viewed in vv:
+
+- BC (Block Compression, also known as DXTC, S3TC), in DDS container,
+- OpenEXR,
+- HEIF (High Efficiency Image File Format),
+- AVIF (AV1 Image File Format),
+- JPEG,
+- JPEG XL,
+...
diff --git a/vv/Makefile b/vv/Makefile
new file mode 100644
index 0000000000..01e4ea7a2f
--- /dev/null
+++ b/vv/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD$
+
+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 "../../wip/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"
diff --git a/vv/PLIST b/vv/PLIST
new file mode 100644
index 0000000000..2ec3ee4b8e
--- /dev/null
+++ b/vv/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/vv
+share/doc/vv/README.md
diff --git a/vv/distinfo b/vv/distinfo
new file mode 100644
index 0000000000..78dbdb6e51
--- /dev/null
+++ b/vv/distinfo
@@ -0,0 +1,13 @@
+$NetBSD$
+
+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-CMakeLists.txt) = 7035f9ddbe59acef9b3f82057bbb77bf59740ae4
+SHA1 (patch-src_util_Alloca.h) = 33efddd07a29e60dd90acb3957d584a35bdac08c
diff --git a/vv/patches/patch-CMakeLists.txt b/vv/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..b8efa2a5b8
--- /dev/null
+++ b/vv/patches/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD$
+
+backtrace() is in libexecinfo on NetBSD.
+XXX: make NetBSD-specific.
+
+--- CMakeLists.txt.orig 2025-01-20 13:27:17.866095709 +0000
++++ CMakeLists.txt
+@@ -91,6 +91,7 @@ set(MCOREUTIL_SRC
+ add_library(mcoreutil ${MCOREUTIL_SRC})
+ target_link_libraries(mcoreutil PRIVATE
+ Tracy::TracyClient
++ execinfo
+ ${PNG_LINK_LIBRARIES}
+ )
+ target_include_directories(mcoreutil PRIVATE
diff --git a/vv/patches/patch-src_util_Alloca.h b/vv/patches/patch-src_util_Alloca.h
new file mode 100644
index 0000000000..b5e524642b
--- /dev/null
+++ b/vv/patches/patch-src_util_Alloca.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- 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>
Home |
Main Index |
Thread Index |
Old Index