vcpkg/ports/mpg123/portfile.cmake

38 lines
1.2 KiB
CMake
Raw Normal View History

set(MPG123_VERSION 1.29.3)
vcpkg_from_sourceforge(
OUT_SOURCE_PATH SOURCE_PATH
REPO mpg123/mpg123
REF ${MPG123_VERSION}
FILENAME "mpg123-${MPG123_VERSION}.tar.bz2"
SHA512 0d8db63f9bae1507887bc5241a56abccfeb767b7ba8362eb0fce9de2f63369e57fdd6f25a953f8ef5f9ead4f400237db51914816e278566fdf8e6f205ebca5d6
PATCHES
fix-modulejack.patch
2022-04-19 07:43:04 +08:00
fix-m1-build.patch
)
2016-09-19 11:50:08 +08:00
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
include("${CURRENT_INSTALLED_DIR}/share/yasm-tool-helper/yasm-tool-helper.cmake")
yasm_tool_helper(APPEND_TO_PATH)
endif()
2016-09-19 11:50:08 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/ports/cmake"
OPTIONS
-DUSE_MODULES=OFF
-DBUILD_PROGRAMS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2022-04-19 07:43:04 +08:00
if(VCPKG_TARGET_IS_OSX)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)