aboutsummaryrefslogtreecommitdiff
path: root/scripts/cmake/vcpkg_find_acquire_program.cmake
diff options
context:
space:
mode:
authorJoakim L. Gilje <jgilje@jgilje.net>2020-11-23 18:43:23 +0100
committerGitHub <noreply@github.com>2020-11-23 09:43:23 -0800
commitd9633d939c665e527f8bda22669f543f03540b17 (patch)
tree0cfe4b406fa116b4d962952f93781a3d65840232 /scripts/cmake/vcpkg_find_acquire_program.cmake
parent42456b785a4508386f080ae8fad2642e056b747d (diff)
downloadvcpkg-d9633d939c665e527f8bda22669f543f03540b17.tar.gz
vcpkg-d9633d939c665e527f8bda22669f543f03540b17.zip
[vcpkg] initial openbsd (community) support (#14549)
* initial openbsd support in vcpkg * after clang-format * hardcoded in the preferred compiler for openbsd in bootstrap scipt (thanks @tormfinn) * Fetch a patched pkg-config because openbsd pkg-config lacks {fcfiledir} * fixes from review feedback * corrected hash for pkg-config.openbsd * re-added missing endif() * regenerate docs * Update scripts/cmake/vcpkg_configure_meson.cmake Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Diffstat (limited to 'scripts/cmake/vcpkg_find_acquire_program.cmake')
-rw-r--r--scripts/cmake/vcpkg_find_acquire_program.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_find_acquire_program.cmake b/scripts/cmake/vcpkg_find_acquire_program.cmake
index 875ba1f14..970a41d7d 100644
--- a/scripts/cmake/vcpkg_find_acquire_program.cmake
+++ b/scripts/cmake/vcpkg_find_acquire_program.cmake
@@ -423,6 +423,17 @@ function(vcpkg_find_acquire_program VAR)
debug_message(STATUS "PKG_CONFIG found in ENV! Using $ENV{PKG_CONFIG}")
set(PKGCONFIG $ENV{PKG_CONFIG} PARENT_SCOPE)
return()
+ elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "OpenBSD")
+ # As of 6.8, the OpenBSD specific pkg-config doesn't support {pcfiledir}
+ set(_vfa_SUPPORTED ON)
+ set(_vfa_RENAME "pkg-config")
+ set(PKGCONFIG_VERSION 0.29.2.1)
+ set(NOEXTRACT ON)
+ set(ARCHIVE "pkg-config.openbsd")
+ set(SUBDIR "openbsd")
+ set(URL "https://raw.githubusercontent.com/jgilje/pkg-config-openbsd/master/pkg-config")
+ set(HASH b7ec9017b445e00ae1377e36e774cf3f5194ab262595840b449832707d11e443a102675f66d8b7e8b2e2f28cebd6e256835507b1e0c69644cc9febab8285080b)
+ set(VERSION_CMD --version)
elseif(CMAKE_HOST_WIN32)
if(NOT EXISTS "${PKGCONFIG}")
set(VERSION 0.29.2-1)