vcpkg/ports/libmariadb/vcpkg.json
jim wang c1de34e406
[libmariadb] Fix the issue of iconv search failure under Linux (#39136)
Fix one of https://github.com/microsoft/vcpkg/issues/32398 issue.
```
CMake Error at mariadb_config/CMakeLists.txt:51 (GET_LIB_NAME):
  GET_LIB_NAME Function invoked with incorrect arguments for function named:
  GET_LIB_NAME
```
Fixed the issue that the search for iconv in Linux did not obtain the
value of the macro variable Iconv_LIBRARIES, causing the function input
parameter check to fail.

- [X] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] ~~SHA512s are updated for each updated download.~~
- [ ] ~~The "supports" clause reflects platforms that may be fixed by
this new version.~~
- [ ] ~~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~~
- [ ] ~~Any patches that are no longer applied are deleted from the
port's directory.~~
- [X] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [X] Only one version is added to each modified port's versions file.

Usage test pass with following triplets:

```
x64-linux
```
2024-06-05 23:59:09 -07:00

75 lines
1.7 KiB
JSON

{
"name": "libmariadb",
"version-semver": "3.3.1",
"port-version": 4,
"description": "MariaDB Connector/C is used to connect C/C++ applications to MariaDB and MySQL databases",
"homepage": "https://github.com/MariaDB/mariadb-connector-c",
"license": "LGPL-2.1-or-later",
"supports": "!uwp & !xbox",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"zlib"
],
"default-features": [
"ssl"
],
"features": {
"iconv": {
"description": "Enables character set conversion",
"dependencies": [
"libiconv"
]
},
"mariadbclient": {
"description": "Build the static mariadbclient library"
},
"openssl": {
"description": "SSL support (OpenSSL)",
"dependencies": [
"openssl"
]
},
"schannel": {
"description": "SSL support (Secure Channel)",
"supports": "windows | mingw"
},
"ssl": {
"description": "Default SSL backend",
"dependencies": [
{
"name": "libmariadb",
"default-features": false,
"features": [
"schannel"
],
"platform": "windows | mingw"
},
{
"name": "libmariadb",
"default-features": false,
"features": [
"openssl"
],
"platform": "!windows & !mingw"
}
]
},
"zlib": {
"description": "Obsolete. zlib is always used. This feature is left for compatibility."
},
"zstd": {
"description": "Build zstd compression plugin.",
"dependencies": [
"zstd"
]
}
}
}