vcpkg/ports/faad2/portfile.cmake

30 lines
746 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO knik0/faad2
REF "${VERSION}"
SHA512 b8f17680610b2f47344ea52b54412a02810a85eaf9d4c91b97ca09b2c6415c62d4af1b0771bfcacb9dfee400ed34504c0bd3c28369921c0392b3809e7de46ec5
HEAD_REF master
PATCHES
fix-install.patch
)
2021-11-18 04:33:09 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
2021-11-18 04:33:09 +08:00
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_copy_tools(TOOL_NAMES faad_cli AUTO_CLEAN)
else()
vcpkg_copy_tools(TOOL_NAMES faad AUTO_CLEAN)
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")