freebsd-ports/graphics/vapoursynth-waifu2x-ncnn-vulkan/Makefile
Jan Beich 5c6a3bfc98 graphics/vapoursynth-waifu2x-ncnn-vulkan: unbreak after 51a9ba1877 via bundling
CMake Warning at /usr/local/lib/cmake/OSDependentTargets.cmake:2 (message):
  Using `OSDependentTargets.cmake` is deprecated: use `find_package(glslang)`
  to find glslang CMake targets.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:205 (include)

CMake Error at /usr/local/lib/cmake/OSDependentTargets.cmake:5 (include):
  include could not find requested file:

    /usr/local/lib/cmake/../../lib/glslang/glslang-targets.cmake
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:205 (include)

CMake Error at /usr/local/lib/cmake/OSDependentTargets.cmake:8 (add_library):
  add_library cannot create ALIAS target "OSDependent" because target
  "glslang::OSDependent" does not already exist.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:205 (include)

CMake Warning at /usr/local/lib/cmake/OGLCompilerTargets.cmake:2 (message):
  Using `OGLCompilerTargets.cmake` is deprecated: use `find_package(glslang)`
  to find glslang CMake targets.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:206 (include)

CMake Error at /usr/local/lib/cmake/OGLCompilerTargets.cmake:5 (include):
  include could not find requested file:

    /usr/local/lib/cmake/../../lib/glslang/glslang-targets.cmake
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:206 (include)

CMake Error at /usr/local/lib/cmake/OGLCompilerTargets.cmake:8 (add_library):
  add_library cannot create ALIAS target "OGLCompiler" because target
  "glslang::OGLCompiler" does not already exist.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:206 (include)

CMake Warning at /usr/local/lib/cmake/HLSLTargets.cmake:2 (message):
  Using `HLSLTargets.cmake` is deprecated: use `find_package(glslang)` to
  find glslang CMake targets.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:209 (include)

CMake Error at /usr/local/lib/cmake/HLSLTargets.cmake:5 (include):
  include could not find requested file:

    /usr/local/lib/cmake/../../lib/glslang/glslang-targets.cmake
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:209 (include)

CMake Error at /usr/local/lib/cmake/HLSLTargets.cmake:8 (add_library):
  add_library cannot create ALIAS target "HLSL" because target
  "glslang::HLSL" does not already exist.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:209 (include)

CMake Warning at /usr/local/lib/cmake/glslangTargets.cmake:2 (message):
  Using `glslangTargets.cmake` is deprecated: use `find_package(glslang)` to
  find glslang CMake targets.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:211 (include)

CMake Error at /usr/local/lib/cmake/glslangTargets.cmake:5 (include):
  include could not find requested file:

    /usr/local/lib/cmake/../../lib/glslang/glslang-targets.cmake
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:211 (include)

CMake Error at /usr/local/lib/cmake/glslangTargets.cmake:11 (add_library):
  add_library cannot create ALIAS target "glslang" because target
  "glslang::glslang" does not already exist.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:211 (include)

CMake Error at /usr/local/lib/cmake/glslangTargets.cmake:12 (add_library):
  add_library cannot create ALIAS target "MachineIndependent" because target
  "glslang::MachineIndependent" does not already exist.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:211 (include)

CMake Error at /usr/local/lib/cmake/glslangTargets.cmake:13 (add_library):
  add_library cannot create ALIAS target "GenericCodeGen" because target
  "glslang::GenericCodeGen" does not already exist.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:211 (include)

CMake Warning at /usr/local/lib/cmake/SPIRVTargets.cmake:2 (message):
  Using `SPIRVTargets.cmake` is deprecated: use `find_package(glslang)` to
  find glslang CMake targets.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:212 (include)

CMake Error at /usr/local/lib/cmake/SPIRVTargets.cmake:5 (include):
  include could not find requested file:

    /usr/local/lib/cmake/../../lib/glslang/glslang-targets.cmake
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:212 (include)

CMake Error at /usr/local/lib/cmake/SPIRVTargets.cmake:8 (add_library):
  add_library cannot create ALIAS target "SPIRV" because target
  "glslang::SPIRV" does not already exist.
Call Stack (most recent call first):
  deps/ncnn/CMakeLists.txt:212 (include)

CMake Warning at deps/ncnn/CMakeLists.txt:215 (message):
  glslang or SPIRV target not found! NCNN_SYSTEM_GLSLANG will be turned off.

CMake Error at deps/ncnn/CMakeLists.txt:223 (message):
  The submodules were not downloaded! Please update submodules with "git
  submodule update --init" and try again.
2022-10-13 21:18:16 +00:00

44 lines
1.3 KiB
Makefile

PORTNAME= vapoursynth-waifu2x-ncnn-vulkan
DISTVERSION= r5
PORTREVISION= 1
CATEGORIES= graphics
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Waifu2x (waifu2x-ncnn-vulkan) plugin for VapourSynth
WWW= https://github.com/Nlzy/vapoursynth-waifu2x-ncnn-vulkan
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= KhronosGroup:glslang:11.9.0-19-g86ff4bca:glslang/deps/ncnn/glslang \
Tencent:ncnn:20210525:ncnn/deps/ncnn
CMAKE_ARGS= -DVAPOURSYNTH_HEADER_DIR:PATH="${LOCALBASE}/include/vapoursynth"
DATADIR= ${PREFIX}/lib/vapoursynth
PORTDATA= libvsw2xnvk.so
PORTDOCS= *.md
OPTIONS_DEFINE= DOCS
post-patch:
# 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 <bsd.port.mk>