vcpkg/ports/libmagic/vcpkg.json
Theodore Tsirpanis 109d286a0c
[libmagic] Explicitly toggle features. (#37459)
Libmagic supports some compression libraries that by default are enabled
unpredictably, if they are found in the system. This PR adds features to
the port that enable support for these compression libraries, and makes
sure the features are disabled if not specified.

Validated by building the port with all features enabled on Windows and
Linux, and importing it in a project with static library linkage on
Windows.
2024-03-18 14:29:10 -07:00

53 lines
994 B
JSON

{
"name": "libmagic",
"version": "5.45",
"port-version": 2,
"description": "This library can be used to classify files according to magic number tests.",
"homepage": "https://github.com/file/file",
"license": "BSD-2-Clause",
"dependencies": [
{
"name": "dirent",
"platform": "windows"
},
{
"name": "getopt",
"platform": "windows"
},
{
"name": "libmagic",
"host": true
},
{
"name": "tre",
"platform": "windows | mingw"
}
],
"features": {
"bzip2": {
"description": "Enable bzip2 support",
"dependencies": [
"bzip2"
]
},
"lzma": {
"description": "Enable lzma support",
"dependencies": [
"liblzma"
]
},
"zlib": {
"description": "Enable zlib support",
"dependencies": [
"zlib"
]
},
"zstd": {
"description": "Enable zstd support",
"dependencies": [
"zstd"
]
}
}
}