[muparser] Fix usage (#22975)

* [muparser] Fix usage

* version

* Delete new feature

* version

* Remove FEATURE_OPTIONS

* version
This commit is contained in:
Jack·Boos·Yu 2022-02-09 13:27:01 +08:00 committed by GitHub
parent 439bf40945
commit e2c7976c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 7 deletions

View File

@ -7,18 +7,28 @@ vcpkg_from_github(
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DENABLE_SAMPLES=OFF
-DENABLE_OPENMP=OFF
-DENABLE_WIDE_CHAR=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/muparser")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
vcpkg_fixup_pkgconfig()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserDef.h" "#if defined(_UNICODE)" "#if 0")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserDLL.h" "#ifndef _UNICODE" "#if 1")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserFixes.h" "#ifndef MUPARSER_STATIC" "#if 0")
else()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserFixes.h" "#ifndef MUPARSER_STATIC" "#if 1")
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{
"name": "muparser",
"version": "2.3.3",
"port-version": 1,
"port-version": 2,
"description": "Fast math parser library",
"homepage": "https://github.com/beltoforion/muparser",
"license": "BSD-2-Clause",

View File

@ -4630,7 +4630,7 @@
},
"muparser": {
"baseline": "2.3.3",
"port-version": 1
"port-version": 2
},
"murmurhash": {
"baseline": "2016-01-09",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6987fcdb2ed52f7891489a2c97bdc92b64c46a6f",
"version": "2.3.3",
"port-version": 2
},
{
"git-tree": "6b93a7e6250aaa93e20c752426eb4fb1bcb08411",
"version": "2.3.3",