Skip to content

Commit

Permalink
[faad2] Update to 2.11.1 (microsoft#36646)
Browse files Browse the repository at this point in the history
* [faad2] Update to 2.11.1

* update version

* fix tools name

* version

---------

Co-authored-by: Lily Wang <[email protected]>
  • Loading branch information
LilyWangLL and Lily Wang authored Feb 9, 2024
1 parent b28ee3c commit 1747449
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 61 deletions.
39 changes: 0 additions & 39 deletions ports/faad2/CMakeLists.txt

This file was deleted.

13 changes: 13 additions & 0 deletions ports/faad2/fix-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5c0aeff..9614c19 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -261,7 +261,7 @@ endif()

# Installation

-if(NOT FAAD_BUNDLED_MODE AND NOT MSVC)
+if(1)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/faad2.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")

24 changes: 11 additions & 13 deletions ports/faad2/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,28 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO knik0/faad2
REF "${VERSION}"
SHA512 8df69278350c68dd770c4bc482e42bc95eb04cd784eeea3f3fc58d615833c8b07dc3c72029bb7e5bfed612b7c1b8daefc9cb57be9789befb587120ef115e55b3
SHA512 b8f17680610b2f47344ea52b54412a02810a85eaf9d4c91b97ca09b2c6415c62d4af1b0771bfcacb9dfee400ed34504c0bd3c28369921c0392b3809e7de46ec5
HEAD_REF master
)

file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
build-decoder FAAD_BUILD_BINARIES
PATCHES
fix-install.patch
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)

vcpkg_cmake_install()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()

if("build-decoder" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES faad_decoder AUTO_CLEAN)
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_copy_tools(TOOL_NAMES faad_cli AUTO_CLEAN)
else()
vcpkg_copy_tools(TOOL_NAMES faad AUTO_CLEAN)
endif()

file(INSTALL "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
10 changes: 2 additions & 8 deletions ports/faad2/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
{
"name": "faad2",
"version": "2.10.1",
"version": "2.11.1",
"description": "Freeware Advanced Audio (AAC) Decoder",
"homepage": "https://sourceforge.net/projects/faac/",
"license": "GPL-2.0-or-later",
"supports": "windows",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
],
"features": {
"build-decoder": {
"description": "Build the embedded decoder executable"
}
}
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2541,7 +2541,7 @@
"port-version": 0
},
"faad2": {
"baseline": "2.10.1",
"baseline": "2.11.1",
"port-version": 0
},
"fadbad": {
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/faad2.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "60bebbccf8a5258a6cf7ff00ef78ca0e3450b9fb",
"version": "2.11.1",
"port-version": 0
},
{
"git-tree": "8109afd383b568e26f0d671384d067fa5fa7cc2e",
"version": "2.10.1",
Expand Down

0 comments on commit 1747449

Please sign in to comment.