mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 21:36:03 +08:00
Merge pull request #1399 from KindDragon/theia_deps
TheiaSfm dependecies
This commit is contained in:
commit
c8d0d582a2
@ -1,3 +1,3 @@
|
||||
Source: cereal
|
||||
Version: 1.2.1
|
||||
Version: 1.2.2
|
||||
Description: a header-only C++11 serialization library (built in support for binary, XML and JSon)
|
||||
|
@ -1,16 +1,29 @@
|
||||
#header-only library
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cereal-1.2.1)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/USCiLab/cereal/archive/v1.2.1.tar.gz"
|
||||
FILENAME "cereal-1.2.1.tar.gz"
|
||||
SHA512 f0050f27433a4b544e7785aa94fc7b14a57eed6d542e25d3d0fda4d27cf55ea55e796be2138bf80809c96c392436513fe42764b3a456938395bf7f7177dd1c73
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO USCiLab/cereal
|
||||
REF v1.2.2
|
||||
SHA512 9567b2e19add9446b24f8afd122eea09ba6ecd1a090335cf0ab31fdc8f64c6c97daa3d9eaf0801c36a770737488e0eebf81d96d7b7a65deed30da6130f2d47eb
|
||||
HEAD_REF master
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DJUST_INSTALL_CEREAL=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "share/cmake/cereal")
|
||||
|
||||
# Clean
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cereal)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/cereal/LICENSE ${CURRENT_PACKAGES_DIR}/share/cereal/copyright)
|
||||
|
||||
# Copy the cereal header files
|
||||
file(COPY ${SOURCE_PATH}/include/cereal DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
@ -1,3 +1,3 @@
|
||||
Source: freeglut
|
||||
Version: 3.0.0
|
||||
Version: 3.0.0-1
|
||||
Description: Open source implementation of GLUT with source and binary backwards compatibility.
|
@ -7,6 +7,12 @@ vcpkg_download_distfile(ARCHIVE
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
# disable debug suffix, because FindGLUT.cmake from CMake 3.8 doesn't support it
|
||||
file(READ ${SOURCE_PATH}/CMakeLists.txt FREEGLUT_CMAKELISTS)
|
||||
string(REPLACE "SET( CMAKE_DEBUG_POSTFIX \"d\" )"
|
||||
"\#SET( CMAKE_DEBUG_POSTFIX \"d\" )" FREEGLUT_CMAKELISTS "${FREEGLUT_CMAKELISTS}")
|
||||
file(WRITE ${SOURCE_PATH}/CMakeLists.txt "${FREEGLUT_CMAKELISTS}")
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
set(FREEGLUT_STATIC OFF)
|
||||
set(FREEGLUT_DYNAMIC ON)
|
||||
@ -26,6 +32,15 @@ vcpkg_configure_cmake(
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Patch header
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/include/GL/freeglut_std.h FREEGLUT_STDH)
|
||||
string(REPLACE "pragma comment (lib, \"freeglut_staticd.lib\")"
|
||||
"pragma comment (lib, \"freeglut_static.lib\")" FREEGLUT_STDH "${FREEGLUT_STDH}")
|
||||
string(REPLACE "pragma comment (lib, \"freeglutd.lib\")"
|
||||
"pragma comment (lib, \"freeglut.lib\")" FREEGLUT_STDH "${FREEGLUT_STDH}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/include/GL/freeglut_std.h "${FREEGLUT_STDH}")
|
||||
|
||||
# Clean
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Handle copyright
|
||||
|
4
ports/openimageio/CONTROL
Normal file
4
ports/openimageio/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: openimageio
|
||||
Version: 1.7.15
|
||||
Description: An library for reading and writing images, and a bunch of related classes, utilities, and application
|
||||
Build-Depends: boost, libjpeg-turbo, tiff, libpng, openexr
|
53
ports/openimageio/portfile.cmake
Normal file
53
ports/openimageio/portfile.cmake
Normal file
@ -0,0 +1,53 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO OpenImageIO/oiio
|
||||
REF Release-1.7.15
|
||||
SHA512 5b83961a77de36082e0a3abeac8015f9455504680d7437777524a9ac17ac7994df2a2ad1af86a884cf17c1afcd71a36a30e24711cba8d8a30511c05e36d7fadc
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
set(BUILDSTATIC ON)
|
||||
set(LINKSTATIC ON)
|
||||
else()
|
||||
set(BUILDSTATIC OFF)
|
||||
set(LINKSTATIC OFF)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DOIIO_BUILD_TOOLS=OFF
|
||||
-DOIIO_BUILD_TESTS=OFF
|
||||
-DHIDE_SYMBOLS=ON
|
||||
-DUSE_FFMPEG=OFF
|
||||
-DUSE_FIELD3D=OFF
|
||||
-DUSE_FREETYPE=OFF
|
||||
-DUSE_GIF=OFF
|
||||
-DUSE_LIBRAW=OFF
|
||||
-DUSE_NUKE=OFF
|
||||
-DUSE_OCIO=OFF
|
||||
-DUSE_OPENCV=OFF
|
||||
-DUSE_OPENJPEG=OFF
|
||||
-DUSE_PTEX=OFF
|
||||
-DUSE_PYTHON=OFF
|
||||
-DUSE_QT=OFF
|
||||
-DBUILDSTATIC=${BUILDSTATIC}
|
||||
-DLINKSTATIC=${LINKSTATIC}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# Clean
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/doc)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/doc)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/openimageio)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/openimageio/LICENSE ${CURRENT_PACKAGES_DIR}/share/openimageio/copyright)
|
@ -116,6 +116,10 @@ function(vcpkg_fixup_cmake_targets)
|
||||
file(GLOB MAIN_CONFIGS "${RELEASE_SHARE}/*[Cc]onfig.cmake")
|
||||
foreach(MAIN_CONFIG ${MAIN_CONFIGS})
|
||||
file(READ ${MAIN_CONFIG} _contents)
|
||||
string(REGEX REPLACE
|
||||
"get_filename_component\\(_IMPORT_PREFIX \"\\\${CMAKE_CURRENT_LIST_FILE}\" PATH\\)(\nget_filename_component\\(_IMPORT_PREFIX \"\\\${_IMPORT_PREFIX}\" PATH\\))*"
|
||||
"get_filename_component(_IMPORT_PREFIX \"\${CMAKE_CURRENT_LIST_FILE}\" PATH)\nget_filename_component(_IMPORT_PREFIX \"\${_IMPORT_PREFIX}\" PATH)\nget_filename_component(_IMPORT_PREFIX \"\${_IMPORT_PREFIX}\" PATH)"
|
||||
_contents "${_contents}")
|
||||
string(REGEX REPLACE
|
||||
"get_filename_component\\(PACKAGE_PREFIX_DIR \"\\\${CMAKE_CURRENT_LIST_DIR}/\\.\\./(\\.\\./)*\" ABSOLUTE\\)"
|
||||
"get_filename_component(PACKAGE_PREFIX_DIR \"\${CMAKE_CURRENT_LIST_DIR}/../../\" ABSOLUTE)"
|
||||
|
Loading…
Reference in New Issue
Block a user