diff options
| author | socuwn <32123551+socuwn@users.noreply.github.com> | 2020-11-09 23:50:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-09 14:50:53 -0800 |
| commit | 6b935b7cd3fe230fc0babc66c6b38652f131f7e3 (patch) | |
| tree | d18c0a4583d5d34733cbbdc4ebd03e88c422170c | |
| parent | 10c38371cb264932530b7e175b34712f48c15264 (diff) | |
| download | vcpkg-6b935b7cd3fe230fc0babc66c6b38652f131f7e3.tar.gz vcpkg-6b935b7cd3fe230fc0babc66c6b38652f131f7e3.zip | |
[opencascade] update debug paths in *Targets-debug.cmake (#14435)
* [opencascade] replace libd with lib and bind by bin in *Targets-debug.cmake
* updated to port-version 1
| -rw-r--r-- | ports/opencascade/CONTROL | 3 | ||||
| -rw-r--r-- | ports/opencascade/portfile.cmake | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/ports/opencascade/CONTROL b/ports/opencascade/CONTROL index 21c5148b0..a171581b6 100644 --- a/ports/opencascade/CONTROL +++ b/ports/opencascade/CONTROL @@ -1,5 +1,6 @@ Source: opencascade Version: 7.4.0 +Port-Version: 1 Build-Depends: freetype Description: Open CASCADE Technology (OCCT) is an open-source software development platform for 3D CAD, CAM, CAE. Supports: !(uwp|osx|linux|arm|static) @@ -10,4 +11,4 @@ Description: Enable optional usage of freeimage Feature: tbb Build-Depends: tbb -Description: Enable optional usage of tbb
\ No newline at end of file +Description: Enable optional usage of tbb diff --git a/ports/opencascade/portfile.cmake b/ports/opencascade/portfile.cmake index 126122c32..dd9531248 100644 --- a/ports/opencascade/portfile.cmake +++ b/ports/opencascade/portfile.cmake @@ -50,6 +50,23 @@ file(RENAME ${CURRENT_PACKAGES_DIR}/debug/libd ${CURRENT_PACKAGES_DIR}/debug/lib file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) +# fix paths in target files +list(APPEND TARGET_FILES + ${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEApplicationFrameworkTargets-debug.cmake + ${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADECompileDefinitionsAndFlags-debug.cmake + ${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEDataExchangeTargets-debug.cmake + ${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEFoundationClassesTargets-debug.cmake + ${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEModelingAlgorithmsTargets-debug.cmake + ${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEModelingDataTargets-debug.cmake + ${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEVisualizationTargets-debug.cmake +) +foreach(TARGET_FILE ${TARGET_FILES}) + file(READ ${TARGET_FILE} filedata) + string(REGEX REPLACE "libd" "lib" filedata "${filedata}") + string(REGEX REPLACE "bind" "bin" filedata "${filedata}") + file(WRITE ${TARGET_FILE} ${filedata}) +endforeach() + # the bin directory ends up with bat files that are noise, let's clean that up file(GLOB BATS ${CURRENT_PACKAGES_DIR}/bin/*.bat) file(REMOVE_RECURSE ${BATS}) |
