aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcontre <rpastric@contre.us>2019-07-22 10:33:26 -0700
committerVictor Romero <romerosanchezv@gmail.com>2019-07-22 10:33:26 -0700
commita97f42cf0b38e6bb207a9d8251cddf69a168f958 (patch)
tree8538807602721116a0735185ee654f954e95752a
parentb6948609dd6f6700eeb5eea041035c72dd0c55f0 (diff)
downloadvcpkg-a97f42cf0b38e6bb207a9d8251cddf69a168f958.tar.gz
vcpkg-a97f42cf0b38e6bb207a9d8251cddf69a168f958.zip
[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
-rw-r--r--ports/libexif/CONTROL4
-rw-r--r--ports/libexif/add-missing-_stdint-h.patch7
-rw-r--r--ports/libexif/portfile.cmake15
3 files changed, 16 insertions, 10 deletions
diff --git a/ports/libexif/CONTROL b/ports/libexif/CONTROL
index d99eb31b9..e37d0960e 100644
--- a/ports/libexif/CONTROL
+++ b/ports/libexif/CONTROL
@@ -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
diff --git a/ports/libexif/add-missing-_stdint-h.patch b/ports/libexif/add-missing-_stdint-h.patch
new file mode 100644
index 000000000..1c4c95d1c
--- /dev/null
+++ b/ports/libexif/add-missing-_stdint-h.patch
@@ -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>
diff --git a/ports/libexif/portfile.cmake b/ports/libexif/portfile.cmake
index 0442d8c15..11f7080d1 100644
--- a/ports/libexif/portfile.cmake
+++ b/ports/libexif/portfile.cmake
@@ -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})