From owner-svn-ports-all@freebsd.org Mon Oct 7 12:58:06 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2673012EACB; Mon, 7 Oct 2019 12:58:06 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46n0rt06g1z3yrQ; Mon, 7 Oct 2019 12:58:06 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D6D41EE84; Mon, 7 Oct 2019 12:58:05 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x97Cw5HM016410; Mon, 7 Oct 2019 12:58:05 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x97Cw4s9016405; Mon, 7 Oct 2019 12:58:04 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201910071258.x97Cw4s9016405@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Mon, 7 Oct 2019 12:58:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r513943 - in head/graphics: . waifu2x-ncnn-vulkan X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/graphics: . waifu2x-ncnn-vulkan X-SVN-Commit-Revision: 513943 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2019 12:58:06 -0000 Author: jbeich Date: Mon Oct 7 12:58:04 2019 New Revision: 513943 URL: https://svnweb.freebsd.org/changeset/ports/513943 Log: graphics/waifu2x-ncnn-vulkan: add new port ncnn implementation of waifu2x converter. Runs fast on Intel / AMD / Nvidia with Vulkan API. https://github.com/nihui/waifu2x-ncnn-vulkan Added: head/graphics/waifu2x-ncnn-vulkan/ head/graphics/waifu2x-ncnn-vulkan/Makefile (contents, props changed) head/graphics/waifu2x-ncnn-vulkan/distinfo (contents, props changed) head/graphics/waifu2x-ncnn-vulkan/pkg-descr (contents, props changed) Modified: head/graphics/Makefile (contents, props changed) Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Mon Oct 7 12:27:40 2019 (r513942) +++ head/graphics/Makefile Mon Oct 7 12:58:04 2019 (r513943) @@ -1061,6 +1061,7 @@ SUBDIR += vv SUBDIR += waffle SUBDIR += waifu2x-converter-cpp + SUBDIR += waifu2x-ncnn-vulkan SUBDIR += wayland SUBDIR += wayland-protocols SUBDIR += waylandpp Added: head/graphics/waifu2x-ncnn-vulkan/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/waifu2x-ncnn-vulkan/Makefile Mon Oct 7 12:58:04 2019 (r513943) @@ -0,0 +1,48 @@ +# $FreeBSD$ + +PORTNAME= waifu2x-ncnn-vulkan +DISTVERSION= 20190712-5 +DISTVERSIONSUFFIX= -g1c705b3 +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 \ + ${LOCALBASE}/include/vulkan/vulkan.h:devel/vulkan-headers \ + ${LOCALBASE}/lib/libvulkan.so:graphics/vulkan-loader \ + ${LOCALBASE}/lib/libncnn.a:science/ncnn + +USES= cmake compiler:${OPENMP}c++11-lib +USE_GITHUB= yes +GH_ACCOUNT= nihui +CMAKE_SOURCE_PATH= ${WRKSRC}/src +LDFLAGS+= -lpthread # XXX Convert ncnn to shared library +PLIST_FILES= bin/${PORTNAME} +PORTDATA= * + +.if !exists(/usr/include/omp.h) +# XXX ports/199603 + ports/210337 +OPENMP= gcc- +.endif + +pre-configure: + @if ${GREP} -q 'NCNN_VULKAN.*0' ${LOCALBASE}/include/ncnn/platform.h; then \ + ${ECHO_MSG} "${PKGNAME}: Needs ncnn built with VULKAN enabled."; \ + return 1; \ + fi + +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 Added: head/graphics/waifu2x-ncnn-vulkan/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/waifu2x-ncnn-vulkan/distinfo Mon Oct 7 12:58:04 2019 (r513943) @@ -0,0 +1,3 @@ +TIMESTAMP = 1568475940 +SHA256 (nihui-waifu2x-ncnn-vulkan-20190712-5-g1c705b3_GH0.tar.gz) = d16c65620a3a67e4729f5673aaa6ec4bcc7add681acd11ffde0cb459ebefcc83 +SIZE (nihui-waifu2x-ncnn-vulkan-20190712-5-g1c705b3_GH0.tar.gz) = 28917017 Added: head/graphics/waifu2x-ncnn-vulkan/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/waifu2x-ncnn-vulkan/pkg-descr Mon Oct 7 12:58:04 2019 (r513943) @@ -0,0 +1,4 @@ +ncnn implementation of waifu2x converter. Runs fast on Intel / AMD / +Nvidia with Vulkan API. + +WWW: https://github.com/nihui/waifu2x-ncnn-vulkan