Skip to content

Commit

Permalink
[libmad] update to 0.16.4 (microsoft#35898)
Browse files Browse the repository at this point in the history
* [libmad] update to 0.16.4

Switches libmad to Tenacity's maintained version.

Signed-off-by: Avery King <[email protected]>

* update filename

Co-authored-by: Kai Pastor <[email protected]>

* update version db

---------

Signed-off-by: Avery King <[email protected]>
Co-authored-by: Javier Matos Denizac <[email protected]>
Co-authored-by: Kai Pastor <[email protected]>
Co-authored-by: Javier Matos Denizac <[email protected]>
  • Loading branch information
4 people authored Jan 24, 2024
1 parent c0bc859 commit e5e9f2f
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 142 deletions.
25 changes: 0 additions & 25 deletions ports/libmad/0001-Fix-MSVC-ARM.patch

This file was deleted.

86 changes: 0 additions & 86 deletions ports/libmad/CMakeLists.txt

This file was deleted.

10 changes: 0 additions & 10 deletions ports/libmad/mad.pc.in

This file was deleted.

25 changes: 9 additions & 16 deletions ports/libmad/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,26 @@ if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()

vcpkg_from_sourceforge(
OUT_SOURCE_PATH SOURCE_PATH
REPO mad/libmad
REF 0.15.1b
FILENAME "libmad-0.15.1b.tar.gz"
SHA512 2cad30347fb310dc605c46bacd9da117f447a5cabedd8fefdb24ab5de641429e5ec5ce8af7aefa6a75a3f545d3adfa255e3fa0a2d50971f76bc0c4fc0400cc45
PATCHES 0001-Fix-MSVC-ARM.patch
vcpkg_download_distfile(
ARCHIVE
URLS "https://codeberg.org/tenacityteam/libmad/archive/${VERSION}.tar.gz"
FILENAME "tenacityteam-libmad-${VERSION}.tar.gz"
SHA512 6752c199096f999ed478dea712eb669913eec182eec8a56bf4871e77e6c38798d13146febf646007427f43f86aea8d40b9ec2b72928ac3132066ebddcaa0cfde
)

#The archive only contains a Visual Studio 6.0 era DSP project file, so use a custom CMakeLists.txt
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")

file(COPY "${CMAKE_CURRENT_LIST_DIR}/mad.pc.in" DESTINATION "${SOURCE_PATH}")

#Use the msvc++ config.h header
file(COPY "${SOURCE_PATH}/msvc++/config.h" DESTINATION "${SOURCE_PATH}")
vcpkg_extract_source_archive(SOURCE_PATH ARCHIVE "${ARCHIVE}")

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
"-DVERSION=${VERSION}"
-DEXAMPLE=OFF
)

vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME "mad" CONFIG_PATH "lib/cmake/mad")
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()

file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
9 changes: 6 additions & 3 deletions ports/libmad/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"name": "libmad",
"version": "0.15.1",
"port-version": 13,
"version": "0.16.4",
"description": "high-quality MPEG audio decoder",
"homepage": "http://www.mars.org/home/rob/proj/mpeg/",
"homepage": "http://codeberg.org/tenacityteam/libmad",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4525,8 +4525,8 @@
"port-version": 0
},
"libmad": {
"baseline": "0.15.1",
"port-version": 13
"baseline": "0.16.4",
"port-version": 0
},
"libmagic": {
"baseline": "5.45",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libmad.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ca6bd50225347461a9d72269c1b7d082a691f31d",
"version": "0.16.4",
"port-version": 0
},
{
"git-tree": "88e56333079029031e808b84c95ded6dd33a2bbd",
"version": "0.15.1",
Expand Down

0 comments on commit e5e9f2f

Please sign in to comment.