portfile.cmake 847 B

123456789101112131415161718192021222324252627282930
  1. vcpkg_from_gitlab(
  2. GITLAB_URL https://gitlab.xiph.org
  3. OUT_SOURCE_PATH SOURCE_PATH
  4. REPO xiph/ogg
  5. REF v1.3.5
  6. SHA512 72bfad534a459bfca534eae9b209fa630ac20364a82e82f2707b210a40deaf9a7dc9031532a8b27120a9dd66f804655ddce79875758ef14b109bf869e57fb747
  7. HEAD_REF master
  8. )
  9. if(VCPKG_TARGET_IS_MINGW)
  10. vcpkg_replace_string(${SOURCE_PATH}/win32/ogg.def "LIBRARY ogg" "LIBRARY libogg")
  11. endif()
  12. vcpkg_configure_cmake(
  13. SOURCE_PATH ${SOURCE_PATH}
  14. PREFER_NINJA
  15. OPTIONS -DINSTALL_DOCS=0 -DINSTALL_PKG_CONFIG_MODULE=1
  16. )
  17. vcpkg_install_cmake()
  18. vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Ogg TARGET_PATH share/ogg)
  19. file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
  20. vcpkg_copy_pdbs()
  21. vcpkg_fixup_pkgconfig()
  22. file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)