f3kdb: flash3kyuu_deband -> neo_f3kdb

Update f3kdb to the more recently-developed neo_f3kdb fork.
This commit is contained in:
Aidan Gauland 2023-11-21 08:39:50 +13:00
parent 17ded7214a
commit ec99bf94de
No known key found for this signature in database
GPG key ID: 16E68DD2D0E77C91
3 changed files with 43 additions and 14 deletions

View file

@ -36,7 +36,7 @@ in
pkgs.vapoursynthPlugins.dfttest pkgs.vapoursynthPlugins.dfttest
pkgs.vapoursynthPlugins.eedi2 pkgs.vapoursynthPlugins.eedi2
pkgs.vapoursynthPlugins.eedi3m pkgs.vapoursynthPlugins.eedi3m
# pkgs.vapoursynthPlugins.f3kdb pkgs.vapoursynthPlugins.f3kdb
pkgs.vapoursynthPlugins.ffms2 pkgs.vapoursynthPlugins.ffms2
pkgs.vapoursynthPlugins.fft3dfilter pkgs.vapoursynthPlugins.fft3dfilter
pkgs.vapoursynthPlugins.fillborders pkgs.vapoursynthPlugins.fillborders

View file

@ -1,26 +1,40 @@
{ lib, stdenv, fetchFromGitHub, wafHook, python3, vapoursynth }: { lib, stdenv, fetchFromGitHub, cmake, pkg-config, python3, vapoursynth, tbb }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "flash3kyuu_deband"; pname = "neo_f3kdb";
version = "unstable-2018-08-09"; version = "r9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "SAPikachu"; owner = "HomeOfAviSynthPlusEvolution";
repo = pname; repo = finalAttrs.pname;
rev = "c57e9d6a535ec9a85fb5415a405f099cbe69f535"; rev = finalAttrs.version;
sha256 = "1jkp6b29adjfwl94r8snvk4fv2vy0rgvswsyda5f4jb3lf9hds59"; sha256 = "sha256-MIvKjsemDeyv9qonuJbns0Dau8BjFQ1REppccs7s9JU=";
}; };
wafConfigureFlags = [ "--libdir=${placeholder "out"}/lib/vapoursynth" ]; patches = [
./no-git.patch
];
nativeBuildInputs = [ wafHook python3 ]; nativeBuildInputs = [ cmake pkg-config python3 ];
buildInputs = [ vapoursynth ]; buildInputs = [ vapoursynth tbb ];
cmakeFlags = [
"-DVERSION=${finalAttrs.version}"
];
installPhase = ''
runHook preInstall
install -D --target-directory="$out/lib/vapoursynth" *.so
runHook postInstall
'';
meta = with lib; { meta = with lib; {
description = "A deband library and filter for AviSynth/VapourSynth"; description = "A deband library and filter for AviSynth/VapourSynth";
homepage = "https://github.com/SAPikachu/flash3kyuu_deband"; homepage = "https://github.com/HomeOfAviSynthPlusEvolution/neo_f3kdb";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ tadeokondrak ]; maintainers = with maintainers; [ tadeokondrak ];
platforms = platforms.all; platforms = platforms.all;
}; };
} })

View file

@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f1ee4b3..2f10fb3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,10 +6,6 @@ add_library(neo-f3kdb SHARED main.cpp src/version.rc ${CODE} ${CODE_IMPL})
set_property(TARGET neo-f3kdb PROPERTY CXX_STANDARD 17)
option(ENABLE_PAR "Enable C++17 Parallel Execution" ON)
-find_package(Git REQUIRED)
-execute_process(COMMAND ${GIT_EXECUTABLE} describe --first-parent --tags --always OUTPUT_VARIABLE GIT_REPO_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
-string(REGEX REPLACE "(r[0-9]+).*" "\\1" VERSION ${GIT_REPO_VERSION})
-
configure_file (
"${PROJECT_SOURCE_DIR}/src/version.hpp.in"
"${PROJECT_SOURCE_DIR}/src/version.hpp"