aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/argtable3
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/argtable3
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/argtable3')
-rw-r--r--vcpkg/ports/argtable3/portfile.cmake39
-rw-r--r--vcpkg/ports/argtable3/vcpkg.json17
2 files changed, 56 insertions, 0 deletions
diff --git a/vcpkg/ports/argtable3/portfile.cmake b/vcpkg/ports/argtable3/portfile.cmake
new file mode 100644
index 0000000..1b9d074
--- /dev/null
+++ b/vcpkg/ports/argtable3/portfile.cmake
@@ -0,0 +1,39 @@
+# We cannot use vcpkg_from_github to download the source archive because the
+# auto-generated GitHub archive does not include the `version.tag` file. This
+# file is required to generate argtable3.pc with the correct version info.
+# To resolve this, we prepare the source archive manually and use
+# vcpkg_download_distfile to download it.
+
+vcpkg_download_distfile(
+ ARCHIVE
+ URLS "https://github.com/argtable/argtable3/releases/download/v${VERSION}/argtable-v${VERSION}.zip"
+ FILENAME "argtable-v${VERSION}.zip"
+ SHA512 cdcb67f6d56ef4a02254cd210c035d2b037bd2844a3b14c261500eecd307ca9ab40c6cfa753aa32d4873773ddadc708966fb0772478e575d134399bd4743869f
+)
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DARGTABLE3_ENABLE_CONAN=OFF
+ -DARGTABLE3_ENABLE_TESTS=OFF
+ -DARGTABLE3_ENABLE_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_pdbs()
+
+if(EXISTS "${CURRENT_PACKAGES_DIR}/cmake")
+ vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
+elseif(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT}")
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+endif()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/argtable3/vcpkg.json b/vcpkg/ports/argtable3/vcpkg.json
new file mode 100644
index 0000000..546ab9b
--- /dev/null
+++ b/vcpkg/ports/argtable3/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "argtable3",
+ "version": "3.3.1",
+ "description": "A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options",
+ "homepage": "https://www.argtable.org/",
+ "license": "BSD-3-Clause AND TCL",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}