mirror of https://github.com/microsoft/vcpkg.git
38 lines
983 B
CMake
38 lines
983 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO samtools/htscodecs
|
|
REF "v${VERSION}"
|
|
SHA512 79393d6e38677a5538c8e8a4d0077012368476b87fc729acfb1f2e5737d0bd0dd0873e86b0090a9ac5227113ff834cfb30a264afd524038fcef6ba91128495eb
|
|
HEAD_REF master
|
|
PATCHES
|
|
0001-no-tests.patch # https://github.com/samtools/htscodecs/pull/120
|
|
configure_bz2.patch
|
|
)
|
|
|
|
set(FEATURE_OPTIONS "")
|
|
|
|
macro(enable_feature feature switch)
|
|
if("${feature}" IN_LIST FEATURES)
|
|
list(APPEND FEATURE_OPTIONS "--enable-${switch}")
|
|
else()
|
|
list(APPEND FEATURE_OPTIONS "--disable-${switch}")
|
|
endif()
|
|
endmacro()
|
|
|
|
enable_feature("bzip2" "bz2")
|
|
|
|
vcpkg_make_configure(
|
|
AUTORECONF
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_make_install()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|