mirror of https://github.com/microsoft/vcpkg.git
[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:
parent
68fb3c8f49
commit
c2f3cd48f3
|
|
@ -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")
|
||||
|
||||
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "ce647709f45d9cfaf4a6923cbe7836aceb8d4a90",
|
||||
"version": "2.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue