-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graphics/oidn: Update 1.1.0 -> 1.2.3
- Loading branch information
Showing
10 changed files
with
104 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,10 @@ | |
|
||
PORTNAME= oidn | ||
DISTVERSIONPREFIX= v | ||
DISTVERSION= 1.1.0 | ||
PORTREVISION= 3 | ||
DISTVERSION= 1.2.3 | ||
CATEGORIES= graphics | ||
MASTER_SITES= http://freebsd.org/:weights # bogus URL to make the framework happy, the fetch uses Git URL below | ||
DISTFILES= ${PORTNAME}-weights-${WEIGHTS_GIT_HASH}${EXTRACT_SUFX}:weights | ||
|
||
MAINTAINER= [email protected] | ||
COMMENT= Intel(R) Open Image Denoise library | ||
|
@@ -13,15 +14,20 @@ LICENSE= APACHE20 | |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt | ||
|
||
ONLY_FOR_ARCHS= amd64 | ||
ONLY_FOR_ARCHS_REASON= Intel(R) MKL-DNN supports x86 64 bit platforms only (oidn contains a custom version of mkl-dnn, see math/mkl-dnn) | ||
ONLY_FOR_ARCHS_REASON= Intel(R) MKL-DNN supports x86 64 bit platforms only (oidn contains a custom version of mkl-dnn, see math/mkl-dnn), and ISPC has a limited availability | ||
|
||
FETCH_DEPENDS= git:devel/git \ | ||
git-lfs:devel/git-lfs | ||
BUILD_DEPENDS= ispc>=1.14.1:devel/ispc | ||
LIB_DEPENDS= libtbb.so:devel/tbb | ||
|
||
USES= cmake:noninja compiler:c++11-lang python:build | ||
USE_GITHUB= yes | ||
GH_ACCOUNT= OpenImageDenoise | ||
GH_TUPLE= OpenImageDenoise:oidn-weights:f175104:w/weights \ | ||
OpenImageDenoise:mkl-dnn:096bda1:m/mkl-dnn | ||
GH_TUPLE= \ | ||
OpenImageDenoise:mkl-dnn:603620ba45185e7d91fe112b69287e7d86c64353:m/mkl-dnn | ||
# OpenImageDenoise:oidn-weights:08092e46a1961b13b70e48ad80fa19b452bd4c01:w/weights # replaced with git clone in post-fetch because it needs git-lfs | ||
|
||
USE_LDCONFIG= yes | ||
|
||
OPTIONS_DEFINE= DOCS | ||
|
@@ -30,4 +36,24 @@ CMAKE_ARGS+= -DTBB_ROOT:STRING=${LOCALBASE} -DTBB_INCLUDE_DIR:STRING=${LOCALBASE | |
|
||
DOCSDIR= share/doc/${GH_ACCOUNT} | ||
|
||
WEIGHTS_GIT_URL= https://github.com/OpenImageDenoise/oidn-weights.git | ||
WEIGHTS_GIT_HASH= 08092e46a1961b13b70e48ad80fa19b452bd4c01 | ||
|
||
pre-fetch: | ||
@if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-weights-${WEIGHTS_GIT_HASH}${EXTRACT_SUFX}" ]; then \ | ||
${MKDIR} ${DISTDIR}/${DIST_SUBDIR} && \ | ||
cd ${DISTDIR}/${DIST_SUBDIR} && \ | ||
${ECHO} "==> Fetching the oidn/weights subproject with large LFS files" && \ | ||
git config --global filter.lfs.smudge "git-lfs smudge -- %f" && \ | ||
git clone -q ${WEIGHTS_GIT_URL} ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} && \ | ||
(cd ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} && git reset -q --hard ${WEIGHTS_GIT_HASH} && ${RM} -r .git) && \ | ||
${FIND} ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \ | ||
${FIND} ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} -print0 | LC_ALL=C ${SORT} -z | \ | ||
${TAR} czf ${PORTNAME}-weights-${WEIGHTS_GIT_HASH}${EXTRACT_SUFX} --format=bsdtar --gid 0 --uid 0 --options gzip:!timestamp --no-recursion --null -T - && \ | ||
${RM} -r ${PORTNAME}-weights-${WEIGHTS_GIT_HASH}; \ | ||
fi | ||
|
||
post-extract: | ||
@cd ${WRKSRC} && ${RMDIR} weights && ${LN} -s ${WRKDIR}/${PORTNAME}-weights-${WEIGHTS_GIT_HASH} weights | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
TIMESTAMP = 1571521700 | ||
SHA256 (OpenImageDenoise-oidn-v1.1.0_GH0.tar.gz) = 78674407896d39a26206bd4f080a8a0c3f82f7e4ba4c293d421a8231be4cc977 | ||
SIZE (OpenImageDenoise-oidn-v1.1.0_GH0.tar.gz) = 3431532 | ||
SHA256 (OpenImageDenoise-oidn-weights-f175104_GH0.tar.gz) = 8a93afdc3d826d420196af8348e9b050c5882435e7745606544899b040bb1376 | ||
SIZE (OpenImageDenoise-oidn-weights-f175104_GH0.tar.gz) = 36949154 | ||
SHA256 (OpenImageDenoise-mkl-dnn-096bda1_GH0.tar.gz) = 08c6acdd412b3abc87f3b88734a813b1c93c942dbcee44935807cb432daa864b | ||
SIZE (OpenImageDenoise-mkl-dnn-096bda1_GH0.tar.gz) = 1498472 | ||
TIMESTAMP = 1599950146 | ||
SHA256 (oidn-weights-08092e46a1961b13b70e48ad80fa19b452bd4c01.tar.gz) = 51b6638f22b67581da7c2a877faa2f5d3062bb4e9b9214e5008cb25052748300 | ||
SIZE (oidn-weights-08092e46a1961b13b70e48ad80fa19b452bd4c01.tar.gz) = 37029289 | ||
SHA256 (OpenImageDenoise-oidn-v1.2.3_GH0.tar.gz) = 9ff7f7b5c442bd56be1ae89f8c45ae1972498b854f7175705ff520bb2c5cb25b | ||
SIZE (OpenImageDenoise-oidn-v1.2.3_GH0.tar.gz) = 3410694 | ||
SHA256 (OpenImageDenoise-mkl-dnn-603620ba45185e7d91fe112b69287e7d86c64353_GH0.tar.gz) = 582a5e07027e0bd2b078c11c667bcb9ab06cc955263b95e292c50088ba0ea6ad | ||
SIZE (OpenImageDenoise-mkl-dnn-603620ba45185e7d91fe112b69287e7d86c64353_GH0.tar.gz) = 5800370 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- cmake/oidn_install.cmake.orig 2020-09-11 17:36:51 UTC | ||
+++ cmake/oidn_install.cmake | ||
@@ -31,6 +31,7 @@ install(DIRECTORY include/OpenImageDenoise | ||
## Install documentation | ||
## ----------------------------------------------------------------------------- | ||
|
||
+if (FALSE) | ||
install( | ||
FILES | ||
${PROJECT_SOURCE_DIR}/README.md | ||
@@ -43,6 +44,7 @@ install( | ||
DESTINATION ${CMAKE_INSTALL_DOCDIR} | ||
COMPONENT lib | ||
) | ||
+endif() | ||
|
||
## ----------------------------------------------------------------------------- | ||
## Install dependencies: TBB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
graphics/oidn/files/patch-mkl-dnn_src_common_memory__debug.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- mkl-dnn/src/common/memory_debug.cpp.orig 2020-09-12 19:21:13 UTC | ||
+++ mkl-dnn/src/common/memory_debug.cpp | ||
@@ -21,7 +21,7 @@ | ||
#include <windows.h> | ||
#endif | ||
|
||
-#if defined __linux__ || defined __APPLE__ | ||
+#if defined __linux__ || defined __APPLE__ || defined __FreeBSD__ | ||
#include <unistd.h> | ||
#include <sys/mman.h> | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- mkl-dnn/src/common/utils.cpp.orig 2020-09-12 19:26:27 UTC | ||
+++ mkl-dnn/src/common/utils.cpp | ||
@@ -19,7 +19,7 @@ | ||
#include <windows.h> | ||
#endif | ||
|
||
-#if defined __linux__ || defined __APPLE__ | ||
+#if defined __linux__ || defined __APPLE__ || defined __FreeBSD__ | ||
#include <unistd.h> | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters