[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
This commit is contained in:
socuwn 2020-11-09 23:50:53 +01:00 committed by GitHub
parent 10c38371cb
commit 6b935b7cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -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
Description: Enable optional usage of tbb

View File

@ -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})