2019-11-12 14:46:48 +01:00
|
|
|
set(RTMPDUMP_REVISION c5f04a58fc2aeea6296ca7c44ee4734c18401aa3)
|
2017-10-05 15:56:49 +03:00
|
|
|
|
2019-11-12 14:46:48 +01:00
|
|
|
vcpkg_from_git(
|
2019-10-07 19:35:13 +02:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-11-12 14:46:48 +01:00
|
|
|
URL https://git.ffmpeg.org/rtmpdump
|
|
|
|
REF ${RTMPDUMP_REVISION}
|
2017-10-05 15:56:49 +03:00
|
|
|
PATCHES
|
2019-10-07 19:35:13 +02:00
|
|
|
fix_strncasecmp.patch
|
|
|
|
hide_netstackdump.patch
|
2017-10-05 15:56:49 +03:00
|
|
|
)
|
|
|
|
|
2019-10-07 19:35:13 +02:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/librtmp.def DESTINATION ${SOURCE_PATH}/librtmp)
|
|
|
|
|
2017-10-05 15:56:49 +03:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2018-01-08 22:12:37 +02:00
|
|
|
PREFER_NINJA
|
2017-10-05 15:56:49 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# License and man
|
|
|
|
file(INSTALL ${SOURCE_PATH}/librtmp/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/librtmp RENAME copyright)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/librtmp/librtmp.3.html DESTINATION ${CURRENT_PACKAGES_DIR}/share/librtmp)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|