1
0

portfile.cmake 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. set(MPG123_VERSION 1.29.2)
  2. set(MPG123_HASH ffb82ffbebedeb12783338b5159bf055afd25cb77e1b705bef29f04fa50bcb2ceaf2a6418d0e111fab1151ea956fe48ba3576d978e6b0c8f4ca72c3883608ec0)
  3. vcpkg_from_sourceforge(
  4. OUT_SOURCE_PATH SOURCE_PATH
  5. REPO mpg123/mpg123
  6. REF ${MPG123_VERSION}
  7. FILENAME "mpg123-${MPG123_VERSION}.tar.bz2"
  8. SHA512 ${MPG123_HASH}
  9. PATCHES
  10. no-executables.patch
  11. fix-modulejack.patch
  12. fix-m1-build.patch
  13. )
  14. if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
  15. include("${CURRENT_INSTALLED_DIR}/share/yasm-tool-helper/yasm-tool-helper.cmake")
  16. yasm_tool_helper(APPEND_TO_PATH)
  17. endif()
  18. vcpkg_cmake_configure(
  19. SOURCE_PATH "${SOURCE_PATH}/ports/cmake"
  20. OPTIONS -DUSE_MODULES=OFF
  21. )
  22. vcpkg_cmake_install()
  23. vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
  24. vcpkg_fixup_pkgconfig()
  25. file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
  26. file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
  27. if(VCPKG_TARGET_IS_OSX)
  28. file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
  29. file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
  30. endif()
  31. file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)