summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patches/libsndfile-1.0.28.local.patch38
-rw-r--r--vars/build.vars5
2 files changed, 42 insertions, 1 deletions
diff --git a/patches/libsndfile-1.0.28.local.patch b/patches/libsndfile-1.0.28.local.patch
new file mode 100644
index 00000000..52adc592
--- /dev/null
+++ b/patches/libsndfile-1.0.28.local.patch
@@ -0,0 +1,38 @@
+diff -ru libsndfile-1.0.28.orig/programs/sndfile-play.c libsndfile-1.0.28/programs/sndfile-play.c
+--- libsndfile-1.0.28.orig/programs/sndfile-play.c 2017-04-01 09:18:02.000000000 +0200
++++ libsndfile-1.0.28/programs/sndfile-play.c 2018-06-10 03:16:32.784821054 +0200
+@@ -193,7 +193,7 @@
+ goto catch_error ;
+ } ;
+
+- if ((err = snd_pcm_hw_params_set_rate_near (alsa_dev, hw_params, &samplerate, 0)) < 0)
++ if ((err = __snd_pcm_hw_params_set_rate_near (alsa_dev, hw_params, &samplerate, 0)) < 0)
+ { fprintf (stderr, "cannot set sample rate (%s)\n", snd_strerror (err)) ;
+ goto catch_error ;
+ } ;
+@@ -203,12 +203,12 @@
+ goto catch_error ;
+ } ;
+
+- if ((err = snd_pcm_hw_params_set_buffer_size_near (alsa_dev, hw_params, &alsa_buffer_frames)) < 0)
++ if ((err = __snd_pcm_hw_params_set_buffer_size_near (alsa_dev, hw_params, &alsa_buffer_frames)) < 0)
+ { fprintf (stderr, "cannot set buffer size (%s)\n", snd_strerror (err)) ;
+ goto catch_error ;
+ } ;
+
+- if ((err = snd_pcm_hw_params_set_period_size_near (alsa_dev, hw_params, &alsa_period_size, 0)) < 0)
++ if ((err = __snd_pcm_hw_params_set_period_size_near (alsa_dev, hw_params, &alsa_period_size, 0)) < 0)
+ { fprintf (stderr, "cannot set period size (%s)\n", snd_strerror (err)) ;
+ goto catch_error ;
+ } ;
+@@ -219,8 +219,8 @@
+ } ;
+
+ /* extra check: if we have only one period, this code won't work */
+- snd_pcm_hw_params_get_period_size (hw_params, &alsa_period_size, 0) ;
+- snd_pcm_hw_params_get_buffer_size (hw_params, &buffer_size) ;
++ __snd_pcm_hw_params_get_period_size (hw_params, &alsa_period_size, 0) ;
++ __snd_pcm_hw_params_get_buffer_size (hw_params, &buffer_size) ;
+ if (alsa_period_size == buffer_size)
+ { fprintf (stderr, "Can't use period equal to buffer size (%lu == %lu)", alsa_period_size, buffer_size) ;
+ goto catch_error ;
diff --git a/vars/build.vars b/vars/build.vars
index 45b6e409..bbfac7ff 100644
--- a/vars/build.vars
+++ b/vars/build.vars
@@ -400,7 +400,7 @@ NATIVE_PACKAGES_DEPS_PACKAGES="
expat libxml2 alsa_lib apr apr_util bzip2 libdmtx libressl libnettle
libunistring gnutls curl libz lmdb libpng libjpeg_turbo tiff giflib libffi
gdbm geoip pcre glib gzip libarchive libatomic_ops musl_compat libbsd
-libpipeline libevent libfetch libogg libvorbis libgpg_error libassuan
+libpipeline libevent libfetch libogg libvorbis libsndfile libgpg_error libassuan
libfirm libgcrypt libksba libudns lua ncurses ncursestw ncursesw
libreadline npth popt file xz zstd rpm libsolv tdnf shared_mime_info
sqlite3 w32api w32lib libuv cmake qrencode util_linux slang";
@@ -531,6 +531,9 @@ NATIVE_PACKAGES_DEPS_PYTHON="${PREFIX}/bin/python";
: ${PKG_LIBVORBIS_SHA256SUM:=54f94a9527ff0a88477be0a71c0bab09a4c3febe0ed878b24824906cd4b0e1d1};
: ${PKG_LIBVORBIS_VERSION:=1.3.5};
: ${PKG_LIBVORBIS_URL:=https://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-${PKG_LIBVORBIS_VERSION}.tar.xz};
+: ${PKG_LIBSNDFILE_SHA256SUM:=1ff33929f042fa333aed1e8923aa628c3ee9e1eb85512686c55092d1e5a9dfa9};
+: ${PKG_LIBSNDFILE_VERSION:=1.0.28};
+: ${PKG_LIBSNDFILE_URL:=http://www.mega-nerd.com/libsndfile/files/libsndfile-${PKG_LIBSNDFILE_VERSION}.tar.gz};
: ${PKG_LIBGPG_ERROR_SHA256SUM:=f628f75843433b38b05af248121beb7db5bd54bb2106f384edac39934261320c};
: ${PKG_LIBGPG_ERROR_VERSION:=1.25};
: ${PKG_LIBGPG_ERROR_URL:=https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${PKG_LIBGPG_ERROR_VERSION}.tar.bz2};