715e2e3148
Changes: https://github.com/nihui/waifu2x-ncnn-vulkan/releases/tag/20200818 Reported by: GitHub (watch releases)
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= waifu2x-ncnn-vulkan
|
|
DISTVERSION= 20200818
|
|
CATEGORIES= graphics
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= Scale and denoise images using convolutional neural networks
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= glslangValidator:devel/glslang \
|
|
vulkan-headers>0:devel/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= nihui
|
|
GH_TUPLE= KhronosGroup:glslang:8.13.3743-39-gd39b8afc:glslang/src/ncnn/glslang \
|
|
Tencent:ncnn:20200727:ncnn/src/ncnn
|
|
CMAKE_SOURCE_PATH= ${WRKSRC}/src
|
|
CMAKE_ON= USE_SYSTEM_WEBP
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
PORTDATA= *
|
|
|
|
.if !exists(/usr/include/omp.h)
|
|
# XXX ports/199603: LLVM openmp in base doesn't support aarch64, 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 ${WRKSRC}/models && ${COPYTREE_SHARE} "${PORTDATA}" \
|
|
${STAGEDIR}${DATADIR})
|
|
|
|
.include <bsd.port.mk>
|