mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 01:01:37 +08:00
dd5050046b
- [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] 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.
39 lines
1.3 KiB
CMake
39 lines
1.3 KiB
CMake
vcpkg_from_sourceforge(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO qwt/qwt
|
|
REF ${VERSION}
|
|
FILENAME "qwt-${VERSION}.zip"
|
|
SHA512 4008c3e4dace0f18e572b473a51a293bb896abbd62b9c5f0a92734b2121923d2e2cbf67c997b84570a13bf4fdd7669b56497c82fbae35049ed856b2f0a65e475
|
|
PATCHES
|
|
config.patch
|
|
fix_dll_install.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" IS_DYNAMIC)
|
|
set(OPTIONS "")
|
|
if(IS_DYNAMIC)
|
|
list(APPEND OPTIONS "QWT_CONFIG+=QwtDll")
|
|
endif()
|
|
vcpkg_qmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
QMAKE_OPTIONS
|
|
${OPTIONS}
|
|
"CONFIG-=debug_and_release"
|
|
"CONFIG+=create_prl"
|
|
"CONFIG+=link_prl"
|
|
)
|
|
vcpkg_qmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
# Qt6 pkg-config files not installed https://github.com/microsoft/vcpkg/issues/25988
|
|
# vcpkg_fixup_pkgconfig()
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-qwt-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-qwt")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|