diff options
Diffstat (limited to 'vcpkg/ports/spaceland')
| -rw-r--r-- | vcpkg/ports/spaceland/fix-cmake4.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/spaceland/include_functional.patch | 24 | ||||
| -rw-r--r-- | vcpkg/ports/spaceland/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/spaceland/vcpkg.json | 13 |
4 files changed, 79 insertions, 0 deletions
diff --git a/vcpkg/ports/spaceland/fix-cmake4.patch b/vcpkg/ports/spaceland/fix-cmake4.patch new file mode 100644 index 0000000..404d04a --- /dev/null +++ b/vcpkg/ports/spaceland/fix-cmake4.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3fb062c7e4..5a93a8c4c7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -211,7 +211,7 @@ ADD_CUSTOM_TARGET(uninstall + # Compiler dependent definitions + + +-if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") ++if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "(Apple)?Clang") + # using Clang + MESSAGE("-- Current build compiler is Clang") + ADD_DEFINITIONS(-D_ISOC9X_SOURCE) diff --git a/vcpkg/ports/spaceland/include_functional.patch b/vcpkg/ports/spaceland/include_functional.patch new file mode 100644 index 0000000..66f69bf --- /dev/null +++ b/vcpkg/ports/spaceland/include_functional.patch @@ -0,0 +1,24 @@ +diff --git a/src/sl/connectivity.hpp b/src/sl/connectivity.hpp +index 1942c6c..1b66b9d 100644 +--- a/src/sl/connectivity.hpp ++++ b/src/sl/connectivity.hpp +@@ -26,6 +26,7 @@ + #include <sl/operators.hpp> + #include <sl/hash.hpp> + #include <cassert> ++#include <functional> + + namespace sl { + +diff --git a/src/sl/hash.hpp b/src/sl/hash.hpp +index 3093a13..5f5b144 100644 +--- a/src/sl/hash.hpp ++++ b/src/sl/hash.hpp +@@ -24,6 +24,7 @@ + #define SL_HASH_HPP + + #include <sl/utility.hpp> ++#include <functional> + + namespace sl { + diff --git a/vcpkg/ports/spaceland/portfile.cmake b/vcpkg/ports/spaceland/portfile.cmake new file mode 100644 index 0000000..f3f2069 --- /dev/null +++ b/vcpkg/ports/spaceland/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://www.crs4.it/vic/download/pkgs/sl-7.8.2-Source.tar.gz"
+ FILENAME "sl-7.8.2-Source.tar.gz"
+ SHA512 1391dac1474ddb47d0cf0eb7baeb7db68d6356c2116f732dd57b8a050739523282ded0643cc466640f2b22f25dd6bfced00ede4e041b7ff83754a99ae6725d7d
+)
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+ PATCHES
+ include_functional.patch
+ fix-cmake4.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ DISABLE_PARALLEL_CONFIGURE
+ OPTIONS
+ -DCMAKE_CXX_STANDARD=11 # 17 does not allow 'register'
+ -DSL_TEST=OFF
+ -DSL_INSTALL_SLFIND_MODULE=OFF
+)
+
+vcpkg_cmake_install()
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/spaceland/vcpkg.json b/vcpkg/ports/spaceland/vcpkg.json new file mode 100644 index 0000000..21bc11d --- /dev/null +++ b/vcpkg/ports/spaceland/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "spaceland", + "version": "7.8.2", + "port-version": 11, + "description": "Spaceland Lib (sl) is a suite for geometric computation, specifically adapted to OpenGL.", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + "zlib" + ] +} |