pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
multimedia/video2x: Add version 6.3.1
Module Name: pkgsrc-wip
Committed By: Frédéric Fauberteau <frederic%fauberteau.org@localhost>
Pushed By: frederic
Date: Sat Dec 28 22:53:40 2024 +0100
Changeset: dd04589a5c81b28bb40b310f17e67730fd5d49b3
Added Files:
video2x/COMMIT_MSG
video2x/DESCR
video2x/Makefile
video2x/PLIST
video2x/distinfo
video2x/patches/patch-CMakeLists.txt
Log Message:
multimedia/video2x: Add version 6.3.1
Packaged in wip by Frédéric Fauberteau
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=dd04589a5c81b28bb40b310f17e67730fd5d49b3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
video2x/COMMIT_MSG | 3 +
video2x/DESCR | 9 +++
video2x/Makefile | 60 ++++++++++++++++
video2x/PLIST | 133 +++++++++++++++++++++++++++++++++++
video2x/distinfo | 15 ++++
video2x/patches/patch-CMakeLists.txt | 30 ++++++++
6 files changed, 250 insertions(+)
diffs:
diff --git a/video2x/COMMIT_MSG b/video2x/COMMIT_MSG
new file mode 100644
index 0000000000..2696507fb0
--- /dev/null
+++ b/video2x/COMMIT_MSG
@@ -0,0 +1,3 @@
+multimedia/video2x: Add version 6.3.1
+
+Packaged in wip by Frédéric Fauberteau
diff --git a/video2x/DESCR b/video2x/DESCR
new file mode 100644
index 0000000000..5c13450faf
--- /dev/null
+++ b/video2x/DESCR
@@ -0,0 +1,9 @@
+A Machine learning-based lossless video super resolution framework
+
+Video2X came a long way from its original concepts to what it has become today.
+It started as a simple concept of "waifu2x can upscale images, and a video is
+just a sequence of images". Then, a PoC was made which can barely upscale a
+single video with waifu2x-caffe and with fixed settings. Now, Video2X has
+become a comprehensive and customizable video upscaling tool with a nice GUI
+and a community around it. This article documents in detail how Video2X's
+concept was born, and what happened during its development.
diff --git a/video2x/Makefile b/video2x/Makefile
new file mode 100644
index 0000000000..f613a48c28
--- /dev/null
+++ b/video2x/Makefile
@@ -0,0 +1,60 @@
+# $NetBSD$
+
+GITHUB_PROJECT= video2x
+GITHUB_TAG= 6.3.1
+DISTNAME= ${GITHUB_PROJECT}-${GITHUB_TAG}
+CATEGORIES= multimedia
+MASTER_SITES= ${MASTER_SITE_GITHUB:=k4yt3x/}
+DIST_SUBDIR= ${GITHUB_PROJECT}
+
+REALESRGAN_TAG= cd68df6f98f036fcc9e7d63597ea6faa427c2d2d
+RIFE_TAG= f2edda49a5fd817a7137509e54e70d2e30d9b684
+REALCUGAN_TAG= 52f598265a973fc8b17eb5e13cddc0e71c0a79dc
+
+DISTFILES= ${DEFAULT_DISTFILES}
+DISTFILES+= librealesrgan-ncnn-vulkan-${REALESRGAN_TAG}.tar.gz
+DISTFILES+= librealcugan-ncnn-vulkan-${REALCUGAN_TAG}.tar.gz
+DISTFILES+= librife-ncnn-vulkan-${RIFE_TAG}.tar.gz
+
+SITES.librealesrgan-ncnn-vulkan-${REALESRGAN_TAG}.tar.gz= \
+ -https://github.com/k4yt3x/librealesrgan-ncnn-vulkan/archive/${REALESRGAN_TAG}.tar.gz
+SITES.librealcugan-ncnn-vulkan-${REALCUGAN_TAG}.tar.gz= \
+ -https://github.com/k4yt3x/librealcugan-ncnn-vulkan/archive/${REALCUGAN_TAG}.tar.gz
+SITES.librife-ncnn-vulkan-${RIFE_TAG}.tar.gz= \
+ -https://github.com/k4yt3x/librife-ncnn-vulkan/archive/${RIFE_TAG}.tar.gz
+
+MAINTAINER= triaxx%NetBSD.org@localhost
+HOMEPAGE= https://github.com/k4yt3x/video2x/
+COMMENT= Machine learning-based lossless video super resolution framework
+LICENSE= gnu-gpl-v3
+
+USE_TOOLS+= gmake pkg-config
+USE_LANGUAGES= c c++
+LDFLAGS+= -Wl,--allow-shlib-undefined
+
+CMAKE_CONFIGURE_ARGS+= -DCMAKE_CXX_COMPILER_AR="/usr/bin/ar"
+CMAKE_MODULE_PATH_OVERRIDE+= third_party/librealesrgan_ncnn_vulkan/src/CMakeLists.txt
+CMAKE_MODULE_PATH_OVERRIDE+= third_party/librife_ncnn_vulkan/src/CMakeLists.txt
+
+post-extract:
+ ${MV} ${WRKDIR}/librealesrgan-ncnn-vulkan-${REALESRGAN_TAG}/src \
+ ${WRKSRC}/third_party/librealesrgan_ncnn_vulkan
+ ${MV} ${WRKDIR}/librealcugan-ncnn-vulkan-${REALCUGAN_TAG}/src \
+ ${WRKSRC}/third_party/librealcugan_ncnn_vulkan
+ ${MV} ${WRKDIR}/librife-ncnn-vulkan-${RIFE_TAG}/models \
+ ${WRKSRC}/third_party/librife_ncnn_vulkan
+ ${MV} ${WRKDIR}/librife-ncnn-vulkan-${RIFE_TAG}/src \
+ ${WRKSRC}/third_party/librife_ncnn_vulkan
+
+.include "../../devel/cmake/build.mk"
+
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../devel/spdlog/buildlink3.mk"
+.include "../../graphics/libwebp/buildlink3.mk"
+.include "../../graphics/opencv/buildlink3.mk"
+.include "../../multimedia/ffmpeg7/buildlink3.mk"
+.include "../../wip/ncnn/buildlink3.mk"
+BUILDLINK_FILES.glslang+= bin/glslang bin/spirv-remap
+.include "../../wip/glslang/buildlink3.mk"
+.include "../../wip/vulkan-loader/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/video2x/PLIST b/video2x/PLIST
new file mode 100644
index 0000000000..e272f97de1
--- /dev/null
+++ b/video2x/PLIST
@@ -0,0 +1,133 @@
+@comment $NetBSD$
+bin/video2x
+include/libvideo2x/avutils.h
+include/libvideo2x/conversions.h
+include/libvideo2x/decoder.h
+include/libvideo2x/encoder.h
+include/libvideo2x/filter_libplacebo.h
+include/libvideo2x/filter_realcugan.h
+include/libvideo2x/filter_realesrgan.h
+include/libvideo2x/fsutils.h
+include/libvideo2x/interpolator_rife.h
+include/libvideo2x/libplacebo.h
+include/libvideo2x/libvideo2x.h
+include/libvideo2x/libvideo2x_export.h
+include/libvideo2x/logger_manager.h
+include/libvideo2x/processor.h
+include/libvideo2x/processor_factory.h
+include/libvideo2x/version.h
+lib/librealcugan-ncnn-vulkan.so
+lib/librealesrgan-ncnn-vulkan.so
+lib/librife-ncnn-vulkan.so
+lib/libvideo2x.so
+share/video2x/models/libplacebo/anime4k-v4-a+a.glsl
+share/video2x/models/libplacebo/anime4k-v4-a.glsl
+share/video2x/models/libplacebo/anime4k-v4-b+b.glsl
+share/video2x/models/libplacebo/anime4k-v4-b.glsl
+share/video2x/models/libplacebo/anime4k-v4-c+a.glsl
+share/video2x/models/libplacebo/anime4k-v4-c.glsl
+share/video2x/models/libplacebo/anime4k-v4.1-gan.glsl
+share/video2x/models/realcugan/models-nose/up2x-no-denoise.bin
+share/video2x/models/realcugan/models-nose/up2x-no-denoise.param
+share/video2x/models/realcugan/models-pro/up2x-conservative.bin
+share/video2x/models/realcugan/models-pro/up2x-conservative.param
+share/video2x/models/realcugan/models-pro/up2x-denoise3x.bin
+share/video2x/models/realcugan/models-pro/up2x-denoise3x.param
+share/video2x/models/realcugan/models-pro/up2x-no-denoise.bin
+share/video2x/models/realcugan/models-pro/up2x-no-denoise.param
+share/video2x/models/realcugan/models-pro/up3x-conservative.bin
+share/video2x/models/realcugan/models-pro/up3x-conservative.param
+share/video2x/models/realcugan/models-pro/up3x-denoise3x.bin
+share/video2x/models/realcugan/models-pro/up3x-denoise3x.param
+share/video2x/models/realcugan/models-pro/up3x-no-denoise.bin
+share/video2x/models/realcugan/models-pro/up3x-no-denoise.param
+share/video2x/models/realcugan/models-se/up2x-conservative.bin
+share/video2x/models/realcugan/models-se/up2x-conservative.param
+share/video2x/models/realcugan/models-se/up2x-denoise1x.bin
+share/video2x/models/realcugan/models-se/up2x-denoise1x.param
+share/video2x/models/realcugan/models-se/up2x-denoise2x.bin
+share/video2x/models/realcugan/models-se/up2x-denoise2x.param
+share/video2x/models/realcugan/models-se/up2x-denoise3x.bin
+share/video2x/models/realcugan/models-se/up2x-denoise3x.param
+share/video2x/models/realcugan/models-se/up2x-no-denoise.bin
+share/video2x/models/realcugan/models-se/up2x-no-denoise.param
+share/video2x/models/realcugan/models-se/up3x-conservative.bin
+share/video2x/models/realcugan/models-se/up3x-conservative.param
+share/video2x/models/realcugan/models-se/up3x-denoise3x.bin
+share/video2x/models/realcugan/models-se/up3x-denoise3x.param
+share/video2x/models/realcugan/models-se/up3x-no-denoise.bin
+share/video2x/models/realcugan/models-se/up3x-no-denoise.param
+share/video2x/models/realcugan/models-se/up4x-conservative.bin
+share/video2x/models/realcugan/models-se/up4x-conservative.param
+share/video2x/models/realcugan/models-se/up4x-denoise3x.bin
+share/video2x/models/realcugan/models-se/up4x-denoise3x.param
+share/video2x/models/realcugan/models-se/up4x-no-denoise.bin
+share/video2x/models/realcugan/models-se/up4x-no-denoise.param
+share/video2x/models/realesrgan/realesr-animevideov3-x2.bin
+share/video2x/models/realesrgan/realesr-animevideov3-x2.param
+share/video2x/models/realesrgan/realesr-animevideov3-x3.bin
+share/video2x/models/realesrgan/realesr-animevideov3-x3.param
+share/video2x/models/realesrgan/realesr-animevideov3-x4.bin
+share/video2x/models/realesrgan/realesr-animevideov3-x4.param
+share/video2x/models/realesrgan/realesrgan-plus-anime-x4.bin
+share/video2x/models/realesrgan/realesrgan-plus-anime-x4.param
+share/video2x/models/realesrgan/realesrgan-plus-x4.bin
+share/video2x/models/realesrgan/realesrgan-plus-x4.param
+share/video2x/models/rife/rife-HD/contextnet.bin
+share/video2x/models/rife/rife-HD/contextnet.param
+share/video2x/models/rife/rife-HD/flownet.bin
+share/video2x/models/rife/rife-HD/flownet.param
+share/video2x/models/rife/rife-HD/fusionnet.bin
+share/video2x/models/rife/rife-HD/fusionnet.param
+share/video2x/models/rife/rife-UHD/contextnet.bin
+share/video2x/models/rife/rife-UHD/contextnet.param
+share/video2x/models/rife/rife-UHD/flownet.bin
+share/video2x/models/rife/rife-UHD/flownet.param
+share/video2x/models/rife/rife-UHD/fusionnet.bin
+share/video2x/models/rife/rife-UHD/fusionnet.param
+share/video2x/models/rife/rife-anime/contextnet.bin
+share/video2x/models/rife/rife-anime/contextnet.param
+share/video2x/models/rife/rife-anime/flownet.bin
+share/video2x/models/rife/rife-anime/flownet.param
+share/video2x/models/rife/rife-anime/fusionnet.bin
+share/video2x/models/rife/rife-anime/fusionnet.param
+share/video2x/models/rife/rife-v2.3/contextnet.bin
+share/video2x/models/rife/rife-v2.3/contextnet.param
+share/video2x/models/rife/rife-v2.3/flownet.bin
+share/video2x/models/rife/rife-v2.3/flownet.param
+share/video2x/models/rife/rife-v2.3/fusionnet.bin
+share/video2x/models/rife/rife-v2.3/fusionnet.param
+share/video2x/models/rife/rife-v2.4/contextnet.bin
+share/video2x/models/rife/rife-v2.4/contextnet.param
+share/video2x/models/rife/rife-v2.4/flownet.bin
+share/video2x/models/rife/rife-v2.4/flownet.param
+share/video2x/models/rife/rife-v2.4/fusionnet.bin
+share/video2x/models/rife/rife-v2.4/fusionnet.param
+share/video2x/models/rife/rife-v2/contextnet.bin
+share/video2x/models/rife/rife-v2/contextnet.param
+share/video2x/models/rife/rife-v2/flownet.bin
+share/video2x/models/rife/rife-v2/flownet.param
+share/video2x/models/rife/rife-v2/fusionnet.bin
+share/video2x/models/rife/rife-v2/fusionnet.param
+share/video2x/models/rife/rife-v3.0/contextnet.bin
+share/video2x/models/rife/rife-v3.0/contextnet.param
+share/video2x/models/rife/rife-v3.0/flownet.bin
+share/video2x/models/rife/rife-v3.0/flownet.param
+share/video2x/models/rife/rife-v3.0/fusionnet.bin
+share/video2x/models/rife/rife-v3.0/fusionnet.param
+share/video2x/models/rife/rife-v3.1/contextnet.bin
+share/video2x/models/rife/rife-v3.1/contextnet.param
+share/video2x/models/rife/rife-v3.1/flownet.bin
+share/video2x/models/rife/rife-v3.1/flownet.param
+share/video2x/models/rife/rife-v3.1/fusionnet.bin
+share/video2x/models/rife/rife-v3.1/fusionnet.param
+share/video2x/models/rife/rife-v4.6/flownet.bin
+share/video2x/models/rife/rife-v4.6/flownet.param
+share/video2x/models/rife/rife-v4/flownet.bin
+share/video2x/models/rife/rife-v4/flownet.param
+share/video2x/models/rife/rife/contextnet.bin
+share/video2x/models/rife/rife/contextnet.param
+share/video2x/models/rife/rife/flownet.bin
+share/video2x/models/rife/rife/flownet.param
+share/video2x/models/rife/rife/fusionnet.bin
+share/video2x/models/rife/rife/fusionnet.param
diff --git a/video2x/distinfo b/video2x/distinfo
new file mode 100644
index 0000000000..08289e79db
--- /dev/null
+++ b/video2x/distinfo
@@ -0,0 +1,15 @@
+$NetBSD$
+
+BLAKE2s (video2x/librealcugan-ncnn-vulkan-52f598265a973fc8b17eb5e13cddc0e71c0a79dc.tar.gz) = 7de4ea1c2abf3ea3b93741c7dff03073dcbfa4993020119b26b795b6554e757e
+SHA512 (video2x/librealcugan-ncnn-vulkan-52f598265a973fc8b17eb5e13cddc0e71c0a79dc.tar.gz) = 2f8e456f50c301a25892f773c53f94093f180e6f32f1487ae200c98d8461116b1372b052fe289704742c9eed9a7c52e50a9423e06b50daefc498e75dc3591a1c
+Size (video2x/librealcugan-ncnn-vulkan-52f598265a973fc8b17eb5e13cddc0e71c0a79dc.tar.gz) = 43800573 bytes
+BLAKE2s (video2x/librealesrgan-ncnn-vulkan-cd68df6f98f036fcc9e7d63597ea6faa427c2d2d.tar.gz) = 23e1c0ec7330202b7170907cebe2dcad9bdad4c4cb4635508a324359b70e690a
+SHA512 (video2x/librealesrgan-ncnn-vulkan-cd68df6f98f036fcc9e7d63597ea6faa427c2d2d.tar.gz) = 8de2688c9b410911e253269f0456991334335e217ffcdf925dcfef563ab376a1d92179ddf82b5e8334f30bf51b16e0d0cf5d7c8b8af5e4e687e83a19f2bd7b50
+Size (video2x/librealesrgan-ncnn-vulkan-cd68df6f98f036fcc9e7d63597ea6faa427c2d2d.tar.gz) = 108374 bytes
+BLAKE2s (video2x/librife-ncnn-vulkan-f2edda49a5fd817a7137509e54e70d2e30d9b684.tar.gz) = e0948c180286c2e36bf88ee54b6e7c0625fe18a82aeff134acf752146d69adc6
+SHA512 (video2x/librife-ncnn-vulkan-f2edda49a5fd817a7137509e54e70d2e30d9b684.tar.gz) = 73933e67757bb92ab7ee6f56203ee4d47f5dd3437505fb9b83ef82221e01605711f7a47765446e668787ef234c259cd0574bb8f9f03354c2a1be38d08b9d8d5b
+Size (video2x/librife-ncnn-vulkan-f2edda49a5fd817a7137509e54e70d2e30d9b684.tar.gz) = 428382218 bytes
+BLAKE2s (video2x/video2x-6.3.1.tar.gz) = f06aea047c16357918ea4570708d8678ec8eea32f0c5502e96da25de18d580f7
+SHA512 (video2x/video2x-6.3.1.tar.gz) = 427161f0c768276f0b6e7d685b78c83e1711e50337f32da628b9980d468a5a5a8b01b630e52e38b8895dac160061138e7d4d65f7600fcba47e8593372fc916b9
+Size (video2x/video2x-6.3.1.tar.gz) = 515762222 bytes
+SHA1 (patch-CMakeLists.txt) = 78b642998a82c2a8f191dd00db60bee817776dc0
diff --git a/video2x/patches/patch-CMakeLists.txt b/video2x/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..e319466283
--- /dev/null
+++ b/video2x/patches/patch-CMakeLists.txt
@@ -0,0 +1,30 @@
+$NetBSD$
+
+Avoiding to generate CMake RPATH_CHANGE target for third party librarires.
+
+--- CMakeLists.txt.orig 2024-12-21 00:00:00.000000000 +0000
++++ CMakeLists.txt
+@@ -256,6 +256,7 @@ ExternalProject_Add(
+ -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/realesrgan_install
+ -DCMAKE_POSITION_INDEPENDENT_CODE=ON
+ -DUSE_SYSTEM_NCNN=${USE_SYSTEM_NCNN}
++ -DCMAKE_SKIP_RPATH:BOOL=TRUE
+ BUILD_ALWAYS ON
+ INSTALL_COMMAND ${CMAKE_COMMAND} --build . --target install --config ${CMAKE_BUILD_TYPE}
+ )
+@@ -269,6 +270,7 @@ ExternalProject_Add(
+ -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/realcugan_install
+ -DCMAKE_POSITION_INDEPENDENT_CODE=ON
+ -DUSE_SYSTEM_NCNN=${USE_SYSTEM_NCNN}
++ -DCMAKE_SKIP_RPATH:BOOL=TRUE
+ BUILD_ALWAYS ON
+ INSTALL_COMMAND ${CMAKE_COMMAND} --build . --target install --config ${CMAKE_BUILD_TYPE}
+ )
+@@ -282,6 +284,7 @@ ExternalProject_Add(
+ -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/rife_install
+ -DCMAKE_POSITION_INDEPENDENT_CODE=ON
+ -DUSE_SYSTEM_NCNN=${USE_SYSTEM_NCNN}
++ -DCMAKE_SKIP_RPATH:BOOL=TRUE
+ BUILD_ALWAYS ON
+ INSTALL_COMMAND ${CMAKE_COMMAND} --build . --target install --config ${CMAKE_BUILD_TYPE}
+ )
Home |
Main Index |
Thread Index |
Old Index