[Libexif] update download location (#7344)

* [libexif] update download location

* [libexif] Update homepage & switch to vcpkg_from_github

* [libexif] add missing _stdint.h file via patch mechanism

* [libexif] actually include modifications to tell it to use the patch file
This commit is contained in:
contre 2019-07-22 10:33:26 -07:00 committed by Victor Romero
parent b6948609dd
commit a97f42cf0b
3 changed files with 16 additions and 10 deletions

View File

@ -1,4 +1,4 @@
Source: libexif
Version: 0.6.21-1
Homepage: https://sourceforge.net/projects/libexif/
Version: 0.6.21-2
Homepage: https://libexif.github.io/
Description: a library for parsing, editing, and saving EXIF data

View File

@ -0,0 +1,7 @@
diff --git a/libexif/_stdint.h b/libexif/_stdint.h
new file mode 100644
index 0000000..9a6118b
--- /dev/null
+++ b/libexif/_stdint.h
@@ -0,0 +1 @@
+#include <stdint.h>

View File

@ -4,15 +4,14 @@ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message(FATAL_ERROR "libexif currently only supports being built for desktop")
endif()
set(LIBEXIF_VERSION 0.6.21)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libexif-${LIBEXIF_VERSION})
vcpkg_download_distfile(ARCHIVE
URLS "https://freefr.dl.sourceforge.net/project/libexif/libexif/${LIBEXIF_VERSION}/libexif-${LIBEXIF_VERSION}.tar.bz2"
FILENAME "libexif-${LIBEXIF_VERSION}.tar.bz2"
SHA512 4e0fe2abe85d1c95b41cb3abe1f6333dc3a9eb69dba106a674a78d74a4d5b9c5a19647118fa1cc2d72b98a29853394f1519eda9e2889eb28d3be26b21c7cfc35
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libexif/libexif
REF libexif-0_6_21-release
SHA512 aecba54eb9c8b4ce29d11985a547074b381d72027b563c7aef865852b661a6f18a258c748fca6b16198344f4a86568b658071ac95cc1d332f576c6160e1f257d
HEAD_REF master
PATCHES add-missing-_stdint-h.patch
)
vcpkg_extract_source_archive(${ARCHIVE})
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.cmake DESTINATION ${SOURCE_PATH})