mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 20:39:13 +08:00
e60b08c84a
- [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [ ] The "supports" clause reflects platforms that may be fixed by this new version. - [ ] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [ ] Any patches that are no longer applied are deleted from the port's directory. - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file. This PR updates libass to version 0.17.2. --------- Co-authored-by: Kai Pastor <dg0yt@darc.de>
33 lines
1.1 KiB
CMake
33 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libass/libass
|
|
REF ${VERSION}
|
|
SHA512 a3e6d514c618a3d2a78287060a6de8002d926b606805a9306f41b902b382f221eff5a7276516c9b4dbe48fa2462936ec7a99585b2615fd44c6564c121ec4cb62
|
|
HEAD_REF master
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.in DESTINATION ${SOURCE_PATH})
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/libass.def DESTINATION ${SOURCE_PATH})
|
|
|
|
# Since libass uses automake, make and configure, we use a custom CMake file
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
file(COPY ${SOURCE_PATH}/libass/ass.h ${SOURCE_PATH}/libass/ass_types.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/ass)
|
|
|
|
vcpkg_find_acquire_program(PKGCONFIG)
|
|
get_filename_component(PKGCONFIG_EXE_PATH ${PKGCONFIG} DIRECTORY)
|
|
vcpkg_add_to_path(${PKGCONFIG_EXE_PATH})
|
|
|
|
vcpkg_cmake_configure(
|
|
OPTIONS -DLIBASS_VERSION=${VERSION}
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|