2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mpg123/mpg123
|
2023-02-10 02:46:36 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
FILENAME "mpg123-${VERSION}.tar.bz2"
|
2023-03-22 03:30:41 +08:00
|
|
|
SHA512 5dd550e06f5d0d432cac1b7e546215e56378b44588c1a98031498473211e08bc4228de45be41f7ba764f7f6c0eb752a6501235bcc3712c9a8d8852ae3c607d98
|
2021-12-16 14:16:32 +08:00
|
|
|
PATCHES
|
2023-10-13 01:59:25 +08:00
|
|
|
fix-checktypesize.patch
|
2021-12-16 14:16:32 +08:00
|
|
|
fix-modulejack.patch
|
2022-04-19 07:43:04 +08:00
|
|
|
fix-m1-build.patch
|
2019-08-02 08:54:45 +08:00
|
|
|
)
|
2016-09-19 11:50:08 +08:00
|
|
|
|
2022-04-07 05:23:22 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
|
|
|
yasm_tool_helper(APPEND_TO_PATH)
|
|
|
|
endif()
|
2016-09-19 11:50:08 +08:00
|
|
|
|
2023-10-19 01:56:02 +08:00
|
|
|
vcpkg_list(SET options)
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_list(APPEND options "-DLIBMPG123_LIBS=-lshlwapi")
|
|
|
|
endif()
|
|
|
|
|
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"
|
2022-05-24 23:47:18 +08:00
|
|
|
OPTIONS
|
|
|
|
-DUSE_MODULES=OFF
|
|
|
|
-DBUILD_PROGRAMS=OFF
|
2023-10-19 01:56:02 +08:00
|
|
|
${options}
|
2023-02-10 02:46:36 +08:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
BUILD_PROGRAMS
|
2021-10-26 04:35:56 +08:00
|
|
|
)
|
2021-11-23 07:48:32 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-03-22 03:30:41 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-11-23 07:48:32 +08:00
|
|
|
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
|
|
|
|
2023-02-10 02:46:36 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|