1
0

portfile.cmake 860 B

12345678910111213141516171819202122232425
  1. vcpkg_from_github(
  2. OUT_SOURCE_PATH SOURCE_PATH
  3. REPO xiph/vorbis
  4. REF v1.3.7
  5. SHA512 bfb6f5dbfd49ed38b2b08b3667c06d02e68f649068a050f21a3cc7e1e56b27afd546aaa3199c4f6448f03f6e66a82f9a9dc2241c826d3d1d4acbd38339b9e9fb
  6. HEAD_REF master
  7. PATCHES
  8. 0001-Dont-export-vorbisenc-functions.patch
  9. 0002-Fixup-pkgconfig-libs.patch
  10. 0003-def-mingw-compat.patch
  11. )
  12. vcpkg_cmake_configure(
  13. SOURCE_PATH "${SOURCE_PATH}"
  14. )
  15. vcpkg_cmake_install()
  16. vcpkg_cmake_config_fixup(PACKAGE_NAME Vorbis CONFIG_PATH "lib/cmake/Vorbis")
  17. vcpkg_fixup_pkgconfig()
  18. vcpkg_copy_pdbs()
  19. file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
  20. file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
  21. file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)