freebsd-ports/misc/ncnn/Makefile
Yuri Victorovich aa657250d6 misc/ncnn: Update 20210525 -> 20210720
Reported by:	portscout
2021-07-26 10:21:46 -07:00

28 lines
766 B
Makefile

PORTNAME= ncnn
DISTVERSION= 20210720
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:graphics/glslang \
${LOCALBASE}/include/vulkan/vulkan.h:graphics/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>