aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/elfio
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/elfio')
-rw-r--r--vcpkg/ports/elfio/portfile.cmake18
-rw-r--r--vcpkg/ports/elfio/vcpkg.json18
2 files changed, 36 insertions, 0 deletions
diff --git a/vcpkg/ports/elfio/portfile.cmake b/vcpkg/ports/elfio/portfile.cmake
new file mode 100644
index 0000000..2fcd028
--- /dev/null
+++ b/vcpkg/ports/elfio/portfile.cmake
@@ -0,0 +1,18 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO serge1/ELFIO
+ REF "Release_${VERSION}"
+ SHA512 f5c8bc6cc98da845f6c011fc85b98476935c5d20d72b36bff5ad2472434494115ee7c06cfa37152c528e5931c39fe3cc084bfc8e6952b2c3e8f24b8601ae212f
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS -DELFIO_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH share/${PORT}/cmake)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/vcpkg/ports/elfio/vcpkg.json b/vcpkg/ports/elfio/vcpkg.json
new file mode 100644
index 0000000..887aa01
--- /dev/null
+++ b/vcpkg/ports/elfio/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "elfio",
+ "version": "3.12",
+ "port-version": 1,
+ "description": "A header-only C++ library intended for reading and generating files in the ELF binary format.",
+ "homepage": "https://github.com/serge1/ELFIO",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}