2019-01-15 06:02:47 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libass/libass
|
2024-06-06 15:15:08 +08:00
|
|
|
REF ${VERSION}
|
2024-07-04 20:53:17 +08:00
|
|
|
SHA512 f58bcb51c993d1725f30e026281fcc9139b6a2207159eac8510a983ba7f85e85b3bb78e24a0d074615f6ec12dbe4b18b1c07f2ba68cd9626470a31a99ff2c714
|
2019-01-15 06:02:47 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2019-01-25 03:47:28 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.in DESTINATION ${SOURCE_PATH})
|
2019-01-15 06:02:47 +08:00
|
|
|
|
2019-01-31 05:41:51 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/libass.def DESTINATION ${SOURCE_PATH})
|
|
|
|
|
2019-01-25 03:47:28 +08:00
|
|
|
# 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)
|
|
|
|
|
2023-05-09 01:12:45 +08:00
|
|
|
vcpkg_find_acquire_program(PKGCONFIG)
|
|
|
|
get_filename_component(PKGCONFIG_EXE_PATH ${PKGCONFIG} DIRECTORY)
|
|
|
|
vcpkg_add_to_path(${PKGCONFIG_EXE_PATH})
|
|
|
|
|
2022-05-20 05:14:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
2024-06-06 15:15:08 +08:00
|
|
|
OPTIONS -DLIBASS_VERSION=${VERSION}
|
2019-01-25 03:47:28 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2022-05-20 05:14:39 +08:00
|
|
|
)
|
2019-01-25 03:47:28 +08:00
|
|
|
|
2022-05-20 05:14:39 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-08-08 07:06:43 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-01-27 07:07:05 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-08-08 07:06:43 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|