From 19739183848c679e8058b5f907c06cb0be0bbc4d Mon Sep 17 00:00:00 2001 From: Lily <47812810+LilyWangL@users.noreply.github.com> Date: Sat, 8 Aug 2020 07:06:43 +0800 Subject: [PATCH] [libass] Fix build error on x64-windows-static (#12528) * [libass] Fix build error on x64-windows-static * [libass] Update vcpkg.json * Update CMakeLists.txt * Update CMakeLists.txt * Update portfile.cmake * [libass] Resolve conflict * [libass] Resolve conflict * format manifest Co-authored-by: Nicole Mazzuca --- ports/libass/CMakeLists.txt | 2 +- ports/libass/CONTROL | 5 ----- ports/libass/portfile.cmake | 11 ++++------- ports/libass/vcpkg.json | 16 ++++++++++++++++ scripts/ci.baseline.txt | 1 - 5 files changed, 21 insertions(+), 14 deletions(-) delete mode 100644 ports/libass/CONTROL create mode 100644 ports/libass/vcpkg.json diff --git a/ports/libass/CMakeLists.txt b/ports/libass/CMakeLists.txt index 2db910d272..aacf89d86b 100644 --- a/ports/libass/CMakeLists.txt +++ b/ports/libass/CMakeLists.txt @@ -45,7 +45,7 @@ find_path(HARFBUZZ_INCLUDE_DIR find_path(DIRENT_INCLUDE_DIR NAMES dirent.h) -find_library(FRIBIDI_LIBRARY NAMES fribidi) +find_library(FRIBIDI_LIBRARY NAMES libfribidi fribidi) find_library(HARFBUZZ_LIBRARY NAMES harfbuzz) add_library(ass ${SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/libass.def) diff --git a/ports/libass/CONTROL b/ports/libass/CONTROL deleted file mode 100644 index 3e886403a2..0000000000 --- a/ports/libass/CONTROL +++ /dev/null @@ -1,5 +0,0 @@ -Source: libass -Version: 0.14.0 -Port-Version: 2 -Build-Depends: freetype, fribidi, harfbuzz, dirent (windows) -Description: libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format. diff --git a/ports/libass/portfile.cmake b/ports/libass/portfile.cmake index 040cadc661..f5ab6606c0 100644 --- a/ports/libass/portfile.cmake +++ b/ports/libass/portfile.cmake @@ -1,6 +1,3 @@ - -include(vcpkg_common_functions) - vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO libass/libass @@ -14,9 +11,6 @@ file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.in DESTINATION ${SOURCE_PATH}) file(COPY ${CMAKE_CURRENT_LIST_DIR}/libass.def DESTINATION ${SOURCE_PATH}) -# Handle copyright -file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libass RENAME copyright) - # Since libass uses automake, make and configure, we use a custom CMake file file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) @@ -27,4 +21,7 @@ vcpkg_configure_cmake( PREFER_NINJA) vcpkg_install_cmake() -vcpkg_copy_pdbs() \ No newline at end of file +vcpkg_copy_pdbs() + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/libass/vcpkg.json b/ports/libass/vcpkg.json new file mode 100644 index 0000000000..151d87cdd6 --- /dev/null +++ b/ports/libass/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "libass", + "version-string": "0.14.0", + "port-version": 3, + "description": "libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format", + "homepage": "https://github.com/libass/libass", + "dependencies": [ + { + "name": "dirent", + "platform": "windows" + }, + "freetype", + "fribidi", + "harfbuzz" + ] +} diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 74a2605c17..9c33476250 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -631,7 +631,6 @@ leveldb:arm-uwp=fail leveldb:x64-uwp=fail libaiff:x64-linux=fail libarchive:arm-uwp=fail -libass:x64-windows-static=fail libbf:arm64-windows=fail libbf:arm-uwp=fail libbf:x64-uwp=fail