mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 08:27:56 +08:00
416bee254a
* sobjectizer updated to 5.6.0.1, so5extra updated to 1.3.1 * archive of different type for so5extra-1.3.1 * sobjectizer updated to 5.6.0.2
28 lines
985 B
CMake
28 lines
985 B
CMake
include(vcpkg_common_functions)
|
|
|
|
set(VERSION 1.3.1)
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/so5extra-${VERSION}/dev/so_5_extra)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://sourceforge.net/projects/sobjectizer/files/sobjectizer/so_5_extra/so5extra-${VERSION}.tar.bz2/download"
|
|
FILENAME "so5extra-${VERSION}.tar.bz2"
|
|
SHA512 58532426f85121f8f6c3b18a70950c048c8a695a7fca7be5d9c95434bdabdb2bfcf73d755737434a8d8aa5f3051785e13e7e293e057527c72047dad293a56ae7
|
|
)
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DSO5EXTRA_INSTALL=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/so5extra)
|
|
|
|
# Remove unnecessary stuff.
|
|
# These paths are empty and should be removed too.
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/../../LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/so5extra RENAME copyright)
|