aboutsummaryrefslogtreecommitdiff
path: root/ports/libraw
diff options
context:
space:
mode:
authorStefano Sinigardi <stesinigardi@hotmail.com>2019-10-07 19:35:13 +0200
committerCurtis J Bezault <curtbezault@gmail.com>2019-10-07 10:35:13 -0700
commit726c11148105a97aef39bec024fdb7c140b1b154 (patch)
tree26bd2aee0c13a8351b259cc4ffffaf0efededb4e /ports/libraw
parente86ff2cc54bda9e9ee322ab69141e7113d5c40a9 (diff)
downloadvcpkg-726c11148105a97aef39bec024fdb7c140b1b154.tar.gz
vcpkg-726c11148105a97aef39bec024fdb7c140b1b154.zip
[vcpkg] fatal_error when patch fails to apply (#8087)
vcpkg will now fail on failure to apply patches except when using `--head`.
Diffstat (limited to 'ports/libraw')
-rw-r--r--ports/libraw/CONTROL2
-rw-r--r--ports/libraw/portfile.cmake32
2 files changed, 10 insertions, 24 deletions
diff --git a/ports/libraw/CONTROL b/ports/libraw/CONTROL
index 1d0c17203..20b415a47 100644
--- a/ports/libraw/CONTROL
+++ b/ports/libraw/CONTROL
@@ -1,5 +1,5 @@
Source: libraw
-Version: 201903-1
+Version: 201903-2
Build-Depends: lcms, jasper
Homepage: https://www.libraw.org
Description: raw image decoder library
diff --git a/ports/libraw/portfile.cmake b/ports/libraw/portfile.cmake
index d834b80e9..91cf2d736 100644
--- a/ports/libraw/portfile.cmake
+++ b/ports/libraw/portfile.cmake
@@ -1,12 +1,5 @@
include(vcpkg_common_functions)
-# Update to latest LibRaw-201903 snapshot at d4f05dd1b9b2d44c8f7e82043cbad3c724db2416
-# LibRaw publishes:
-# - snapshots every 5-7 months (in master branch)
-# - releases (0.18, 0.19, etc.) every 1-1.5 years.
-# - security hotfixes for releases (0.19.1, 0.19.2, etc.)
-# Hence, from user point of view, it is practical to refer to the latest snapshot,
-# instead of the latest release.
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO LibRaw/LibRaw
@@ -15,27 +8,20 @@ vcpkg_from_github(
HEAD_REF master
)
-set(LIBRAW_CMAKE_COMMIT "a71f3b83ee3dccd7be32f9a2f410df4d9bdbde0a")
-set(LIBRAW_CMAKE_SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/LibRaw-cmake-${LIBRAW_CMAKE_COMMIT})
-vcpkg_download_distfile(CMAKE_BUILD_ARCHIVE
- URLS "https://github.com/LibRaw/LibRaw-cmake/archive/${LIBRAW_CMAKE_COMMIT}.zip"
- FILENAME "LibRaw-cmake-${LIBRAW_CMAKE_COMMIT}"
- SHA512 54216e6760e2339dc3bf4b4be533a13160047cabfc033a06da31f2226c43fc93eaea9672af83589e346ce9231c1a57910ac5e800759e692fe2cd9d53b7fba0c6
+vcpkg_from_github(
+ OUT_SOURCE_PATH LIBRAW_CMAKE_SOURCE_PATH
+ REPO LibRaw/LibRaw-cmake
+ REF a71f3b83ee3dccd7be32f9a2f410df4d9bdbde0a
+ SHA512 607e6f76bcb57534da4f0c864b7a421f1ed49244468b1b52abe77f65aa599cae80715520b3a951294321b812deffd4f163757c9949f337571aa54f414ccc58a5
+ HEAD_REF master
+ PATCHES
+ findlibraw_debug_fix.patch
+ lcms2_debug_fix.patch
)
-vcpkg_extract_source_archive(${CMAKE_BUILD_ARCHIVE} ${CURRENT_BUILDTREES_DIR}/src)
-
-# Copy the CMake build system from the external repo
file(COPY ${LIBRAW_CMAKE_SOURCE_PATH}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY ${LIBRAW_CMAKE_SOURCE_PATH}/cmake DESTINATION ${SOURCE_PATH})
-vcpkg_apply_patches(
- SOURCE_PATH ${SOURCE_PATH}
- PATCHES
- ${CMAKE_CURRENT_LIST_DIR}/findlibraw_debug_fix.patch
- ${CMAKE_CURRENT_LIST_DIR}/lcms2_debug_fix.patch
-)
-
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA