vcpkg/ports/libexif/portfile.cmake

34 lines
932 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libexif/libexif
REF "v${VERSION}"
SHA512 eac1b5220ca0e02370837a0d78a6d38e91c5afa0956d4196b26a8d2a8a2c5dea18d58c0e473285f278653c3863923241651b7dff4d007cc46385eb29ea188330
HEAD_REF master
PATCHES
fix-ssize.patch
2017-10-02 07:06:12 +08:00
)
vcpkg_list(SET options)
if("nls" IN_LIST FEATURES)
vcpkg_list(APPEND options "--enable-nls")
else()
vcpkg_list(APPEND options "--disable-nls")
endif()
2017-10-02 07:06:12 +08:00
vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
OPTIONS
${options}
--enable-internal-docs=no
--enable-ship-binaries=no
2017-10-02 07:06:12 +08:00
)
vcpkg_install_make()
vcpkg_fixup_pkgconfig()
2017-10-02 07:06:12 +08:00
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")
2017-10-02 07:06:12 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")