aboutsummaryrefslogtreecommitdiff
path: root/ports/ccd
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2019-11-22 09:47:40 -0800
committerGitHub <noreply@github.com>2019-11-22 09:47:40 -0800
commit45f4b820e5743b89bca3508ba2028cdd5d8bbd17 (patch)
treef874a8c4a7392309bdbb86447288597ec0a4a281 /ports/ccd
parent62d67d3bf8eeff1afa8009041fd08b8822676b7b (diff)
parent8831e8f25f1ff6546ee4a5291b91d599421637b3 (diff)
downloadvcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.tar.gz
vcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.zip
Merge branch 'master' into vcpkg_nuget
Diffstat (limited to 'ports/ccd')
-rw-r--r--ports/ccd/0001_fix_symbols_export.patch39
-rw-r--r--ports/ccd/CONTROL2
-rw-r--r--ports/ccd/portfile.cmake19
3 files changed, 8 insertions, 52 deletions
diff --git a/ports/ccd/0001_fix_symbols_export.patch b/ports/ccd/0001_fix_symbols_export.patch
deleted file mode 100644
index f9c47d79b..000000000
--- a/ports/ccd/0001_fix_symbols_export.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 05b5718a364ac525c8766387bd74faf852f98589 Mon Sep 17 00:00:00 2001
-From: Mikhail Paulyshka <me@mixaill.tk>
-Date: Sun, 27 Aug 2017 03:39:53 +0300
-Subject: [PATCH] win32: export additional symbols, fixes FCL build on MSVC
-
----
- src/ccd/vec3.h | 2 +-
- src/support.h | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/src/ccd/vec3.h b/src/ccd/vec3.h
-index b0c1b33..014531c 100644
---- a/src/ccd/vec3.h
-+++ b/src/ccd/vec3.h
-@@ -93,7 +93,7 @@ typedef struct _ccd_vec3_t ccd_vec3_t;
- /**
- * Holds origin (0,0,0) - this variable is meant to be read-only!
- */
--extern ccd_vec3_t *ccd_vec3_origin;
-+extern _ccd_export ccd_vec3_t *ccd_vec3_origin;
-
- /**
- * Array of points uniformly distributed on unit sphere.
-diff --git a/src/support.h b/src/support.h
-index 3372f5e..2e75df7 100644
---- a/src/support.h
-+++ b/src/support.h
-@@ -37,7 +37,7 @@ _ccd_inline void ccdSupportCopy(ccd_support_t *, const ccd_support_t *s);
- * Computes support point of obj1 and obj2 in direction dir.
- * Support point is returned via supp.
- */
--void __ccdSupport(const void *obj1, const void *obj2,
-+_ccd_export void __ccdSupport(const void *obj1, const void *obj2,
- const ccd_vec3_t *dir, const ccd_t *ccd,
- ccd_support_t *supp);
-
---
-2.12.2.windows.2
-
diff --git a/ports/ccd/CONTROL b/ports/ccd/CONTROL
index e2b4463ba..ded728779 100644
--- a/ports/ccd/CONTROL
+++ b/ports/ccd/CONTROL
@@ -1,4 +1,4 @@
Source: ccd
-Version: 2.1
+Version: 2.1-3
Homepage: https://github.com/danfis/libccd
Description: Library for collision detection between two convex shapes
diff --git a/ports/ccd/portfile.cmake b/ports/ccd/portfile.cmake
index ba9b3a6f6..424732917 100644
--- a/ports/ccd/portfile.cmake
+++ b/ports/ccd/portfile.cmake
@@ -1,17 +1,12 @@
include(vcpkg_common_functions)
-vcpkg_from_github(
- OUT_SOURCE_PATH SOURCE_PATH
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
REPO danfis/libccd
REF v2.1
SHA512 ff037d9c4df50f09600cf9b3514b259b2850ff43f74817853f5665d22812891168f70bd3cc3969b2c9e3c706f6254991a65421476349607fbd04d894b217456d
- HEAD_REF master
-)
-
-vcpkg_apply_patches(
- SOURCE_PATH ${SOURCE_PATH}
- PATCHES
- ${CMAKE_CURRENT_LIST_DIR}/0001_fix_symbols_export.patch)
+ HEAD_REF master
+)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
@@ -21,10 +16,10 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
vcpkg_copy_pdbs()
-vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/ccd")
-
-file(INSTALL ${SOURCE_PATH}/BSD-LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/ccd RENAME copyright)
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/ccd)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/doc)
+
+file(INSTALL ${SOURCE_PATH}/BSD-LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)