mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 11:20:25 +08:00
109d286a0c
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.
53 lines
994 B
JSON
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"
|
|
]
|
|
}
|
|
}
|
|
}
|