2021-11-23 07:48:32 +08:00
|
|
|
set(MPG123_VERSION 1.29.2)
|
|
|
|
set(MPG123_HASH ffb82ffbebedeb12783338b5159bf055afd25cb77e1b705bef29f04fa50bcb2ceaf2a6418d0e111fab1151ea956fe48ba3576d978e6b0c8f4ca72c3883608ec0)
|
2017-03-13 08:16:08 +08:00
|
|
|
|
2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mpg123/mpg123
|
|
|
|
REF ${MPG123_VERSION}
|
2017-03-13 08:16:08 +08:00
|
|
|
FILENAME "mpg123-${MPG123_VERSION}.tar.bz2"
|
|
|
|
SHA512 ${MPG123_HASH}
|
2021-12-16 14:16:32 +08:00
|
|
|
PATCHES
|
|
|
|
no-executables.patch
|
|
|
|
fix-modulejack.patch
|
2019-08-02 08:54:45 +08:00
|
|
|
)
|
2016-09-19 11:50:08 +08:00
|
|
|
|
2021-12-16 14:16:32 +08:00
|
|
|
include("${CURRENT_INSTALLED_DIR}/share/yasm-tool-helper/yasm-tool-helper.cmake")
|
2020-10-29 05:26:41 +08:00
|
|
|
yasm_tool_helper(APPEND_TO_PATH)
|
2016-09-19 11:50:08 +08:00
|
|
|
|
2021-11-23 07:48:32 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-12-16 14:16:32 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}/ports/cmake"
|
2021-10-26 04:35:56 +08:00
|
|
|
OPTIONS -DUSE_MODULES=OFF
|
|
|
|
)
|
2021-11-23 07:48:32 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2021-10-26 04:35:56 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-08-02 04:56:56 +08:00
|
|
|
|
2021-10-26 04:35:56 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-03-13 08:16:08 +08:00
|
|
|
|
2021-12-16 14:16:32 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|