diff options
Diffstat (limited to 'vcpkg/ports/avisynthplus')
| -rw-r--r-- | vcpkg/ports/avisynthplus/add-include-chrono.patch | 24 | ||||
| -rw-r--r-- | vcpkg/ports/avisynthplus/portfile.cmake | 32 | ||||
| -rw-r--r-- | vcpkg/ports/avisynthplus/vcpkg.json | 15 |
3 files changed, 71 insertions, 0 deletions
diff --git a/vcpkg/ports/avisynthplus/add-include-chrono.patch b/vcpkg/ports/avisynthplus/add-include-chrono.patch new file mode 100644 index 0000000..6c24a91 --- /dev/null +++ b/vcpkg/ports/avisynthplus/add-include-chrono.patch @@ -0,0 +1,24 @@ +diff --git a/avs_core/core/avisynth.cpp b/avs_core/core/avisynth.cpp +index c66d39e..5bc61a3 100644 +--- a/avs_core/core/avisynth.cpp ++++ b/avs_core/core/avisynth.cpp +@@ -45,6 +45,7 @@ + #include "FilterConstructor.h" + #include "PluginManager.h" + #include "MappedList.h" ++#include <chrono> + #include <vector> + #include <iostream> + #include <fstream> +diff --git a/avs_core/core/cache.cpp b/avs_core/core/cache.cpp +index 76eb7cf..957e102 100644 +--- a/avs_core/core/cache.cpp ++++ b/avs_core/core/cache.cpp +@@ -38,6 +38,7 @@ + #include "InternalEnvironment.h" + #include "DeviceManager.h" + #include <cassert> ++#include <chrono> + #include <cstdio> + + #ifdef X86_32 diff --git a/vcpkg/ports/avisynthplus/portfile.cmake b/vcpkg/ports/avisynthplus/portfile.cmake new file mode 100644 index 0000000..91fa40c --- /dev/null +++ b/vcpkg/ports/avisynthplus/portfile.cmake @@ -0,0 +1,32 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO AviSynth/AviSynthPlus + REF "v${VERSION}" + SHA512 0e0daa83e3ab729fdc35a52c60c23c9142f1229187af893d0dbbd36f88eced36f63a3e8c767a3dc825edaa5395a49a5aad726f6b61de8f6b291557eec20de426 + HEAD_REF master + PATCHES + add-include-chrono.patch # https://github.com/AviSynth/AviSynthPlus/pull/414 +) + +vcpkg_download_distfile(GHC_ARCHIVE + URLS "https://github.com/gulrak/filesystem/archive/3f1c185ab414e764c694b8171d1c4d8c5c437517.zip" + FILENAME filesystem-3f1c185ab414e764c694b8171d1c4d8c5c437517.zip + SHA512 e3fe1e41b31f840ebc219fcd795e7be2973b80bb3843d6bb080786ad9e3e7f846a118673cb9e17d76bae66954e64e024a82622fb8cea7818d5d9357de661d3d1 +) + +file(REMOVE_RECURSE "${SOURCE_PATH}/filesystem") +vcpkg_extract_source_archive(extracted_archive ARCHIVE "${GHC_ARCHIVE}") +file(RENAME "${extracted_archive}" "${SOURCE_PATH}/filesystem") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DENABLE_PLUGINS=OFF +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/distrib/gpl.txt") diff --git a/vcpkg/ports/avisynthplus/vcpkg.json b/vcpkg/ports/avisynthplus/vcpkg.json new file mode 100644 index 0000000..57d4e62 --- /dev/null +++ b/vcpkg/ports/avisynthplus/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "avisynthplus", + "version": "3.7.3", + "port-version": 1, + "description": "An improved version of the AviSynth frameserver, with improved features and developer friendliness", + "homepage": "https://avs-plus.net/", + "license": "GPL-2.0", + "supports": "!arm & !uwp & !xbox", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} |