2018-02-05 11:21:02 +08:00
|
|
|
set(LIBGTA_VERSION 1.0.8)
|
|
|
|
set(LIBGTA_HASH 99ec3d6317c9a12cf440a60bb989cc7a3fe35e0a1da3e65206e5cd52b69fb860850e61ea0f819511ef48ddc87c468c0ded710409990627096738886e1b358423)
|
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "http://download.savannah.nongnu.org/releases/gta/libgta-1.0.8.tar.xz"
|
|
|
|
FILENAME "libgta-${LIBGTA_VERSION}.tar.xz"
|
|
|
|
SHA512 ${LIBGTA_HASH})
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
|
|
|
SOURCE_BASE "${LIBGTA_VERSION}"
|
2019-01-30 05:43:39 +08:00
|
|
|
)
|
2018-02-05 11:21:02 +08:00
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_SHARED_LIBS)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ENABLE_STATIC_LIBS)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-01-30 05:43:39 +08:00
|
|
|
OPTIONS -DGTA_BUILD_SHARED_LIB=${ENABLE_SHARED_LIBS}
|
|
|
|
-DGTA_BUILD_STATIC_LIB=${ENABLE_STATIC_LIBS}
|
2018-02-05 11:43:50 +08:00
|
|
|
-DGTA_BUILD_DOCUMENTATION=OFF
|
2018-02-05 11:21:02 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-02-05 11:21:02 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-02-05 11:59:12 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2023-03-08 06:14:52 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/bin")
|
2018-02-05 11:59:12 +08:00
|
|
|
endif()
|
2018-02-05 11:21:02 +08:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|