mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 03:29:06 +08:00
5835ade57b
* jasper * update version * update function * update version
32 lines
1.0 KiB
CMake
32 lines
1.0 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO mdadams/jasper
|
|
REF fe00207dc10db1d7cc6f2757961c5c6bdfd10973 # version-2.0.33
|
|
SHA512 887bb8e6096b41d5b61970d70b0e7b9cc1c31dd63467386aa35003c146d200bbae9ad46825a3313aeed403ac6fb26d504f489386cbc7ca364d95deeb5a94af46
|
|
HEAD_REF master
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" JAS_ENABLE_SHARED)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF
|
|
-DJAS_ENABLE_LIBJPEG=ON
|
|
-DJAS_ENABLE_DOC=OFF
|
|
-DJAS_ENABLE_PROGRAMS=OFF
|
|
-DJAS_ENABLE_SHARED=${JAS_ENABLE_SHARED}
|
|
OPTIONS_DEBUG
|
|
-DCMAKE_DEBUG_POSTFIX=d # Due to CMakes FindJasper
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|