2019-01-15 06:02:47 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libass/libass
|
|
|
|
REF 98727c3b78f44cb3bbc955fcf5d977ebd911d5ca
|
|
|
|
SHA512 d466108180cea598b817f89aa21a1021ed2a763580d9aad51b054aa120186af48ab4264907e49ddcb38479a28d87d5431751a28afee9cb83ad7623f002d99c57
|
|
|
|
HEAD_REF master
|
2019-01-25 03:47:28 +08:00
|
|
|
PATCHES ConstantValues.patch
|
2019-01-15 06:02:47 +08:00
|
|
|
)
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2020-08-08 07:06:43 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|