aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2017-10-01 23:38:33 -0700
committerGitHub <noreply@github.com>2017-10-01 23:38:33 -0700
commit0ecd97a1105db5ab5e29ff273c8b2401e71290cf (patch)
treeae4bbaa5b21a800f8ef2edc644fe30591809a5bc
parent15288c7aed2326886f179c0b1ca8de7768101238 (diff)
parente67007e632a7406e5e8ec5619aa1cec4947fffb4 (diff)
downloadvcpkg-0ecd97a1105db5ab5e29ff273c8b2401e71290cf.tar.gz
vcpkg-0ecd97a1105db5ab5e29ff273c8b2401e71290cf.zip
Merge pull request #1892 from jasjuang/exiv2
new port: Exiv2
-rw-r--r--ports/exiv2/CONTROL4
-rw-r--r--ports/exiv2/portfile.cmake29
2 files changed, 33 insertions, 0 deletions
diff --git a/ports/exiv2/CONTROL b/ports/exiv2/CONTROL
new file mode 100644
index 000000000..4db8e73ee
--- /dev/null
+++ b/ports/exiv2/CONTROL
@@ -0,0 +1,4 @@
+Source: exiv2
+Version: 4f4add2cdcbe73af7098122a509dff0739d15908
+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
new file mode 100644
index 000000000..f9aff3e93
--- /dev/null
+++ b/ports/exiv2/portfile.cmake
@@ -0,0 +1,29 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Exiv2/exiv2
+ REF 4f4add2cdcbe73af7098122a509dff0739d15908
+ SHA512 32207cfd7ac932942562e062e851d7ba9be5586f33c2d924fb2a908a78f0c53f0d2973108c49bc865a3e7697a04a4b65d991441e4b89baca82b51b61affd4fa3
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+)
+
+vcpkg_install_cmake()
+
+vcpkg_copy_pdbs()
+
+# Clean
+file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe)
+file(GLOB DEBUG_EXE ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
+file(REMOVE ${EXE})
+file(REMOVE ${DEBUG_EXE})
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+
+# 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)