public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin-apps@cygwin.com
Subject: [ITA] libsamplerate
Date: Sat, 9 Sep 2023 19:23:22 +0900	[thread overview]
Message-ID: <20230909192322.3b014640b5b24cfd24ac5bb2@nifty.ne.jp> (raw)

[-- Attachment #1: Type: text/plain, Size: 109 bytes --]

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

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

[-- Attachment #2: libsamplerate.cygport --]
[-- Type: text/plain, Size: 844 bytes --]

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"

[-- Attachment #3: libsamplerate-0.2.2-1.src.patch --]
[-- Type: text/plain, Size: 1740 bytes --]

--- 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	other threads:[~2023-09-09 10:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230909192322.3b014640b5b24cfd24ac5bb2@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).