diff options
| author | mmazaherit <m.mazaheri.t@gmail.com> | 2017-06-10 17:53:46 -0400 |
|---|---|---|
| committer | mmazaherit <m.mazaheri.t@gmail.com> | 2017-06-10 18:06:52 -0400 |
| commit | c4de5e29b11bd5815b479aa94172a227c3cac55a (patch) | |
| tree | ce82d9378bcf446631a0ed29b58468b2e730a9f1 | |
| parent | 676f55ddda709b24e4f2df9a3e3b52404b7c04ec (diff) | |
| download | vcpkg-c4de5e29b11bd5815b479aa94172a227c3cac55a.tar.gz vcpkg-c4de5e29b11bd5815b479aa94172a227c3cac55a.zip | |
check in qhull
| -rw-r--r-- | ports/qhull/CONTROL | 3 | ||||
| -rw-r--r-- | ports/qhull/portfile.cmake | 46 |
2 files changed, 49 insertions, 0 deletions
diff --git a/ports/qhull/CONTROL b/ports/qhull/CONTROL new file mode 100644 index 000000000..aaf569f25 --- /dev/null +++ b/ports/qhull/CONTROL @@ -0,0 +1,3 @@ +Source: qhull +Version:1.0 +Description: computes the convex hull, Delaunay triangulation, Voronoi diagram diff --git a/ports/qhull/portfile.cmake b/ports/qhull/portfile.cmake new file mode 100644 index 000000000..77c585b40 --- /dev/null +++ b/ports/qhull/portfile.cmake @@ -0,0 +1,46 @@ +# Common Ambient Variables: +# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT} +# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET} +# CURRENT_PORT DIR = ${VCPKG_ROOT_DIR}\ports\${PORT} +# PORT = current port name (zlib, etc) +# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc) +# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic) +# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic) +# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg> +# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm) +# + +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO qhull/qhull + REF master + SHA512 16aa9f93ce6fe8342a3b579881f10bb417679b0a70849e6b0cc5a89551e4de773a43bb0d54948196690d68d168f3a2a215e4600745ff1566302b0b426565fb25 +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + #PREFER_NINJA # Disable this option if project cannot be built with Ninja + OPTIONS + -DINCLUDE_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/include + -DMAN_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/doc/qhull + -DDOC_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/doc/qhull + + OPTIONS_RELEASE + -Dqhull_TARGETS_INSTALL=qhullcpp + -DLIB_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/lib + + OPTIONS_DEBUG + -Dqhull_TARGETS_INSTALL=qhullcpp_d + -DLIB_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/debug/lib +) + +vcpkg_install_cmake() +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(GLOB_RECURSE HTMFILES ${CURRENT_PACKAGES_DIR}/include/*.htm) +file(REMOVE ${HTMFILES}) + +# Handle copyright +file(COPY ${SOURCE_PATH}/README.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/qhull) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/qhull/README.txt ${CURRENT_PACKAGES_DIR}/share/qhull/copyright) |
