aboutsummaryrefslogtreecommitdiff
path: root/ports/exiv2
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-02-23 22:32:02 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-02-23 22:32:02 -0800
commit51f6cf724c7534397bf13cf58fb9842ffde9c7ca (patch)
tree09692cd5205dbe13db6f75ba4263f9e7ea0a7ad8 /ports/exiv2
parentfee4acc543e3801eed474495061875d0484e0bd3 (diff)
downloadvcpkg-51f6cf724c7534397bf13cf58fb9842ffde9c7ca.tar.gz
vcpkg-51f6cf724c7534397bf13cf58fb9842ffde9c7ca.zip
[exiv2] Fix static builds. [gts] Add early detection for CRT linkage.
Diffstat (limited to 'ports/exiv2')
-rw-r--r--ports/exiv2/CONTROL4
-rw-r--r--ports/exiv2/portfile.cmake5
2 files changed, 7 insertions, 2 deletions
diff --git a/ports/exiv2/CONTROL b/ports/exiv2/CONTROL
index 15d24a868..eb5e4c39a 100644
--- a/ports/exiv2/CONTROL
+++ b/ports/exiv2/CONTROL
@@ -1,4 +1,4 @@
Source: exiv2
-Version: 8f5b795eaa4bc414d2d6041c1dbd1a7f7bf1fc99
-Build-Depends:zlib, expat
+Version: 8f5b795eaa4bc414d2d6041c1dbd1a7f7bf1fc99-1
+Build-Depends: zlib, expat
Description: Image metadata library and tools http://www.exiv2.org
diff --git a/ports/exiv2/portfile.cmake b/ports/exiv2/portfile.cmake
index fb44d3e94..93d16690c 100644
--- a/ports/exiv2/portfile.cmake
+++ b/ports/exiv2/portfile.cmake
@@ -10,6 +10,7 @@ vcpkg_from_github(
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
)
vcpkg_install_cmake()
@@ -26,6 +27,10 @@ file(REMOVE ${DEBUG_EXE})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+endif()
+
# Handle copyright
file(COPY ${SOURCE_PATH}/ABOUT-NLS DESTINATION ${CURRENT_PACKAGES_DIR}/share/exiv2)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/exiv2/ABOUT-NLS ${CURRENT_PACKAGES_DIR}/share/exiv2/copyright)