aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorcDc <cdc.seacave@gmail.com>2017-12-09 10:24:19 +0200
committerRobert Schumacher <roschuma@microsoft.com>2017-12-09 00:24:19 -0800
commit19860a093370c5a57bd8c622e5e47177193c7c8e (patch)
tree349768a90973656d26f375c503ff38364c9dc50f /ports
parent940b33e52dfcedfd0fc7d6bd4375e4ad846e444a (diff)
downloadvcpkg-19860a093370c5a57bd8c622e5e47177193c7c8e.tar.gz
vcpkg-19860a093370c5a57bd8c622e5e47177193c7c8e.zip
[tinyexif] add TinyEXIF library (#2221)
Diffstat (limited to 'ports')
-rw-r--r--ports/tinyexif/CONTROL4
-rw-r--r--ports/tinyexif/portfile.cmake30
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/tinyexif/CONTROL b/ports/tinyexif/CONTROL
new file mode 100644
index 000000000..9f86c85d5
--- /dev/null
+++ b/ports/tinyexif/CONTROL
@@ -0,0 +1,4 @@
+Source: tinyexif
+Version: 1.0.0-1
+Build-Depends: tinyxml2
+Description: tiny ISO-compliant C++ EXIF and XMP parsing library for JPEG images
diff --git a/ports/tinyexif/portfile.cmake b/ports/tinyexif/portfile.cmake
new file mode 100644
index 000000000..c69938a0d
--- /dev/null
+++ b/ports/tinyexif/portfile.cmake
@@ -0,0 +1,30 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO cdcseacave/TinyEXIF
+ REF 1.0.0
+ SHA512 530b3e165bc51fa5a1bb29ea1f8cb5d7100a995347622d50375fdb5fab36139e9474d97ae2e3d54ac2886c2da1fe7138ed15710277410b6a6504ce05537fff28
+ HEAD_REF master
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
+ -DBUILD_DEMO=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/tinyexif")
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyexif RENAME copyright)