2023-12-01 17:57:19 +08:00
|
|
|
|
2019-07-23 01:33:26 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libexif/libexif
|
2023-12-01 17:57:19 +08:00
|
|
|
REF "v${VERSION}"
|
2023-01-27 11:14:51 +08:00
|
|
|
SHA512 eac1b5220ca0e02370837a0d78a6d38e91c5afa0956d4196b26a8d2a8a2c5dea18d58c0e473285f278653c3863923241651b7dff4d007cc46385eb29ea188330
|
2019-07-23 01:33:26 +08:00
|
|
|
HEAD_REF master
|
2023-01-27 11:14:51 +08:00
|
|
|
PATCHES
|
2023-12-01 17:57:19 +08:00
|
|
|
fix-ssize.patch
|
2017-10-02 07:06:12 +08:00
|
|
|
)
|
|
|
|
|
2023-12-01 17:57:19 +08:00
|
|
|
vcpkg_list(SET options)
|
|
|
|
if("nls" IN_LIST FEATURES)
|
|
|
|
vcpkg_list(APPEND options "--enable-nls")
|
|
|
|
else()
|
|
|
|
set(ENV{AUTOPOINT} true) # true, the program
|
|
|
|
vcpkg_list(APPEND options "--disable-nls")
|
|
|
|
endif()
|
2017-10-02 07:06:12 +08:00
|
|
|
|
2023-12-01 17:57:19 +08:00
|
|
|
vcpkg_configure_make(
|
2023-01-27 11:14:51 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-12-01 17:57:19 +08:00
|
|
|
AUTOCONFIG
|
|
|
|
OPTIONS
|
|
|
|
${options}
|
|
|
|
--enable-internal-docs=no
|
|
|
|
--enable-ship-binaries=no
|
2017-10-02 07:06:12 +08:00
|
|
|
)
|
|
|
|
|
2023-12-01 17:57:19 +08:00
|
|
|
vcpkg_install_make()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-10-02 07:06:12 +08:00
|
|
|
|
2023-12-01 17:57:19 +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
|
|
|
|
2023-12-01 17:57:19 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|