Skip to content

Commit

Permalink
[opencascade] update debug paths in *Targets-debug.cmake (#14435)
Browse files Browse the repository at this point in the history
* [opencascade] replace libd with lib and bind by bin in *Targets-debug.cmake

* updated to port-version 1
  • Loading branch information
socuwn authored Nov 9, 2020
1 parent 10c3837 commit 6b935b7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ports/opencascade/CONTROL
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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
17 changes: 17 additions & 0 deletions ports/opencascade/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 6b935b7

Please sign in to comment.