Skip to content

Commit

Permalink
Opencascade fix build on Linux (microsoft#25330)
Browse files Browse the repository at this point in the history
* Opencascade fix build on Linux

* Added fontconfig to deps

* Updated version database

* Updated license identifier

* revert back the license

* bump up the port version

* vcpk add all

* Update versions/o-/opencascade.json

Co-authored-by: Jack·Boos·Yu <[email protected]>
  • Loading branch information
adorostkar and JackBoosY authored Jun 22, 2022
1 parent 0bd48a1 commit b0ea874
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ports/opencascade/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ foreach(file_name IN LISTS files)
endforeach()

# Remove libd to lib, libd just has cmake files we dont want too
if( WIN32 )
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib")
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/libd" "${CURRENT_PACKAGES_DIR}/debug/lib")
endif()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
Expand Down
4 changes: 3 additions & 1 deletion ports/opencascade/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "opencascade",
"version": "7.6.2",
"port-version": 1,
"description": "Open CASCADE Technology (OCCT) is an open-source software development platform for 3D CAD, CAM, CAE.",
"homepage": "https://github.com/Open-Cascade-SAS/OCCT",
"license": "LGPL-2.1",
"supports": "!(uwp | osx | linux | arm)",
"supports": "!(uwp | osx | arm)",
"dependencies": [
"fontconfig",
"freetype",
{
"name": "vcpkg-cmake",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5110,7 +5110,7 @@
},
"opencascade": {
"baseline": "7.6.2",
"port-version": 0
"port-version": 1
},
"opencc": {
"baseline": "2020-04-26",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/opencascade.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "137097588b2328c3d7f66c4f0e46e6e4fe1559cf",
"version": "7.6.2",
"port-version": 1
},
{
"git-tree": "6dd7a80ecf7e8183ebfd1e25fc64351e47f9eed0",
"version": "7.6.2",
Expand Down

0 comments on commit b0ea874

Please sign in to comment.