aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sfcgal
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/sfcgal
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/sfcgal')
-rw-r--r--vcpkg/ports/sfcgal/portfile.cmake33
-rw-r--r--vcpkg/ports/sfcgal/vcpkg.json19
2 files changed, 52 insertions, 0 deletions
diff --git a/vcpkg/ports/sfcgal/portfile.cmake b/vcpkg/ports/sfcgal/portfile.cmake
new file mode 100644
index 0000000..bcb4722
--- /dev/null
+++ b/vcpkg/ports/sfcgal/portfile.cmake
@@ -0,0 +1,33 @@
+vcpkg_from_gitlab(
+ GITLAB_URL https://gitlab.com
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO sfcgal/SFCGAL
+ REF "v${VERSION}"
+ SHA512 8b629df31cef1b3b5538eb5a00b51be9553595ad52857030298dbb08bba2997d25a91f579f5a3a9168563f3833f18065fec5089f59cd8994abe99e4cfd421f25
+ HEAD_REF master
+ )
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SFCGAL_USE_STATIC_LIBS)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ DISABLE_PARALLEL_CONFIGURE
+ OPTIONS
+ -DSFCGAL_BUILD_TESTS=OFF
+ "-DSFCGAL_USE_STATIC_LIBS=${SFCGAL_USE_STATIC_LIBS}"
+ -DBUILD_TESTING=OFF
+ )
+
+vcpkg_cmake_install()
+vcpkg_fixup_pkgconfig()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/SFCGAL)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/sfcgal-config" "${CURRENT_PACKAGES_DIR}/debug/bin/sfcgal-config")
+
+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")
diff --git a/vcpkg/ports/sfcgal/vcpkg.json b/vcpkg/ports/sfcgal/vcpkg.json
new file mode 100644
index 0000000..0d1a49f
--- /dev/null
+++ b/vcpkg/ports/sfcgal/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "sfcgal",
+ "version": "2.2.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
+ }
+ ]
+}