Re: [ITA] wavpack

2023-09-09 Thread Andrew Schulman via Cygwin-apps
> I'd like to adopt the package wavpack.
> Thanks in advance.

3 gold stars! For limbsamplerate, soxr, and wavpack.
https://cygwin.com/goldstars/#TY



[ITA] wavpack

2023-09-09 Thread Takashi Yano via Cygwin-apps
I'd like to adopt the package wavpack.
Thanks in advance.

-- 
Takashi Yano 
NAME="wavpack"
VERSION=5.6.0
RELEASE=1
LICENSE="BSD-3-Clause"
CATEGORY="Audio"
SUMMARY="Hybrid lossless audio codec"
DESCRIPTION="WavPack is a completely open audio compression format providing
lossless, high-quality lossy, and a unique hybrid compression mode.
Although the technology is loosely based on previous versions of
WavPack, the new version 4 format has been designed from the ground up
to offer unparalleled performance and functionality."
HOMEPAGE="http://www.wavpack.com/;
SRC_URI="http://www.wavpack.com/${NAME}-${VERSION}.tar.xz;
BUILD_REQUIRES="libiconv-devel"

PKG_NAMES="${NAME} lib${NAME}1 lib${NAME}-devel"
wavpack_CONTENTS='usr/bin/*.exe usr/share/'
libwavpack1_CONTENTS="usr/bin/*-1.dll"
libwavpack_devel_CONTENTS='usr/include/ usr/lib/'


[ITA] soxr

2023-09-09 Thread Takashi Yano via Cygwin-apps
I'd like to adopt package soxr.
Thanks in advance.

-- 
Takashi Yano 
inherit cmake

NAME="soxr"
VERSION=0.1.3
RELEASE=1
LICENSE="LGPL-2.1-or-later"
CATEGORY="Libs"
SUMMARY="SoX Resampler library"
DESCRIPTION="The SoX Resampler library performs one-dimensional sample-rate
conversion.  It may be used, for example, to resample PCM-encoded audio."
HOMEPAGE="http://soxr.sourceforge.net/;
SRC_URI="mirror://sourceforge/soxr/soxr-${VERSION}-Source.tar.xz"
SRC_DIR="soxr-${VERSION}-Source"

PKG_NAMES="libsoxr0 libsoxr-devel libsoxr-lsr0 libsoxr-lsr-devel"
libsoxr0_CONTENTS="
--exclude=examples
usr/bin/cygsoxr-0.dll
usr/share/doc/
"
libsoxr_devel_CONTENTS="
usr/include/soxr.h
usr/lib/libsoxr.dll.a
usr/lib/pkgconfig/soxr.pc
usr/share/doc/soxr/examples/
"
libsoxr_lsr0_CONTENTS="
usr/bin/cygsoxr-lsr-0.dll
"
libsoxr_lsr_devel_CONTENTS="
usr/include/soxr-lsr.h
usr/lib/libsoxr-lsr.dll.a
usr/lib/pkgconfig/soxr-lsr.pc
"

CYGCMAKE_ARGS="-DDOC_INSTALL_DIR=/usr/share/doc/soxr"

src_test() {
cd ${B}
PATH=${B}/src:$PATH \
cygtest
}


[ITA] libsamplerate

2023-09-09 Thread Takashi Yano via Cygwin-apps
I'd like to adopt the package libsamplerate.
Thanks in advance.

-- 
Takashi Yano 
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.ac2021-09-05 20:48:12.0 
+0900
+++ src/libsamplerate-0.2.2/configure.ac2023-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.c2021-05-23 
23:28:23.0 +0900
+++ src/libsamplerate-0.2.2/examples/audio_out.c2023-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) ;