aboutsummaryrefslogtreecommitdiff
path: root/ports/libraw
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2019-11-22 09:47:40 -0800
committerGitHub <noreply@github.com>2019-11-22 09:47:40 -0800
commit45f4b820e5743b89bca3508ba2028cdd5d8bbd17 (patch)
treef874a8c4a7392309bdbb86447288597ec0a4a281 /ports/libraw
parent62d67d3bf8eeff1afa8009041fd08b8822676b7b (diff)
parent8831e8f25f1ff6546ee4a5291b91d599421637b3 (diff)
downloadvcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.tar.gz
vcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.zip
Merge branch 'master' into vcpkg_nuget
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