aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-07-11 16:17:47 -0700
committerGitHub <noreply@github.com>2017-07-11 16:17:47 -0700
commitcedaaa195637296783f67a3f7cc161797ee7d562 (patch)
treea1bc3e08bafba5c0dcf3c1b696f1e0836043a4dd
parenta5d42e2bcb01c78323d21a6f62dcf89866bae09a (diff)
parentc27c8d294101971373f087b0d18ae693e18f5d69 (diff)
downloadvcpkg-cedaaa195637296783f67a3f7cc161797ee7d562.tar.gz
vcpkg-cedaaa195637296783f67a3f7cc161797ee7d562.zip
Merge pull request #1424 from jasjuang/master
new port: alembic
-rw-r--r--ports/alembic/CONTROL4
-rw-r--r--ports/alembic/portfile.cmake37
2 files changed, 41 insertions, 0 deletions
diff --git a/ports/alembic/CONTROL b/ports/alembic/CONTROL
new file mode 100644
index 000000000..29ec78bc1
--- /dev/null
+++ b/ports/alembic/CONTROL
@@ -0,0 +1,4 @@
+Source: alembic
+Version: 1.7.1
+Build-Depends:ilmbase
+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. http://alembic.io/
diff --git a/ports/alembic/portfile.cmake b/ports/alembic/portfile.cmake
new file mode 100644
index 000000000..b57a1232d
--- /dev/null
+++ b/ports/alembic/portfile.cmake
@@ -0,0 +1,37 @@
+include(vcpkg_common_functions)
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ message(STATUS "Alembic does not support static linkage. Building dynamically.")
+ set(VCPKG_LIBRARY_LINKAGE dynamic)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO alembic/alembic
+ REF 1.7.1
+ SHA512 89e30b681a76eaf79b20ebeff62c495971b0eb64b28f249a14bbcf3bdb40df7eda93b0ede299dd5511bd4587a2cc2d4ebd851fb89bf999fdccc31fee3cffbba2
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/Alembic")
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe)
+file(GLOB DEBUG_EXE ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
+file(REMOVE ${EXE})
+file(REMOVE ${DEBUG_EXE})
+file(RENAME ${CURRENT_PACKAGES_DIR}/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/bin/Alembic.dll)
+file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/debug/bin/Alembic.dll)
+
+# Put the license file where vcpkg expects it
+file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/Alembic/)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/Alembic/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/Alembic/copyright)