mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 05:49:08 +08:00
[alsa] New port (#20954)
* Add new port alsa 1.2.5.1 * Update CI baseline * Fix static builds * Update git-tree hash Co-authored-by: chausner <chausner@users.noreply.github.com>
This commit is contained in:
parent
f1f7f13ca7
commit
1ba5e0ffe5
28
ports/alsa/0001-control-empty-fix-the-static-build.patch
Normal file
28
ports/alsa/0001-control-empty-fix-the-static-build.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 81e7923fbfad45b2f353a4d6e3053af51f5f7d0b Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Kysela <perex@perex.cz>
|
||||
Date: Tue, 15 Jun 2021 23:21:42 +0200
|
||||
Subject: [PATCH] control: empty - fix the static build
|
||||
|
||||
Reported-by: Jan Palus <atler@pld-linux.org>
|
||||
Fixes: https://github.com/alsa-project/alsa-lib/issues/157
|
||||
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
||||
---
|
||||
src/control/control_empty.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/control/control_empty.c b/src/control/control_empty.c
|
||||
index 49d1026c..c9b048c1 100644
|
||||
--- a/src/control/control_empty.c
|
||||
+++ b/src/control/control_empty.c
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#ifndef PIC
|
||||
/* entry for static linking */
|
||||
-const char *_snd_module_ctl_empty = "";
|
||||
+const char *_snd_module_control_empty = "";
|
||||
#endif
|
||||
|
||||
/*! \page control_plugins
|
||||
--
|
||||
2.33.0
|
||||
|
42
ports/alsa/portfile.cmake
Normal file
42
ports/alsa/portfile.cmake
Normal file
@ -0,0 +1,42 @@
|
||||
if(NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
message(FATAL_ERROR "Package only supports Linux platform.")
|
||||
endif()
|
||||
|
||||
message(
|
||||
"alsa currently requires the following libraries from the system package manager:
|
||||
autoconf libtool
|
||||
These can be installed on Ubuntu systems via sudo apt install autoconf libtool"
|
||||
)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO alsa-project/alsa-lib
|
||||
REF v1.2.5.1
|
||||
SHA512 1c8613e520bd24ec2332b677a35d1c49171781f6408be61c79ec90d143d424d8df6e1c9e22e082d331022e0fe858145f7ea214a7b731ed5e306762194b49d50e
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
0001-control-empty-fix-the-static-build.patch
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
set(BUILD_OPTS --enable-shared=yes --enable-static=no)
|
||||
else()
|
||||
set(BUILD_OPTS --enable-shared=no --enable-static=yes)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_make(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
AUTOCONFIG
|
||||
OPTIONS
|
||||
${BUILD_OPTS}
|
||||
--disable-python
|
||||
)
|
||||
|
||||
vcpkg_install_make()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/tools/alsa/debug")
|
||||
|
||||
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
7
ports/alsa/vcpkg.json
Normal file
7
ports/alsa/vcpkg.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "alsa",
|
||||
"version": "1.2.5.1",
|
||||
"description": "The Advanced Linux Sound Architecture (ALSA) - library",
|
||||
"homepage": "https://www.alsa-project.org/",
|
||||
"supports": "linux"
|
||||
}
|
9
versions/a-/alsa.json
Normal file
9
versions/a-/alsa.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "03a04f17b2dfb480de15a07b58188b161dbe6dda",
|
||||
"version": "1.2.5.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
@ -60,6 +60,10 @@
|
||||
"baseline": "5.2.6.0",
|
||||
"port-version": 1
|
||||
},
|
||||
"alsa": {
|
||||
"baseline": "1.2.5.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"ampl-asl": {
|
||||
"baseline": "2020-11-11",
|
||||
"port-version": 1
|
||||
|
Loading…
Reference in New Issue
Block a user