aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/psimd
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/psimd
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/psimd')
-rw-r--r--vcpkg/ports/psimd/add-cmake-config.patch22
-rw-r--r--vcpkg/ports/psimd/portfile.cmake18
-rw-r--r--vcpkg/ports/psimd/vcpkg.json13
3 files changed, 53 insertions, 0 deletions
diff --git a/vcpkg/ports/psimd/add-cmake-config.patch b/vcpkg/ports/psimd/add-cmake-config.patch
new file mode 100644
index 0000000..5ba4f6d
--- /dev/null
+++ b/vcpkg/ports/psimd/add-cmake-config.patch
@@ -0,0 +1,22 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bd69c62..f3c5f15 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -12,6 +12,16 @@ IF(${CMAKE_VERSION} VERSION_LESS "3.0")
+ ELSE()
+ ADD_LIBRARY(psimd INTERFACE)
+ ENDIF()
+-TARGET_INCLUDE_DIRECTORIES(psimd INTERFACE include)
++TARGET_INCLUDE_DIRECTORIES(psimd INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
+
+ INSTALL(FILES include/psimd.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
++
++
++INSTALL(TARGETS psimd
++ EXPORT unofficial-psimd-config
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
++INSTALL(EXPORT unofficial-psimd-config NAMESPACE unofficial::psimd::
++ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/unofficial-${PROJECT_NAME}) # share/psimd
diff --git a/vcpkg/ports/psimd/portfile.cmake b/vcpkg/ports/psimd/portfile.cmake
new file mode 100644
index 0000000..a639e1f
--- /dev/null
+++ b/vcpkg/ports/psimd/portfile.cmake
@@ -0,0 +1,18 @@
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Maratyszcza/psimd
+ REF 072586a71b55b7f8c584153d223e95687148a900
+ SHA512 a18faea093423dd9fe19ece8b228e011dccce0a2a22222f777ea19b023a13173966d4a8aea01147e8fc58de5d39cffcedeb2221a1572ae52bd5aba1295f86a94
+ PATCHES
+ add-cmake-config.patch
+)
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+vcpkg_cmake_install()
+
+vcpkg_copy_pdbs()
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
diff --git a/vcpkg/ports/psimd/vcpkg.json b/vcpkg/ports/psimd/vcpkg.json
new file mode 100644
index 0000000..44318ae
--- /dev/null
+++ b/vcpkg/ports/psimd/vcpkg.json
@@ -0,0 +1,13 @@
+{
+ "name": "psimd",
+ "version-date": "2021-02-21",
+ "port-version": 4,
+ "description": "Portable 128-bit SIMD intrinsics",
+ "homepage": "https://github.com/Maratyszcza/psimd",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}