vcpkg/ports/libexif/portfile.cmake
Frank 24ae27eb23
[libexif] Change to the official build system (#32114)
* [vtk] Fix the dependency curl of proj

* version

* [libexif] Change to the official build system

* add port-version

* version

* revert

* libexif

* version

* default feature nls

* version

* update

* format

* version

* revert

* vdb

* version
2023-12-01 01:57:19 -08:00

36 lines
982 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()
set(ENV{AUTOPOINT} true) # true, the program
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")