mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 14:17:59 +08:00
8641dfd9dd
* some libraries export <PackageName>LibraryDepends.cmake instead of <PackageName>Targets.cmake. Those file also need the fix of #1044 should close #4753 * prefered the general solution #4622. hopefully solved the issue within #4150 replaced the regex with something more readable (also ident is lost) should close: #4753 #4633 #4150 and maybe more * Hash vcpkg_fixup_cmake_targets.cmake * [boost] Fix use of find_package(Boost) with cache variables [socket-io-client] Fix install * reversed change back to use regex replace * [glbinding] Fix _IMPORT_PREFIX depth in *-export.cmake files * [tinyspline] Ignore warnings treated as errors * [libevent, liblemon, libpng, smpeg2, zlib] Fix apply patches * [libsodium] Fix apply patches * [folly] Link correct libraries in debug and release * [vtk] Remove unset of _IMPORT_PREFIX * [tinyspline] Do not treat warnings as errors * [smpeg2] Fix double* to int comparison * [nvtt] Define value for HAVE_UNISTD_H in MacOS * [libui] Fix MacOS X build * [zlib] Fix download URL * [qhull] Update to v7.2.1 * [podofo] Set value for HAVE_UNISTD_H in MacOS * [mongo-cxx-driver,ogre,podofo,qhull] Bump CONTROL version * [mongo-c-driver] Set _IMPORT_PREFIX * [tmxparser] Bump CONTROL version * [qhull,vxl] Bump CONTROL version
52 lines
1.8 KiB
CMake
52 lines
1.8 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
set(PODOFO_VERSION 0.9.6)
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://sourceforge.net/projects/podofo/files/podofo/${PODOFO_VERSION}/podofo-${PODOFO_VERSION}.tar.gz/download"
|
|
FILENAME "podofo-${PODOFO_VERSION}.tar.gz"
|
|
SHA512 35c1a457758768bdadc93632385f6b9214824fead279f1b85420443fb2135837cefca9ced476df0d47066f060e9150e12fcd40f60fa1606b177da433feb20130
|
|
)
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
REF ${PODOFO_VERSION}
|
|
PATCHES
|
|
"unique_ptr.patch"
|
|
"002-HAVE_UNISTD_H.patch"
|
|
)
|
|
|
|
set(PODOFO_NO_FONTMANAGER ON)
|
|
if("fontconfig" IN_LIST FEATURES)
|
|
set(PODOFO_NO_FONTMANAGER OFF)
|
|
endif()
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PODOFO_BUILD_SHARED)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PODOFO_BUILD_STATIC)
|
|
|
|
set(IS_WIN32 OFF)
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAME)
|
|
set(IS_WIN32 ON)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DPODOFO_BUILD_LIB_ONLY=1
|
|
-DPODOFO_BUILD_SHARED=${PODOFO_BUILD_SHARED}
|
|
-DPODOFO_BUILD_STATIC=${PODOFO_BUILD_STATIC}
|
|
-DPODOFO_NO_FONTMANAGER=${PODOFO_NO_FONTMANAGER}
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_FONTCONFIG=${PODOFO_NO_FONTMANAGER}
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_LIBCRYPTO=${IS_WIN32}
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_LIBIDN=ON
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_CppUnit=ON
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Boost=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/podofo)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/podofo/COPYING ${CURRENT_PACKAGES_DIR}/share/podofo/copyright)
|