2017-05-05 07:23:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/snappy
|
[alsa,fdk-aac,ffmpeg,libsrt,snappy,x265] Code cleanup, fix and use pkg-config (#39077)
- Setup and use pkg-config for ffmpeg dependencies.
https://github.com/microsoft/vcpkg/pull/38011#discussion_r1623174355.
- Export actual c++ link libraries for fdk-aac via pkg-config. (Same
pattern as lerc, geos.)
- Rectify link libraries in pkg-config for alsa, libsrt, snappy, x265.
- Burn-in dllimport for libsrt and x265.
- Pass detected STRIP to ffmpeg. Fixes
https://github.com/microsoft/vcpkg/issues/36852.
2024-06-06 15:48:31 +08:00
|
|
|
REF ${VERSION}
|
2023-07-27 10:54:11 +08:00
|
|
|
SHA512 3578597f1d4ec09104ce0296b825b013590351230dfe56c635081fd282ce7a13a34caf2c283ac77bd24065e2d27af6db068d1f84b98cec2fd39a0e37a0d77070
|
2017-05-05 07:23:54 +08:00
|
|
|
HEAD_REF master
|
2022-08-04 01:30:09 +08:00
|
|
|
PATCHES
|
|
|
|
fix_clang-cl_build.patch
|
2023-07-27 10:54:11 +08:00
|
|
|
no-werror.patch
|
[alsa,fdk-aac,ffmpeg,libsrt,snappy,x265] Code cleanup, fix and use pkg-config (#39077)
- Setup and use pkg-config for ffmpeg dependencies.
https://github.com/microsoft/vcpkg/pull/38011#discussion_r1623174355.
- Export actual c++ link libraries for fdk-aac via pkg-config. (Same
pattern as lerc, geos.)
- Rectify link libraries in pkg-config for alsa, libsrt, snappy, x265.
- Burn-in dllimport for libsrt and x265.
- Pass detected STRIP to ffmpeg. Fixes
https://github.com/microsoft/vcpkg/issues/36852.
2024-06-06 15:48:31 +08:00
|
|
|
pkgconfig.diff
|
2017-05-05 07:23:54 +08:00
|
|
|
)
|
[alsa,fdk-aac,ffmpeg,libsrt,snappy,x265] Code cleanup, fix and use pkg-config (#39077)
- Setup and use pkg-config for ffmpeg dependencies.
https://github.com/microsoft/vcpkg/pull/38011#discussion_r1623174355.
- Export actual c++ link libraries for fdk-aac via pkg-config. (Same
pattern as lerc, geos.)
- Rectify link libraries in pkg-config for alsa, libsrt, snappy, x265.
- Burn-in dllimport for libsrt and x265.
- Pass detected STRIP to ffmpeg. Fixes
https://github.com/microsoft/vcpkg/issues/36852.
2024-06-06 15:48:31 +08:00
|
|
|
file(COPY "${CURRENT_PORT_DIR}/snappy.pc.in" DESTINATION "${SOURCE_PATH}")
|
2017-05-05 07:23:54 +08:00
|
|
|
|
2021-11-06 05:25:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-07-29 21:27:34 +08:00
|
|
|
OPTIONS
|
2018-03-13 00:16:43 +08:00
|
|
|
-DSNAPPY_BUILD_TESTS=OFF
|
2021-09-28 11:52:58 +08:00
|
|
|
-DSNAPPY_BUILD_BENCHMARKS=OFF
|
2023-07-27 10:54:11 +08:00
|
|
|
|
|
|
|
# These variables can be overriden in a custom triplet, see usage file
|
|
|
|
-DSNAPPY_HAVE_SSSE3=OFF
|
|
|
|
-DSNAPPY_HAVE_X86_CRC32=OFF
|
|
|
|
-DSNAPPY_HAVE_NEON_CRC32=OFF
|
|
|
|
-DSNAPPY_HAVE_BMI2=OFF
|
|
|
|
-DSNAPPY_HAVE_NEON=OFF
|
2021-11-06 05:25:34 +08:00
|
|
|
)
|
2017-05-05 07:23:54 +08:00
|
|
|
|
2021-11-06 05:25:34 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Snappy)
|
2017-05-05 07:23:54 +08:00
|
|
|
vcpkg_copy_pdbs()
|
[alsa,fdk-aac,ffmpeg,libsrt,snappy,x265] Code cleanup, fix and use pkg-config (#39077)
- Setup and use pkg-config for ffmpeg dependencies.
https://github.com/microsoft/vcpkg/pull/38011#discussion_r1623174355.
- Export actual c++ link libraries for fdk-aac via pkg-config. (Same
pattern as lerc, geos.)
- Rectify link libraries in pkg-config for alsa, libsrt, snappy, x265.
- Burn-in dllimport for libsrt and x265.
- Pass detected STRIP to ffmpeg. Fixes
https://github.com/microsoft/vcpkg/issues/36852.
2024-06-06 15:48:31 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2022-09-20 03:30:40 +08:00
|
|
|
|
2021-11-06 05:25:34 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-07-27 10:54:11 +08:00
|
|
|
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|