aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libmaxminddb
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/libmaxminddb
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libmaxminddb')
-rw-r--r--vcpkg/ports/libmaxminddb/portfile.cmake28
-rw-r--r--vcpkg/ports/libmaxminddb/vcpkg.json17
2 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/libmaxminddb/portfile.cmake b/vcpkg/ports/libmaxminddb/portfile.cmake
new file mode 100644
index 0000000..dcaf6be
--- /dev/null
+++ b/vcpkg/ports/libmaxminddb/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO maxmind/libmaxminddb
+ REF "${VERSION}"
+ SHA512 b5fe1eeffca697a7163fd3e66ae489eb144f5c35e601fcd29b37ec7996f7a485da6cd06431e452050731e09e889e96bc58e32b06c40fbef30f7e79781e492d85
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+ -DCMAKE_SHARED_LIBRARY_PREFIX=lib
+ -DCMAKE_STATIC_LIBRARY_PREFIX=lib
+ OPTIONS_DEBUG
+ -DCMAKE_DEBUG_POSTFIX=d
+)
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+vcpkg_fixup_pkgconfig()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/maxminddb PACKAGE_NAME maxminddb)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+# Handle copyright
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/libmaxminddb/vcpkg.json b/vcpkg/ports/libmaxminddb/vcpkg.json
new file mode 100644
index 0000000..b648895
--- /dev/null
+++ b/vcpkg/ports/libmaxminddb/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "libmaxminddb",
+ "version": "1.12.2",
+ "description": "C library for the MaxMind DB file format",
+ "homepage": "https://github.com/maxmind/libmaxminddb",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}