portfile.cmake 880 B

1234567891011121314151617181920212223242526
  1. if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
  2. message(FATAL_ERROR "${PORT} does not currently support UWP")
  3. endif()
  4. vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
  5. vcpkg_from_github(
  6. OUT_SOURCE_PATH SOURCE_PATH
  7. REPO macosforge/alac
  8. REF c38887c5c5e64a4b31108733bd79ca9b2496d987
  9. SHA512 8da18df25807e76f9187f7bf30585aace303d55444f0a614ab00d98d11caca3fdc5c6f5b9fd11e5f4c92a2ab1e86fef73deeeada57e9d49951fea8b80ba383cc
  10. HEAD_REF master
  11. )
  12. file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
  13. vcpkg_configure_cmake(
  14. SOURCE_PATH ${SOURCE_PATH}
  15. PREFER_NINJA
  16. OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_TOOLS=ON
  17. )
  18. vcpkg_install_cmake()
  19. vcpkg_copy_pdbs()
  20. vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/alac)
  21. file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/alac RENAME copyright)