[easyexif] create a new port (#27118)

* [easyexif] create a new port

* [easyexif] update versions JSON

* [easyexif] misc changes

* [easyexif] fix mistype in install(TARGETS)
This commit is contained in:
Park DongHa 2022-10-07 03:52:26 +09:00 committed by GitHub
parent b80c59a829
commit e2667a41fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 3.11)
project(easyexif CXX)
include(GNUInstallDirs)
add_library(easyexif STATIC
exif.h
exif.cpp
)
set_target_properties(easyexif
PROPERTIES
CXX_STANDARD 11
PUBLIC_HEADER exif.h
)
install(TARGETS easyexif
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}) # share/easyexif

View File

@ -0,0 +1,20 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mayanklahiri/easyexif
REF cd994a3b6009bc3c1f84062e96bd7f5ad16e85f6
SHA512 f421ff0900ae456165917106caa1c222ed8005706edc62983ad1ea72baffdfc99c581a015cf00132c7255ac32e64ec24bd8d65c9b32e9f4d05809baf7f37516d
HEAD_REF master
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
vcpkg_cmake_install()
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
"${CURRENT_PACKAGES_DIR}/share"
)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

13
ports/easyexif/vcpkg.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "easyexif",
"version-date": "2022-10-07",
"description": "Tiny ISO-compliant C++ EXIF parsing library, third-party dependency free",
"homepage": "https://github.com/mayanklahiri/easyexif",
"license": null,
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -2072,6 +2072,10 @@
"baseline": "0.3",
"port-version": 1
},
"easyexif": {
"baseline": "2022-10-07",
"port-version": 0
},
"easyhook": {
"baseline": "2.7.7097.0",
"port-version": 5

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "56500b421a6b0129d43c562af4ebe0bccf8ca6de",
"version-date": "2022-10-07",
"port-version": 0
}
]
}