diff options
| -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}) |
