pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio Add SDL2_sound version 2.0.1 to pkgsrc-current



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c7d864b70f46
branches:  trunk
changeset: 386162:c7d864b70f46
user:      nros <nros%pkgsrc.org@localhost>
date:      Sun Oct 02 13:41:54 2022 +0000

description:
Add SDL2_sound version 2.0.1 to pkgsrc-current

SDL2_sound is a library that handles the decoding of several popular sound file
formats, such as .WAV and .MP3.  It is meant to make the programmer's sound
playback tasks simpler.

The programmer gives SDL2_sound a filename, or feeds it data directly from one
of many sources, and then reads the decoded waveform data back at her leisure.

If resource constraints are a concern, SDL2_sound can process sound data in
programmer-specified blocks.  Alternately, SDL2_sound can decode a whole sound
file and hand back a single pointer to the whole waveform.  SDL2_sound can also
handle sample rate, audio format, and channel conversion on-the-fly and
behind-the-scenes, if the programmer desires.

diffstat:

 audio/Makefile                 |   3 ++-
 audio/SDL2_sound/DESCR         |  12 ++++++++++++
 audio/SDL2_sound/Makefile      |  24 ++++++++++++++++++++++++
 audio/SDL2_sound/PLIST         |   6 ++++++
 audio/SDL2_sound/buildlink3.mk |  14 ++++++++++++++
 audio/SDL2_sound/distinfo      |   5 +++++
 6 files changed, 63 insertions(+), 1 deletions(-)

diffs (96 lines):

diff -r 72a9b112af35 -r c7d864b70f46 audio/Makefile
--- a/audio/Makefile    Sun Oct 02 12:38:30 2022 +0000
+++ b/audio/Makefile    Sun Oct 02 13:41:54 2022 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.659 2022/09/24 20:21:25 adam Exp $
+# $NetBSD: Makefile,v 1.660 2022/10/02 13:41:54 nros Exp $
 #
 
 COMMENT=       Audio tools, players, and libraries
 
 SUBDIR+=       SDL2_mixer
+SUBDIR+=       SDL2_sound
 SUBDIR+=       SDL_mixer
 SUBDIR+=       SDL_sound
 SUBDIR+=       abcde
diff -r 72a9b112af35 -r c7d864b70f46 audio/SDL2_sound/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/SDL2_sound/DESCR    Sun Oct 02 13:41:54 2022 +0000
@@ -0,0 +1,12 @@
+SDL2_sound is a library that handles the decoding of several popular sound file
+formats, such as .WAV and .MP3.  It is meant to make the programmer's sound
+playback tasks simpler.
+
+The programmer gives SDL2_sound a filename, or feeds it data directly from one
+of many sources, and then reads the decoded waveform data back at her leisure.
+
+If resource constraints are a concern, SDL2_sound can process sound data in
+programmer-specified blocks.  Alternately, SDL2_sound can decode a whole sound
+file and hand back a single pointer to the whole waveform.  SDL2_sound can also
+handle sample rate, audio format, and channel conversion on-the-fly and
+behind-the-scenes, if the programmer desires.
diff -r 72a9b112af35 -r c7d864b70f46 audio/SDL2_sound/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/SDL2_sound/Makefile Sun Oct 02 13:41:54 2022 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2022/10/02 13:41:55 nros Exp $
+
+DISTNAME=      SDL_sound-2.0.1
+PKGNAME=       ${DISTNAME:S/SDL/SDL2/}
+CATEGORIES=    audio
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=icculus/}
+GITHUB_TAG=    refs/tags/v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://icculus.org/SDL_sound/
+COMMENT=       SDL2 library to handle the decoding of different sound formats
+LICENSE=       zlib
+
+WRKSRC=                ${WRKDIR}/${DISTNAME}
+
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
+
+# dont't build and install playsound
+# to not conflict with audio/SDL_sound
+CMAKE_ARGS+=   -DSDLSOUND_BUILD_TEST:BOOL=FALSE
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 72a9b112af35 -r c7d864b70f46 audio/SDL2_sound/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/SDL2_sound/PLIST    Sun Oct 02 13:41:54 2022 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2022/10/02 13:41:55 nros Exp $
+include/SDL2/SDL_sound.h
+lib/libSDL2_sound.a
+lib/libSDL2_sound.so
+lib/libSDL2_sound.so.2
+lib/libSDL2_sound.so.${PKGVERSION}
diff -r 72a9b112af35 -r c7d864b70f46 audio/SDL2_sound/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/SDL2_sound/buildlink3.mk    Sun Oct 02 13:41:54 2022 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/10/02 13:41:55 nros Exp $
+
+BUILDLINK_TREE+=       SDL2_sound
+
+.if !defined(SDL2_SOUND_BUILDLINK3_MK)
+SDL2_SOUND_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.SDL2_sound+=     SDL2_sound>=2.0.1
+BUILDLINK_PKGSRCDIR.SDL2_sound?=       ../../audio/SDL2_sound
+
+.include "../../devel/SDL2/buildlink3.mk"
+.endif # SDL2_SOUND_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -SDL2_sound
diff -r 72a9b112af35 -r c7d864b70f46 audio/SDL2_sound/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/SDL2_sound/distinfo Sun Oct 02 13:41:54 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/10/02 13:41:55 nros Exp $
+
+BLAKE2s (SDL_sound-2.0.1.tar.gz) = cbe70c7112b322cd1abe188c427754f39edcd77d07a44f6166106b41ccaaae27
+SHA512 (SDL_sound-2.0.1.tar.gz) = 091842108ce115adfff106e036ce1ff8aa650a3ecf1375e59a78e7e1c55233edc4bc5ec584141eec7b155a4b372e041ee431a0290c3f59d8d5077d7edae4a2a7
+Size (SDL_sound-2.0.1.tar.gz) = 443682 bytes



Home | Main Index | Thread Index | Old Index