early-access version 2853
This commit is contained in:
19
externals/vcpkg/ports/alembic/disable-warnings-as-error.patch
vendored
Executable file
19
externals/vcpkg/ports/alembic/disable-warnings-as-error.patch
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
Workaround for https://github.com/alembic/alembic/issues/309
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -125,14 +125,6 @@ IF (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
|
||||
ENDIF()
|
||||
|
||||
-# Set some debug vs opt flags
|
||||
-if ("${CMAKE_BUILD_TYPE}" MATCHES "Debug" AND NOT MSVC)
|
||||
- add_definitions(-Wall -Werror -Wextra -Wno-unused-parameter -Wno-deprecated)
|
||||
- if((CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 7.0) OR
|
||||
- CMAKE_CXX_COMPILER_ID MATCHES "CLANG")
|
||||
- add_definitions( -Wno-error=implicit-fallthrough)
|
||||
- endif()
|
||||
-endif()
|
||||
|
||||
IF (NOT ${WINDOWS})
|
||||
SET(EXTERNAL_MATH_LIBS "-lm")
|
||||
31
externals/vcpkg/ports/alembic/fix-runtime-destination.patch
vendored
Executable file
31
externals/vcpkg/ports/alembic/fix-runtime-destination.patch
vendored
Executable file
@@ -0,0 +1,31 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -73,7 +73,7 @@ option(DOCS_PATH
|
||||
|
||||
# Set static/dynamic build options
|
||||
SET(LIB_TYPE STATIC)
|
||||
-SET(RUNTIME_INSTALL_DIR lib)
|
||||
+SET(RUNTIME_INSTALL_DIR bin)
|
||||
SET(LIBRARY_INSTALL_DIR lib)
|
||||
SET(ARCHIVE_INSTALL_DIR lib)
|
||||
IF (ALEMBIC_SHARED_LIBS)
|
||||
diff --git a/lib/Alembic/CMakeLists.txt b/lib/Alembic/CMakeLists.txt
|
||||
--- a/lib/Alembic/CMakeLists.txt
|
||||
+++ b/lib/Alembic/CMakeLists.txt
|
||||
@@ -78,12 +78,11 @@ option(DOCS_PATH
|
||||
${ZLIB_LIBRARY}
|
||||
)
|
||||
|
||||
-SET( ALEMBIC_LIB_INSTALL_DIR lib CACHE PATH "Where to install the Alembic libs")
|
||||
INSTALL(TARGETS Alembic
|
||||
EXPORT AlembicTargets
|
||||
- LIBRARY DESTINATION ${ALEMBIC_LIB_INSTALL_DIR}
|
||||
- ARCHIVE DESTINATION ${ALEMBIC_LIB_INSTALL_DIR}
|
||||
- RUNTIME DESTINATION ${ALEMBIC_LIB_INSTALL_DIR})
|
||||
+ LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR}
|
||||
+ ARCHIVE DESTINATION ${ARCHIVE_INSTALL_DIR}
|
||||
+ RUNTIME DESTINATION ${RUNTIME_INSTALL_DIR})
|
||||
|
||||
#-******************************************************************************
|
||||
# PACKAGE EXPORTS
|
||||
49
externals/vcpkg/ports/alembic/portfile.cmake
vendored
Executable file
49
externals/vcpkg/ports/alembic/portfile.cmake
vendored
Executable file
@@ -0,0 +1,49 @@
|
||||
vcpkg_buildpath_length_warning(37)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO alembic/alembic
|
||||
REF 1.8.3
|
||||
SHA512 0049c72d93e66e12d704d27e7ba36cd9c718667f2ce4f7baa1bee1613ed88ba53abea98f457e14f7f2144cb353810a4108d26c7dd1a1543ec2af576272f19036
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-runtime-destination.patch
|
||||
disable-warnings-as-error.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ALEMBIC_SHARED_LIBS)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
hdf5 USE_HDF5
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DALEMBIC_SHARED_LIBS=${ALEMBIC_SHARED_LIBS}
|
||||
-DUSE_TESTS=OFF
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Alembic)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
set(TOOLS abcdiff abcecho abcechobounds abcls abcstitcher abctree)
|
||||
if(USE_HDF5)
|
||||
list(APPEND TOOLS abcconvert)
|
||||
endif()
|
||||
|
||||
vcpkg_copy_tools(
|
||||
TOOL_NAMES ${TOOLS}
|
||||
AUTO_CLEAN
|
||||
)
|
||||
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
27
externals/vcpkg/ports/alembic/vcpkg.json
vendored
Executable file
27
externals/vcpkg/ports/alembic/vcpkg.json
vendored
Executable file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "alembic",
|
||||
"version": "1.8.3",
|
||||
"port-version": 1,
|
||||
"description": "Alembic is an open framework for storing and sharing scene data that includes a C++ library, a file format, and client plugins and applications.",
|
||||
"homepage": "https://alembic.io/",
|
||||
"supports": "!(windows & x86) & !uwp",
|
||||
"dependencies": [
|
||||
"imath",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"hdf5": {
|
||||
"description": "Build with HDF5 support",
|
||||
"dependencies": [
|
||||
"hdf5"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user