mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 17:09:03 +08:00
ceca66bec0
This package has own gettext autoconf hacks, so providing gettext[core] m4 files and autopoint for autoreconf cannot be avoided.
34 lines
932 B
CMake
34 lines
932 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libexif/libexif
|
|
REF "v${VERSION}"
|
|
SHA512 eac1b5220ca0e02370837a0d78a6d38e91c5afa0956d4196b26a8d2a8a2c5dea18d58c0e473285f278653c3863923241651b7dff4d007cc46385eb29ea188330
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-ssize.patch
|
|
)
|
|
|
|
vcpkg_list(SET options)
|
|
if("nls" IN_LIST FEATURES)
|
|
vcpkg_list(APPEND options "--enable-nls")
|
|
else()
|
|
vcpkg_list(APPEND options "--disable-nls")
|
|
endif()
|
|
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
AUTOCONFIG
|
|
OPTIONS
|
|
${options}
|
|
--enable-internal-docs=no
|
|
--enable-ship-binaries=no
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/unofficial-libexif-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|