mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
3fb41287be
https://github.com/Tencent/ncnn/commit/17c445480fee https://github.com/Tencent/ncnn/commit/eec5cf718015 CMake Warning at CMakeLists.txt:98 (message): The submodules were not downloaded! NCNN_VULKAN_ONLINE_SPIRV will be turned off.
32 lines
789 B
Makefile
32 lines
789 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= ncnn
|
|
DISTVERSION= 20200616
|
|
PORTREVISION= 1
|
|
CATEGORIES= misc # machine-learning
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= High-performance neural network inference framework
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
USES= cmake compiler:c11
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Tencent
|
|
|
|
OPTIONS_DEFINE= VULKAN
|
|
OPTIONS_DEFAULT= VULKAN
|
|
|
|
VULKAN_DESC= Vulkan compute support
|
|
VULKAN_BUILD_DEPENDS= glslang>0:devel/glslang \
|
|
${LOCALBASE}/include/vulkan/vulkan.h:devel/vulkan-headers \
|
|
${LOCALBASE}/lib/libvulkan.so:graphics/vulkan-loader
|
|
VULKAN_CMAKE_BOOL= NCNN_VULKAN NCNN_SYSTEM_GLSLANG
|
|
VULKAN_CMAKE_ON= -DGLSLANG_TARGET_DIR:PATH="${LOCALBASE}/lib/cmake"
|
|
|
|
post-patch-VULKAN-on:
|
|
@${REINPLACE_CMD} 's,/glslang,,' ${WRKSRC}/src/gpu.cpp
|
|
|
|
.include <bsd.port.mk>
|