2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO qwt/qwt
|
2020-07-09 06:34:35 +08:00
|
|
|
REF 6.1.4
|
|
|
|
FILENAME "qwt-6.1.4.zip"
|
|
|
|
SHA512 711256ec4d1d54d201650e9c63b584b17a61dbedde5a581e0b6227fdbee149cdbe2a889aa58f67777125b6471fc1fe248992ec845eb6481a2dfc2c4276701d7f
|
2019-08-02 08:54:45 +08:00
|
|
|
PATCHES fix-dynamic-static.patch
|
2020-07-09 06:34:35 +08:00
|
|
|
build.patch
|
2019-08-02 08:54:45 +08:00
|
|
|
)
|
2017-01-06 06:39:00 +08:00
|
|
|
|
2019-08-02 08:54:45 +08:00
|
|
|
vcpkg_configure_qmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
CONFIG+=${VCPKG_LIBRARY_LINKAGE}
|
|
|
|
)
|
2017-12-31 07:12:22 +08:00
|
|
|
|
2019-12-23 22:10:12 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_install_qmake(
|
2019-09-10 02:29:33 +08:00
|
|
|
RELEASE_TARGETS sub-src-release_ordered
|
|
|
|
DEBUG_TARGETS sub-src-debug_ordered
|
|
|
|
)
|
2019-12-23 22:10:12 +08:00
|
|
|
else ()
|
|
|
|
vcpkg_install_qmake(
|
2019-09-10 02:29:33 +08:00
|
|
|
RELEASE_TARGETS sub-src-all-ordered
|
|
|
|
DEBUG_TARGETS sub-src-all-ordered
|
|
|
|
)
|
|
|
|
endif()
|
2017-01-06 06:39:00 +08:00
|
|
|
|
2017-12-31 07:12:22 +08:00
|
|
|
#Install the header files
|
2017-01-06 06:39:00 +08:00
|
|
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/src/*.h)
|
2020-07-09 06:34:35 +08:00
|
|
|
file(INSTALL ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
2017-01-06 06:39:00 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2020-08-01 00:12:17 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|