[SFCGAL] Add new port (#43512)

Co-authored-by: jim wang <122244446+jimwang118@users.noreply.github.com>
Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
This commit is contained in:
Loïc Bartoletti 2025-04-07 20:53:44 +02:00 committed by GitHub
parent 68fb3c8f49
commit c2f3cd48f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,32 @@
vcpkg_from_gitlab(
GITLAB_URL https://gitlab.com
OUT_SOURCE_PATH SOURCE_PATH
REPO sfcgal/SFCGAL
REF "v${VERSION}"
SHA512 c22dcb67cd79e31361e02164f6054cdcf64b341fb95d63b5082bf71cf5fccb310304826c554c60a0c8f0bdf3369515de56d41309b835133076133a908e3cf768
HEAD_REF master
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SFCGAL_USE_STATIC_LIBS)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DSFCGAL_BUILD_TESTS=OFF
"-DSFCGAL_USE_STATIC_LIBS=${SFCGAL_USE_STATIC_LIBS}"
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH bin/sfcgal-config)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/bin")
endif()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

19
ports/sfcgal/vcpkg.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "sfcgal",
"version": "2.0.0",
"description": "sfcgal is a C++ wrapper library around CGAL with the aim of supporting ISO 191007:2013 and OGC Simple Features for 3D operations.",
"homepage": "https://gitlab.com/SFCGAL/SFCGAL",
"license": "LGPL-2.0-or-later",
"supports": "(x64 & (windows | osx | linux)) | (arm64 & osx)",
"dependencies": [
"cgal",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -8520,6 +8520,10 @@
"baseline": "0.2.0",
"port-version": 4
},
"sfcgal": {
"baseline": "2.0.0",
"port-version": 0
},
"sfgui": {
"baseline": "1.0.0",
"port-version": 0

9
versions/s-/sfcgal.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "ce647709f45d9cfaf4a6923cbe7836aceb8d4a90",
"version": "2.0.0",
"port-version": 0
}
]
}