aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorFabio Pellacini <fabio.pellacini@gmail.com>2020-01-17 07:56:33 +0100
committernicole mazzuca <mazzucan@outlook.com>2020-01-16 22:56:33 -0800
commitbf3e071e53bf46cba8857859f853dcc8898db817 (patch)
treef203a4d20dd95db48452f4c03e70f445628a6111 /ports
parent24a97b16e70400b874299f9d58f571f215090444 (diff)
downloadvcpkg-bf3e071e53bf46cba8857859f853dcc8898db817.tar.gz
vcpkg-bf3e071e53bf46cba8857859f853dcc8898db817.zip
[embree3] added cleanup command for static build (#9555)
* added cleanup command to embree3 port for static build * updated CONTROL file with version tag * check if file exists before cleanups * fix baseline Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Diffstat (limited to 'ports')
-rw-r--r--ports/embree3/CONTROL2
-rw-r--r--ports/embree3/portfile.cmake9
2 files changed, 10 insertions, 1 deletions
diff --git a/ports/embree3/CONTROL b/ports/embree3/CONTROL
index c3c0c0bd6..e3c014636 100644
--- a/ports/embree3/CONTROL
+++ b/ports/embree3/CONTROL
@@ -1,5 +1,5 @@
Source: embree3
-Version: 3.6.1
+Version: 3.6.1-1
Homepage: https://github.com/embree/embree
Description: High Performance Ray Tracing Kernels.
Build-Depends: tbb
diff --git a/ports/embree3/portfile.cmake b/ports/embree3/portfile.cmake
index 56ed32f0c..f274f0c7d 100644
--- a/ports/embree3/portfile.cmake
+++ b/ports/embree3/portfile.cmake
@@ -48,6 +48,15 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH share/embree3 TARGET_PATH share/embree)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+endif()
+if (EXISTS ${CURRENT_PACKAGES_DIR}/uninstall.command)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/uninstall.command)
+endif()
+if (EXISTS ${CURRENT_PACKAGES_DIR}/debug/uninstall.command)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/uninstall.command)
+endif()
file(RENAME ${CURRENT_PACKAGES_DIR}/share/doc ${CURRENT_PACKAGES_DIR}/share/embree/doc)