aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cpp-exiftool
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/cpp-exiftool')
-rw-r--r--vcpkg/ports/cpp-exiftool/CMakeLists.txt21
-rw-r--r--vcpkg/ports/cpp-exiftool/portfile.cmake14
-rw-r--r--vcpkg/ports/cpp-exiftool/vcpkg.json18
3 files changed, 53 insertions, 0 deletions
diff --git a/vcpkg/ports/cpp-exiftool/CMakeLists.txt b/vcpkg/ports/cpp-exiftool/CMakeLists.txt
new file mode 100644
index 0000000..491baef
--- /dev/null
+++ b/vcpkg/ports/cpp-exiftool/CMakeLists.txt
@@ -0,0 +1,21 @@
+cmake_minimum_required(VERSION 3.21)
+project(cpp-exiftool LANGUAGES CXX)
+
+file(GLOB src_files "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
+file(GLOB public_headers "${CMAKE_CURRENT_SOURCE_DIR}/inc/*.h")
+add_library(cpp-exiftool ${src_files})
+target_include_directories(cpp-exiftool
+ PUBLIC
+ "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>"
+ "$<INSTALL_INTERFACE:include>")
+set_target_properties(cpp-exiftool PROPERTIES PUBLIC_HEADER "${public_headers}")
+
+install(TARGETS cpp-exiftool
+ EXPORT cpp-exiftool-targets
+ LIBRARY DESTINATION lib
+ PUBLIC_HEADER DESTINATION include/cpp-exiftool)
+
+install(EXPORT cpp-exiftool-targets
+ FILE unofficial-cpp-exiftool-config.cmake
+ DESTINATION share/unofficial-cpp-exiftool
+ NAMESPACE unofficial::cpp-exiftool::)
diff --git a/vcpkg/ports/cpp-exiftool/portfile.cmake b/vcpkg/ports/cpp-exiftool/portfile.cmake
new file mode 100644
index 0000000..4ca5b24
--- /dev/null
+++ b/vcpkg/ports/cpp-exiftool/portfile.cmake
@@ -0,0 +1,14 @@
+vcpkg_download_distfile(
+ ARCHIVE
+ URLS "https://exiftool.org/cpp_exiftool/cpp_exiftool.tar.gz"
+ FILENAME "cpp_exiftool-${VERSION}.tar.gz"
+ SHA512 d362e622deeb2a04aa6d694e0c8ffabf610af30cb30c29430811e77b0faa86177fe3409ec228ead9af998a99eb6d3ffa601652c6128a96f20eb60a03e0f64292
+)
+vcpkg_extract_source_archive(SOURCE_PATH ARCHIVE "${ARCHIVE}")
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-cpp-exiftool)
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/README")
diff --git a/vcpkg/ports/cpp-exiftool/vcpkg.json b/vcpkg/ports/cpp-exiftool/vcpkg.json
new file mode 100644
index 0000000..24676ca
--- /dev/null
+++ b/vcpkg/ports/cpp-exiftool/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "cpp-exiftool",
+ "version": "1.8.0",
+ "description": "The C++ interface for exiftool provides the source code for a set of objects that allow C++ applications to easily leverage the full power of the exiftool application through a simple interface. This interface handles all the hard work of launching, monitoring, controlling, and communicating with an external exiftool process.",
+ "homepage": "https://exiftool.org/cpp_exiftool/",
+ "license": null,
+ "supports": "linux",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}