2021-06-25 04:14:37 +08:00
|
|
|
vcpkg_from_gitlab(
|
|
|
|
GITLAB_URL https://gitlab.xiph.org
|
2017-07-28 11:08:28 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO xiph/ogg
|
2021-06-25 04:14:37 +08:00
|
|
|
REF v1.3.5
|
|
|
|
SHA512 72bfad534a459bfca534eae9b209fa630ac20364a82e82f2707b210a40deaf9a7dc9031532a8b27120a9dd66f804655ddce79875758ef14b109bf869e57fb747
|
2017-07-28 11:08:28 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2016-10-15 02:02:46 +08:00
|
|
|
|
2020-12-02 06:13:58 +08:00
|
|
|
if(VCPKG_TARGET_IS_MINGW)
|
2022-12-27 16:53:18 +08:00
|
|
|
vcpkg_replace_string("${SOURCE_PATH}/win32/ogg.def" "LIBRARY ogg" "LIBRARY libogg")
|
2020-12-02 06:13:58 +08:00
|
|
|
endif()
|
|
|
|
|
2022-12-27 16:53:18 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DINSTALL_DOCS=OFF
|
|
|
|
-DINSTALL_PKG_CONFIG_MODULE=ON
|
|
|
|
-DBUILD_TESTING=OFF
|
2016-10-15 02:02:46 +08:00
|
|
|
)
|
|
|
|
|
2022-12-27 16:53:18 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-07-28 11:08:28 +08:00
|
|
|
|
2022-12-27 16:53:18 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Ogg PACKAGE_NAME ogg)
|
2019-02-27 00:44:48 +08:00
|
|
|
|
2022-12-27 16:53:18 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2016-10-25 06:36:33 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2020-08-19 03:58:14 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-07-28 11:08:28 +08:00
|
|
|
|
2022-12-27 16:53:18 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|