2023-12-07 06:02:56 +08:00
|
|
|
vcpkg_from_bitbucket(
|
2018-02-23 00:24:51 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2023-12-07 06:02:56 +08:00
|
|
|
REPO multicoreware/x265_git
|
|
|
|
REF "${VERSION}"
|
2024-06-25 09:03:17 +08:00
|
|
|
SHA512 cfc3fdd7ce10a6cadf4515707d8f338fe58329cbbbcac11a85f00376e29156baccfb19a514ac2bc816432d15a2a4eb1bb7e16e3a870b6b9f9bc28e1a44270091
|
2018-02-23 00:24:51 +08:00
|
|
|
HEAD_REF master
|
2019-10-08 01:35:13 +08:00
|
|
|
PATCHES
|
|
|
|
disable-install-pdb.patch
|
2023-12-07 06:02:56 +08:00
|
|
|
version.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
|
|
|
linkage.diff
|
|
|
|
pkgconfig.diff
|
2024-06-25 09:03:17 +08:00
|
|
|
pthread.diff
|
|
|
|
compiler-target.diff
|
|
|
|
neon.diff
|
2018-02-28 02:36:28 +08:00
|
|
|
)
|
|
|
|
|
2024-06-25 09:03:17 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS OPTIONS
|
|
|
|
FEATURES
|
|
|
|
tool ENABLE_CLI
|
|
|
|
)
|
|
|
|
|
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
2019-02-22 09:05:19 +08:00
|
|
|
vcpkg_find_acquire_program(NASM)
|
2024-06-25 09:03:17 +08:00
|
|
|
list(APPEND OPTIONS "-DNASM_EXECUTABLE=${NASM}")
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" AND NOT VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_OSX)
|
|
|
|
# x265 doesn't create sufficient PIC for asm, breaking usage
|
|
|
|
# in shared libs, e.g. the libheif gdk pixbuf plugin.
|
|
|
|
# Users can override this in custom triplets.
|
|
|
|
list(APPEND OPTIONS "-DENABLE_ASSEMBLY=OFF")
|
|
|
|
endif()
|
|
|
|
elseif(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
list(APPEND OPTIONS "-DENABLE_ASSEMBLY=OFF")
|
2022-07-14 04:17:56 +08:00
|
|
|
endif()
|
2019-02-22 09:05:19 +08:00
|
|
|
|
2018-02-28 02:36:28 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_SHARED)
|
|
|
|
|
2022-07-14 04:17:56 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/source"
|
2019-02-22 09:05:19 +08:00
|
|
|
OPTIONS
|
2024-06-25 09:03:17 +08:00
|
|
|
${OPTIONS}
|
2019-02-22 09:05:19 +08:00
|
|
|
-DENABLE_SHARED=${ENABLE_SHARED}
|
2024-06-25 09:03:17 +08:00
|
|
|
-DENABLE_PIC=ON
|
2022-07-14 04:17:56 +08:00
|
|
|
-DENABLE_LIBNUMA=OFF
|
2023-12-07 06:02:56 +08:00
|
|
|
"-DVERSION=${VERSION}"
|
2019-02-22 09:05:19 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DENABLE_CLI=OFF
|
2022-07-14 04:17:56 +08:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
ENABLE_LIBNUMA
|
2018-02-23 00:24:51 +08:00
|
|
|
)
|
|
|
|
|
2022-07-14 04:17:56 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-02-23 00:24:51 +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()
|
2018-02-23 00:24:51 +08:00
|
|
|
|
2024-06-25 09:03:17 +08:00
|
|
|
if("tool" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES x265 AUTO_CLEAN)
|
|
|
|
endif()
|
2018-02-28 02:36:28 +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
|
|
|
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/x265.h" "#ifdef X265_API_IMPORTS" "#if 1")
|
2020-12-02 06:13:58 +08:00
|
|
|
endif()
|
|
|
|
|
[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(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-08-19 03:58:14 +08:00
|
|
|
|
2023-12-07 06:02:56 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|