2017-01-30 01:46:22 +08:00
|
|
|
include(vcpkg_common_functions)
|
2018-12-06 08:30:25 +08:00
|
|
|
|
2017-08-30 21:28:50 +08:00
|
|
|
set(PANGO_VERSION 1.40.11)
|
2017-01-30 01:46:22 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2017-03-14 07:07:16 +08:00
|
|
|
URLS "http://ftp.gnome.org/pub/GNOME/sources/pango/1.40/pango-${PANGO_VERSION}.tar.xz"
|
|
|
|
FILENAME "pango-${PANGO_VERSION}.tar.xz"
|
2017-08-30 21:28:50 +08:00
|
|
|
SHA512 e4ac40f8da9c326e1e4dfaf4b1d2070601b17f88f5a12991a9a8bbc58bb08640404e2a794a5c68c5ebb2e7e80d9c186d4b26cd417bb63a23f024ef8a38bb152a)
|
2017-01-30 01:46:22 +08:00
|
|
|
|
2018-12-06 08:30:25 +08:00
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
REF ${PANGO_VERSION}
|
|
|
|
PATCHES 0001-fix-static-symbols-export.diff
|
|
|
|
)
|
2017-01-30 01:46:22 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2018-12-06 08:30:25 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.unix DESTINATION ${SOURCE_PATH})
|
2017-04-27 06:39:16 +08:00
|
|
|
|
2017-01-30 01:46:22 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-03-14 07:07:16 +08:00
|
|
|
PREFER_NINJA
|
2018-12-06 08:30:25 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DPANGO_SKIP_HEADERS=ON
|
|
|
|
)
|
2017-01-30 01:46:22 +08:00
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/pango)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/pango/COPYING ${CURRENT_PACKAGES_DIR}/share/pango/copyright)
|