2017-01-30 01:46:22 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-04-27 06:39:05 +08:00
|
|
|
set(PANGO_VERSION 1.40.5)
|
2017-03-14 07:07:16 +08:00
|
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/pango-${PANGO_VERSION})
|
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-04-27 06:39:05 +08:00
|
|
|
SHA512 40e8bf85dbb4b6fd35da3acec06a0d2b9dde95a3c5a212d243dbcbc0d00f12bd061757a04cb2f4a8db61329efd7ed9be53e3f5d6a2eb2a3defba1d12f9eed43d)
|
2017-01-30 01:46:22 +08:00
|
|
|
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
2017-04-27 06:39:16 +08:00
|
|
|
vcpkg_apply_patches(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PATCHES
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/0001-fix-static-symbols-export.diff)
|
|
|
|
|
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
|
2017-01-30 01:46:22 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DPANGO_SKIP_HEADERS=ON)
|
|
|
|
|
2017-04-27 06:39:16 +08:00
|
|
|
vcpkg_build_cmake()
|
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)
|