2022-11-17 16:35:23 +08:00
|
|
|
vcpkg_from_git(
|
2020-06-27 06:06:30 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-11-17 16:35:23 +08:00
|
|
|
URL "https://git.code.sf.net/p/qwt/git"
|
|
|
|
REF "06d6822b595b70c9fd567a4fe0d835759bf271fe"
|
|
|
|
FETCH_REF qwt-6.2
|
|
|
|
PATCHES
|
|
|
|
config.patch
|
|
|
|
fix_dll_install.patch
|
2019-08-02 08:54:45 +08:00
|
|
|
)
|
2017-01-06 06:39:00 +08:00
|
|
|
|
2022-11-17 16:35:23 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" IS_DYNAMIC)
|
|
|
|
set(OPTIONS "")
|
|
|
|
if(IS_DYNAMIC)
|
|
|
|
set(OPTIONS "QWT_CONFIG+=QwtDll")
|
|
|
|
endif()
|
|
|
|
vcpkg_qmake_configure(
|
2021-07-28 07:25:52 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-11-17 16:35:23 +08:00
|
|
|
QMAKE_OPTIONS
|
|
|
|
${OPTIONS}
|
|
|
|
"CONFIG-=debug_and_release"
|
|
|
|
"CONFIG+=create_prl"
|
|
|
|
"CONFIG+=link_prl"
|
2019-08-02 08:54:45 +08:00
|
|
|
)
|
2022-11-17 16:35:23 +08:00
|
|
|
vcpkg_qmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
2017-01-06 06:39:00 +08:00
|
|
|
|
2020-09-12 03:53:06 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2022-11-17 16:35:23 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2020-09-12 03:53:06 +08:00
|
|
|
endif()
|
|
|
|
|
2017-01-06 06:39:00 +08:00
|
|
|
# Handle copyright
|
2021-07-28 07:25:52 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|