graphics/realesrgan-ncnn-vulkan: add new port
ncnn implementation of Real-ESRGAN, a practical algorithm for general image restoration. https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan
This commit is contained in:
parent
fb6a9af3e8
commit
b48ee7fe13
@ -993,6 +993,7 @@
|
||||
SUBDIR += rawtherapee
|
||||
SUBDIR += rayshade
|
||||
SUBDIR += reactphysics3d
|
||||
SUBDIR += realesrgan-ncnn-vulkan
|
||||
SUBDIR += reallyslick
|
||||
SUBDIR += realsr-ncnn-vulkan
|
||||
SUBDIR += recastnavigation
|
||||
|
47
graphics/realesrgan-ncnn-vulkan/Makefile
Normal file
47
graphics/realesrgan-ncnn-vulkan/Makefile
Normal file
@ -0,0 +1,47 @@
|
||||
PORTNAME= realesrgan-ncnn-vulkan
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.2.0
|
||||
CATEGORIES= graphics
|
||||
# https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan/issues/29
|
||||
MASTER_SITES= https://dev.gentoo.org/~slashbeast/distfiles/${PORTNAME}/:models
|
||||
DISTFILES= Real-ESRGAN-v0.2.5.0-models.tar.xz:models
|
||||
|
||||
MAINTAINER= jbeich@FreeBSD.org
|
||||
COMMENT= Scale and denoise images using convolutional neural networks
|
||||
WWW= https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= glslangValidator:graphics/glslang \
|
||||
vulkan-headers>0:graphics/vulkan-headers
|
||||
LIB_DEPENDS= libwebp.so:graphics/webp \
|
||||
libvulkan.so:graphics/vulkan-loader
|
||||
|
||||
USES= cmake compiler:${OPENMP}c++11-lib
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= xinntao
|
||||
GH_PROJECT= Real-ESRGAN-ncnn-vulkan
|
||||
GH_TUPLE= KhronosGroup:glslang:11.1.0-44-g4afd6917:glslang/src/ncnn/glslang \
|
||||
Tencent:ncnn:20220420-5-g6125c9f4:ncnn/src/ncnn
|
||||
CMAKE_SOURCE_PATH= ${WRKSRC}/src
|
||||
CMAKE_ON= USE_SYSTEM_WEBP
|
||||
PLIST_FILES= bin/${PORTNAME}
|
||||
PORTDATA= models*
|
||||
|
||||
.if !exists(/usr/include/omp.h)
|
||||
# XXX ports/199603: LLVM openmp in base doesn't support armv6, armv7 yet
|
||||
OPENMP= gcc-
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/PATHSTR/s,models,${DATADIR}/&,' \
|
||||
${WRKSRC}/src/main.cpp
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \
|
||||
${STAGEDIR}${PREFIX}/bin
|
||||
(cd ${WRKDIR} && ${COPYTREE_SHARE} "${PORTDATA}" \
|
||||
${STAGEDIR}${DATADIR})
|
||||
|
||||
.include <bsd.port.mk>
|
9
graphics/realesrgan-ncnn-vulkan/distinfo
Normal file
9
graphics/realesrgan-ncnn-vulkan/distinfo
Normal file
@ -0,0 +1,9 @@
|
||||
TIMESTAMP = 1650789992
|
||||
SHA256 (Real-ESRGAN-v0.2.5.0-models.tar.xz) = 1c858d2d0a0500735852c0559bf29e868aae5dbd1aff7f5900688701bee1264a
|
||||
SIZE (Real-ESRGAN-v0.2.5.0-models.tar.xz) = 39195532
|
||||
SHA256 (xinntao-Real-ESRGAN-ncnn-vulkan-v0.2.0_GH0.tar.gz) = 346663b1924b2a1bfa655d656bfbba6b09f76ff75e4eee9d1fff4bfdef8b5712
|
||||
SIZE (xinntao-Real-ESRGAN-ncnn-vulkan-v0.2.0_GH0.tar.gz) = 138744
|
||||
SHA256 (KhronosGroup-glslang-11.1.0-44-g4afd6917_GH0.tar.gz) = 5ec414384bafcac14d096ca20205f811b61caf287ea1f7c30745735e7f483ae6
|
||||
SIZE (KhronosGroup-glslang-11.1.0-44-g4afd6917_GH0.tar.gz) = 3296291
|
||||
SHA256 (Tencent-ncnn-20220420-5-g6125c9f4_GH0.tar.gz) = 418e27336f405b35748ddc7e4588f4b449369e727dae119a45b332eca0fc6dcc
|
||||
SIZE (Tencent-ncnn-20220420-5-g6125c9f4_GH0.tar.gz) = 12160283
|
2
graphics/realesrgan-ncnn-vulkan/pkg-descr
Normal file
2
graphics/realesrgan-ncnn-vulkan/pkg-descr
Normal file
@ -0,0 +1,2 @@
|
||||
ncnn implementation of Real-ESRGAN, a practical algorithm for general
|
||||
image restoration.
|
Loading…
Reference in New Issue
Block a user