From b7ef16861f37a4a2f1e8ea12137b1349133ee5cf Mon Sep 17 00:00:00 2001 From: wangqr Date: Thu, 16 Apr 2020 16:44:18 -0400 Subject: [PATCH] [avisynthplus] Add new port (#10496) * [avisynthplus] Add new port * [avisynthplus] Disable static build Static build is not supported. See https://github.com/AviSynth/AviSynthPlus/issues/130 * [avisynthplus] Ass Supports to CONTROL * [avisynthplus] set static to fail in CI baseline * [avisynthplus] add vcpkg_fail_port_install --- ports/avisynthplus/CONTROL | 5 ++++ ports/avisynthplus/generate-version-3.5.patch | 20 +++++++++++++++ ports/avisynthplus/portfile.cmake | 25 +++++++++++++++++++ scripts/ci.baseline.txt | 1 + 4 files changed, 51 insertions(+) create mode 100644 ports/avisynthplus/CONTROL create mode 100644 ports/avisynthplus/generate-version-3.5.patch create mode 100644 ports/avisynthplus/portfile.cmake diff --git a/ports/avisynthplus/CONTROL b/ports/avisynthplus/CONTROL new file mode 100644 index 0000000000000..21d9c558685c7 --- /dev/null +++ b/ports/avisynthplus/CONTROL @@ -0,0 +1,5 @@ +Source: avisynthplus +Version: 3.5.0 +Homepage: http://avs-plus.net/ +Description: An improved version of the AviSynth frameserver, with improved features and developer friendliness +Supports: windows&!(uwp|arm|static) diff --git a/ports/avisynthplus/generate-version-3.5.patch b/ports/avisynthplus/generate-version-3.5.patch new file mode 100644 index 0000000000000..f29cbf4633fdc --- /dev/null +++ b/ports/avisynthplus/generate-version-3.5.patch @@ -0,0 +1,20 @@ +diff --git a/avs_core/Version.cmake b/avs_core/Version.cmake +index e2be19d2..1d4dd922 100644 +--- a/avs_core/Version.cmake ++++ b/avs_core/Version.cmake +@@ -1,12 +1,4 @@ +-EXECUTE_PROCESS( +- COMMAND "${GIT}" --git-dir=${REPO}/.git rev-list --count HEAD +- OUTPUT_VARIABLE AVS_SEQREV +- OUTPUT_STRIP_TRAILING_WHITESPACE +-) +-EXECUTE_PROCESS( +- COMMAND "${GIT}" --git-dir=${REPO}/.git rev-parse --abbrev-ref HEAD +- OUTPUT_VARIABLE AVS_BRANCH +- OUTPUT_STRIP_TRAILING_WHITESPACE +-) ++set(AVS_SEQREV 3043) ++set(AVS_BRANCH 3.5) + CONFIGURE_FILE(${SRC} ${DST} @ONLY) + +\ No newline at end of file diff --git a/ports/avisynthplus/portfile.cmake b/ports/avisynthplus/portfile.cmake new file mode 100644 index 0000000000000..232a5d0ac7c67 --- /dev/null +++ b/ports/avisynthplus/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_fail_port_install(ON_TARGET "Linux" "OSX" "UWP" "arm" "arm64") + +vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO AviSynth/AviSynthPlus + REF e17f4f80055009bf45b37e1b6d1790bd1c1a93b2 # 3.5.0 + SHA512 40d2f63416e0e812dd6c7db9b17c09c51295d192bdc4dc46daa063e20731a3451a2b797dab351d31dbb43842eb2c2cdb148da16e5b92816423e3cbf40fff23b0 + HEAD_REF master + PATCHES + generate-version-3.5.patch +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DENABLE_PLUGINS=OFF +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(INSTALL ${SOURCE_PATH}/distrib/gpl.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/avisynthplus RENAME copyright) diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 06c7456c1f3a0..cc6ce072a9000 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -96,6 +96,7 @@ atlmfc:x64-linux=fail atlmfc:x64-osx=fail aubio:x64-linux=fail aubio:x64-osx=fail +avisynthplus:x64-windows-static=fail avro-c:arm-uwp=fail avro-c:x64-osx=fail avro-c:x64-uwp=fail