mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
ports: alsa-lib
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
diff --git alsa-lib-clean/src/conf.c alsa-lib-workdir/src/conf.c
|
||||
index 468d41f..97e6f0f 100644
|
||||
--- alsa-lib-clean/src/conf.c
|
||||
+++ alsa-lib-workdir/src/conf.c
|
||||
@@ -435,6 +435,13 @@ beginning:</P>
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
+#ifdef __astral__
|
||||
+#define versionsort64 versionsort
|
||||
+#define scandir64 scandir
|
||||
+#define dirent64 dirent
|
||||
+#define ino64_t ino_t
|
||||
+#endif
|
||||
+
|
||||
#ifndef DOC_HIDDEN
|
||||
|
||||
#ifdef HAVE_LIBPTHREAD
|
||||
diff --git alsa-lib-clean/src/ucm/parser.c alsa-lib-workdir/src/ucm/parser.c
|
||||
index 488a5c6..7a6d1db 100644
|
||||
--- alsa-lib-clean/src/ucm/parser.c
|
||||
+++ alsa-lib-workdir/src/ucm/parser.c
|
||||
@@ -36,6 +36,12 @@
|
||||
#include <dirent.h>
|
||||
#include <limits.h>
|
||||
|
||||
+#ifdef __astral__
|
||||
+#define scandir64 scandir
|
||||
+#define versionsort64 versionsort
|
||||
+#define dirent64 dirent
|
||||
+#endif
|
||||
+
|
||||
static int filename_filter(const struct dirent64 *dirent);
|
||||
|
||||
static int parse_sequence(snd_use_case_mgr_t *uc_mgr,
|
||||
@@ -0,0 +1,19 @@
|
||||
name=alsa-lib
|
||||
revision=1
|
||||
from_source=alsa-lib
|
||||
imagedeps="build-essential"
|
||||
hostdeps="xgcc xbinutils pkgconfig autoconf automake"
|
||||
deps="base"
|
||||
|
||||
configure() {
|
||||
cp -r "${source_dir}/." "."
|
||||
./configure --prefix=${prefix} --host=x86_64-astral
|
||||
}
|
||||
|
||||
build() {
|
||||
make -j${parallelism}
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR=${dest_dir} install
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
name=alsa-lib
|
||||
version=1.2.13
|
||||
source_method=tarball
|
||||
tarball_url="https://github.com/alsa-project/alsa-lib/archive/refs/tags/v${version}.tar.gz"
|
||||
tarball_sha512=ae21380c75ab2f318b14d42b1f06e35d2a80b377fe0a12177e7f5c926b189bb242037891e3e7d780d77376e57d6f074abe5701eecd55035ff0498bdbca55e42a
|
||||
hostdeps="autoconf automake util-macros pkgconfig libtool"
|
||||
prepare() {
|
||||
autoreconf -fvi
|
||||
}
|
||||
Reference in New Issue
Block a user