From owner-dev-commits-ports-all@freebsd.org Tue Aug 10 14:40:02 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E63A3669B64; Tue, 10 Aug 2021 14:40:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GkbFt5whWz4h3d; Tue, 10 Aug 2021 14:40:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AFECF1D3D3; Tue, 10 Aug 2021 14:40:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 17AEe2cm073449; Tue, 10 Aug 2021 14:40:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17AEe2IS073446; Tue, 10 Aug 2021 14:40:02 GMT (envelope-from git) Date: Tue, 10 Aug 2021 14:40:02 GMT Message-Id: <202108101440.17AEe2IS073446@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 650ba2880a49 - main - graphics/vapoursynth-waifu2x-ncnn-vulkan: add new port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 650ba2880a49a4be25b07dff4f744f2afb44e8ab Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2021 14:40:03 -0000 The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=650ba2880a49a4be25b07dff4f744f2afb44e8ab commit 650ba2880a49a4be25b07dff4f744f2afb44e8ab Author: Jan Beich AuthorDate: 2021-06-10 13:32:12 +0000 Commit: Jan Beich CommitDate: 2021-08-10 14:39:31 +0000 graphics/vapoursynth-waifu2x-ncnn-vulkan: add new port Waifu2x filter for VapourSynth, based on waifu2x-ncnn-vulkan. https://github.com/Nlzy/vapoursynth-waifu2x-ncnn-vulkan --- graphics/Makefile | 1 + graphics/vapoursynth-waifu2x-ncnn-vulkan/Makefile | 46 ++++++++++++++++++++++ graphics/vapoursynth-waifu2x-ncnn-vulkan/distinfo | 5 +++ graphics/vapoursynth-waifu2x-ncnn-vulkan/pkg-descr | 3 ++ 4 files changed, 55 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 41f003235753..67523045893d 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1076,6 +1076,7 @@ SUBDIR += urho3d SUBDIR += urt SUBDIR += vapoursynth-fmtconv + SUBDIR += vapoursynth-waifu2x-ncnn-vulkan SUBDIR += vapoursynth-waifu2x-w2xc SUBDIR += variety SUBDIR += vcg diff --git a/graphics/vapoursynth-waifu2x-ncnn-vulkan/Makefile b/graphics/vapoursynth-waifu2x-ncnn-vulkan/Makefile new file mode 100644 index 000000000000..539c1170f5a6 --- /dev/null +++ b/graphics/vapoursynth-waifu2x-ncnn-vulkan/Makefile @@ -0,0 +1,46 @@ +PORTNAME= vapoursynth-waifu2x-ncnn-vulkan +DISTVERSION= r4 +CATEGORIES= graphics +PKGNAMEPREFIX= vapoursynth- + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Waifu2x (waifu2x-ncnn-vulkan) plugin for VapourSynth + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= glslangValidator:graphics/glslang \ + vulkan-headers>0:graphics/vulkan-headers \ + ${LOCALBASE}/include/vapoursynth/VSHelper.h:multimedia/vapoursynth +LIB_DEPENDS= libvulkan.so:graphics/vulkan-loader +RUN_DEPENDS= waifu2x-ncnn-vulkan>0:graphics/waifu2x-ncnn-vulkan + +USES= cmake compiler:c++11-lib +USE_GITHUB= yes +GH_ACCOUNT= Nlzy +GH_TUPLE= Tencent:ncnn:20210525:ncnn/deps/ncnn +CMAKE_ON= NCNN_SYSTEM_GLSLANG +CMAKE_ARGS= -DGLSLANG_TARGET_DIR:PATH="${LOCALBASE}/lib/cmake" \ + -DVAPOURSYNTH_HEADER_DIR:PATH="${LOCALBASE}/include/vapoursynth" +DATADIR= ${PREFIX}/lib/vapoursynth +PORTDATA= libvsw2xnvk.so +PORTDOCS= *.md + +OPTIONS_DEFINE= DOCS + +post-patch: +# Drop submodule prefix for NCNN_SYSTEM_GLSLANG + @${REINPLACE_CMD} 's,/glslang,,' ${WRKSRC_ncnn}/src/gpu.cpp +# Models from CLI package are same + @${REINPLACE_CMD} -e '/pluginFilePath{/d' \ + -e '/pluginDir/s, =[^;]*,{"${LOCALBASE}/share/waifu2x-ncnn-vulkan"},' \ + ${WRKSRC}/src/vsw2xnvk.cpp + +do-install: + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_LIB} ${PORTDATA:M*.so:S,^,${BUILD_WRKSRC}/,} \ + ${STAGEDIR}${DATADIR} + (cd ${WRKSRC} && ${COPYTREE_SHARE} \ + "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) + +.include diff --git a/graphics/vapoursynth-waifu2x-ncnn-vulkan/distinfo b/graphics/vapoursynth-waifu2x-ncnn-vulkan/distinfo new file mode 100644 index 000000000000..3f093870e06b --- /dev/null +++ b/graphics/vapoursynth-waifu2x-ncnn-vulkan/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1623331932 +SHA256 (Nlzy-vapoursynth-waifu2x-ncnn-vulkan-r4_GH0.tar.gz) = 08bd0f5ed810a17d4c53e0c9b4886c288bb95c132598f12cc699af5a04920c62 +SIZE (Nlzy-vapoursynth-waifu2x-ncnn-vulkan-r4_GH0.tar.gz) = 9711 +SHA256 (Tencent-ncnn-20210525_GH0.tar.gz) = a385eb5505f09e59ae486fa89584e5a15d4c45e7463927bbdddf9060d81b9a18 +SIZE (Tencent-ncnn-20210525_GH0.tar.gz) = 11578821 diff --git a/graphics/vapoursynth-waifu2x-ncnn-vulkan/pkg-descr b/graphics/vapoursynth-waifu2x-ncnn-vulkan/pkg-descr new file mode 100644 index 000000000000..f0ad646ca8fa --- /dev/null +++ b/graphics/vapoursynth-waifu2x-ncnn-vulkan/pkg-descr @@ -0,0 +1,3 @@ +Waifu2x filter for VapourSynth, based on waifu2x-ncnn-vulkan. + +WWW: https://github.com/Nlzy/vapoursynth-waifu2x-ncnn-vulkan