aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ode
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/ode
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/ode')
-rw-r--r--vcpkg/ports/ode/arm64-msvc.diff22
-rw-r--r--vcpkg/ports/ode/portfile.cmake38
-rw-r--r--vcpkg/ports/ode/vcpkg.json18
3 files changed, 78 insertions, 0 deletions
diff --git a/vcpkg/ports/ode/arm64-msvc.diff b/vcpkg/ports/ode/arm64-msvc.diff
new file mode 100644
index 0000000..d742a62
--- /dev/null
+++ b/vcpkg/ports/ode/arm64-msvc.diff
@@ -0,0 +1,22 @@
+diff --git a/include/ode/odeconfig.h b/include/ode/odeconfig.h
+index 5ac58e7..21481b3 100644
+--- a/include/ode/odeconfig.h
++++ b/include/ode/odeconfig.h
+@@ -142,10 +142,17 @@ typedef unsigned long duint64;
+ typedef signed char dint8;
+ typedef unsigned char duint8;
+
++# if defined(_M_ARM64)
++ typedef dint64 dintptr;
++ typedef duint64 duintptr;
++ typedef dint64 ddiffint;
++ typedef duint64 dsizeint;
++# else
+ typedef dint32 dintptr;
+ typedef duint32 duintptr;
+ typedef dint32 ddiffint;
+ typedef duint32 dsizeint;
++# endif
+
+ #endif
+
diff --git a/vcpkg/ports/ode/portfile.cmake b/vcpkg/ports/ode/portfile.cmake
new file mode 100644
index 0000000..7fd7b26
--- /dev/null
+++ b/vcpkg/ports/ode/portfile.cmake
@@ -0,0 +1,38 @@
+vcpkg_from_bitbucket(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO odedevs/ode
+ REF ${VERSION}
+ SHA512 c9160d9b7419c74c700d9efe5cdb82e70cab867a10f03fe8b99c32ed946ee4ecb50e055a6c11495dd9ed4754110ef0d071fbcfbf4cc6b67841607ed90b1ce35b
+ HEAD_REF master
+ PATCHES
+ arm64-msvc.diff
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DODE_WITH_DEMOS=OFF
+ -DODE_WITH_TESTS=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ode-${VERSION})
+vcpkg_fixup_pkgconfig()
+
+file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
+file(RENAME "${CURRENT_PACKAGES_DIR}/bin/ode-config" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/ode-config")
+vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/ode-config" [[$(cd "$(dirname "$0")"; pwd -P)/..]] [[$(cd "$(dirname "$0")/../../.."; pwd -P)]])
+if(NOT VCPKG_BUILD_TYPE)
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin")
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin/ode-config" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/ode-config")
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/ode-config" [[$(cd "$(dirname "$0")"; pwd -P)/..]] [[$(cd "$(dirname "$0")/../../../.."; pwd -P)]])
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/ode-config" [[exec_prefix=${prefix}]] [[exec_prefix=${prefix}/debug]])
+endif()
+vcpkg_clean_executables_in_bin(FILE_NAMES none)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/ode/vcpkg.json b/vcpkg/ports/ode/vcpkg.json
new file mode 100644
index 0000000..fb1863c
--- /dev/null
+++ b/vcpkg/ports/ode/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "ode",
+ "version": "0.16.6",
+ "description": "Open Dynamics Engine",
+ "homepage": "https://bitbucket.org/odedevs/ode/src/master/",
+ "license": "BSD-3-Clause OR LGPL-2.1-or-later",
+ "supports": "!uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}