I'd like to adopt the package libsamplerate.
Thanks in advance.

-- 
Takashi Yano <takashi.y...@nifty.ne.jp>
NAME="libsamplerate"
VERSION=0.2.2
RELEASE=1
LICENSE="BSD-2-Clause"
CATEGORY="Audio"
SUMMARY="Sample rate converter library"
DESCRIPTION="libsamplerate is a Sample Rate Converter for audio. One example
of where such a thing would be useful is converting audio from the CD sample
rate of 44.1kHz to the 48kHz sample rate used by DAT players."
DESCRIPTION="Sample rate converter library"
HOMEPAGE="https://libsndfile.github.io/libsamplerate/index.html";
SRC_URI="https://github.com/libsndfile/libsamplerate/releases/download/${VERSION}/${NAME}-${VERSION}.tar.xz";

PKG_NAMES="${NAME} ${NAME}0 ${NAME}-devel"
libsamplerate_SUMMARY="${SUMMARY% *} utilities"
libsamplerate_CONTENTS='usr/share/'
libsamplerate0_CONTENTS='usr/bin/*.dll'
libsamplerate_devel_CONTENTS='usr/include/ usr/lib/'

HTMLDOCS="doc/*.html doc/*.png doc/*.css"
--- origsrc/libsamplerate-0.2.2/configure.ac    2021-09-05 20:48:12.000000000 
+0900
+++ src/libsamplerate-0.2.2/configure.ac        2023-09-09 17:53:59.819880900 
+0900
@@ -292,7 +294,7 @@ AS_IF([test "x$have_visibility" = "xyes"
 
 AS_IF([test "x$lt_cv_prog_gnu_ld" = "xyes"], [
                AS_CASE([${host_os}],
-                       [mingw*|cygwin*], [
+                       [mingw*], [
                                SHLIB_VERSION_ARG="-export-symbols 
\$(top_srcdir)/Win32/libsamplerate-0.def"],
                        [*], [
                                
SHLIB_VERSION_ARG="-Wl,--version-script=\$(top_builddir)/src/Version_script"
--- origsrc/libsamplerate-0.2.2/examples/audio_out.c    2021-05-23 
23:28:23.000000000 +0900
+++ src/libsamplerate-0.2.2/examples/audio_out.c        2023-09-09 
17:30:33.441863400 +0900
@@ -42,7 +42,7 @@
 **     Linux (ALSA and OSS) functions for playing a sound.
 */
 
-#if defined (__linux__)
+#if defined (__linux__) || defined (__CYGWIN__)
 
 #if HAVE_ALSA
 
@@ -997,7 +997,7 @@ solaris_close (AUDIO_OUT *audio_out)
 AUDIO_OUT *
 audio_open (int channels, int samplerate)
 {
-#if defined (__linux__)
+#if defined (__linux__) || defined (__CYGWIN__)
        #if HAVE_ALSA
                if (access ("/proc/asound/cards", R_OK) == 0)
                        return alsa_open (channels, samplerate) ;
@@ -1039,7 +1039,7 @@ audio_play (get_audio_callback_t callbac
                return ;
                } ;
 
-#if defined (__linux__)
+#if defined (__linux__) || defined (__CYGWIN__)
        #if HAVE_ALSA
                if (audio_out->magic == ALSA_MAGIC)
                        alsa_play (callback, audio_out, callback_data) ;
@@ -1064,7 +1064,7 @@ audio_play (get_audio_callback_t callbac
 void
 audio_close (AUDIO_OUT *audio_out)
 {
-#if defined (__linux__)
+#if defined (__linux__) || defined (__CYGWIN__)
        #if HAVE_ALSA
                if (audio_out->magic == ALSA_MAGIC)
                        alsa_close (audio_out) ;

Reply via email to