pkgsrc-WIP-changes archive

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

audio/faun: Add version 0.2.1



Module Name:	pkgsrc-wip
Committed By:	Frédéric Fauberteau <triaxx%NetBSD.org@localhost>
Pushed By:	frederic
Date:		Tue Feb 11 22:44:03 2025 +0100
Changeset:	44d15b16de069b5a6ef9c5dd6cc896cbc868ac3a

Modified Files:
	Makefile
Added Files:
	faun/COMMIT_MSG
	faun/DESCR
	faun/Makefile
	faun/PLIST
	faun/distinfo
	faun/patches/patch-Makefile
	faun/patches/patch-faun.c

Log Message:
audio/faun: Add version 0.2.1

Packaged in wip by Frédéric Fauberteau

Faun is a high-level C API for playback of sound & music in games & demos.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=44d15b16de069b5a6ef9c5dd6cc896cbc868ac3a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                    |  1 +
 faun/COMMIT_MSG             |  5 +++++
 faun/DESCR                  | 23 +++++++++++++++++++++++
 faun/Makefile               | 22 ++++++++++++++++++++++
 faun/PLIST                  |  5 +++++
 faun/distinfo               |  7 +++++++
 faun/patches/patch-Makefile | 28 ++++++++++++++++++++++++++++
 faun/patches/patch-faun.c   | 15 +++++++++++++++
 8 files changed, 106 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 7758c0d670..56d0f593f4 100644
--- a/Makefile
+++ b/Makefile
@@ -923,6 +923,7 @@ SUBDIR+=	fastrpc
 SUBDIR+=	fasttree
 SUBDIR+=	fastx-toolkit
 SUBDIR+=	fatsort
+SUBDIR+=	faun
 SUBDIR+=	fbida
 SUBDIR+=	fbpager
 SUBDIR+=	fbpanel
diff --git a/faun/COMMIT_MSG b/faun/COMMIT_MSG
new file mode 100644
index 0000000000..d3f94a5fb0
--- /dev/null
+++ b/faun/COMMIT_MSG
@@ -0,0 +1,5 @@
+audio/faun: Add version 0.2.1
+
+Packaged in wip by Frédéric Fauberteau
+
+Faun is a high-level C API for playback of sound & music in games & demos.
diff --git a/faun/DESCR b/faun/DESCR
new file mode 100644
index 0000000000..1034313a48
--- /dev/null
+++ b/faun/DESCR
@@ -0,0 +1,23 @@
+Faun is a high-level C API for playback of sound & music in games & demos.
+It is a modestly sized library designed to use pre-packaged audio and is not
+intended for synthesizer or audio manipulation applications.  The shared
+library is about half the size the SDL 2 & Allegro 5 mixer libraries.
+
+The following audio formats can be played:
+  - FLAC
+  - Ogg Vorbis
+  - [rFX][] (sfxr synthesizer)
+  - WAVE
+
+The following operating systems are supported:
+  - Android (via AAudio)
+  - Linux (via PulseAudio)
+  - Windows (via Windows Audio Session)
+
+Features include:
+  - Support for audio embedded in larger files.
+  - Playback of stream fragments.
+  - Fading volume in & out.
+  - Source playback from a queue of buffers.
+  - Signaling when a sound is finished playing.
+  - A bytecode language for running simple playback sequences.
diff --git a/faun/Makefile b/faun/Makefile
new file mode 100644
index 0000000000..04607e6e5e
--- /dev/null
+++ b/faun/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+DISTNAME=	v0.2.1
+PKGNAME=	faun-${DISTNAME:S,^v,,}
+CATEGORIES=	audio
+MASTER_SITES=	https://codeberg.org/wickedsmoke/faun/archive/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://wickedsmoke.codeberg.page/faun_doc/
+COMMENT=	High-level C audio library
+LICENSE=	mit
+
+WRKSRC=		${WRKDIR}/faun
+HAS_CONFIGURE=	yes
+USE_TOOLS+=	bash:run gmake
+
+REPLACE_BASH=	configure
+
+.include "../../audio/flac/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
+.include "../../audio/pulseaudio/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/faun/PLIST b/faun/PLIST
new file mode 100644
index 0000000000..6689f31455
--- /dev/null
+++ b/faun/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+include/faun.h
+lib/libfaun.so
+lib/libfaun.so.0
+lib/libfaun.so.${PKGVERSION}
diff --git a/faun/distinfo b/faun/distinfo
new file mode 100644
index 0000000000..cc2cd3ced6
--- /dev/null
+++ b/faun/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (v0.2.1.tar.gz) = 89bf32b970bce0f71aaadec4e0bf617fc10ea7b2b448450981d041b1ebf30cc4
+SHA512 (v0.2.1.tar.gz) = d145d99519c6836147f27bada0b87b70ad864b9bb3af3860183fc7a1c0b51c10a6f904ca365f7016510088d4f83e42dbd2d0e9dd260ad73209e29985af3a9fd4
+Size (v0.2.1.tar.gz) = 118623 bytes
+SHA1 (patch-Makefile) = 21a45e8c78b348ec88e76c52255a8eea8556bc63
+SHA1 (patch-faun.c) = 5d28361580c603748d65cca4b60533c2960ed8e5
diff --git a/faun/patches/patch-Makefile b/faun/patches/patch-Makefile
new file mode 100644
index 0000000000..6f9c8dacec
--- /dev/null
+++ b/faun/patches/patch-Makefile
@@ -0,0 +1,28 @@
+$NetBSD$
+
+Use pkgsrc install macros.
+
+--- Makefile.orig	2025-01-04 16:35:20.000000000 +0000
++++ Makefile
+@@ -79,14 +79,15 @@ crossfade: example/crossfade.c $(FAUN_LI
+ 	$(CC) -Wall -W $< $(CFLAGS) -I. -L. -lfaun $(DEP_STATIC) $(LDFLAGS) -o $@
+ 
+ install:
+-	mkdir -p $(DESTDIR)/include $(LIB_DIR)
+-	install -m 644 faun.h $(DESTDIR)/include
++	$(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/include
++	$(BSD_INSTALL_LIB_DIR) $(DESTDIR)$(PREFIX)/lib
++	$(BSD_INSTALL_DATA) faun.h $(DESTDIR)$(PREFIX)/include
+ ifdef STATIC_LIB
+-	install -m 644 $(FAUN_LIB) $(LIB_DIR)
++	$(BSD_INSTALL_LIB) $(FAUN_LIB) $(DESTDIR)$(PREFIX)/lib
+ else
+-	install -m 755 $(FAUN_LIB) $(LIB_DIR)
+-	ln -s $(FAUN_LIB) $(LIB_DIR)/$(FAUN_SO)
+-	ln -s $(FAUN_LIB) $(LIB_DIR)/libfaun.so
++	$(BSD_INSTALL_LIB) $(FAUN_LIB) $(DESTDIR)$(PREFIX)/lib
++	ln -s $(FAUN_LIB) $(DESTDIR)$(PREFIX)/lib/$(FAUN_SO)
++	ln -s $(FAUN_LIB) $(DESTDIR)$(PREFIX)/lib/libfaun.so
+ endif
+ 
+ clean:
diff --git a/faun/patches/patch-faun.c b/faun/patches/patch-faun.c
new file mode 100644
index 0000000000..2202d98e9d
--- /dev/null
+++ b/faun/patches/patch-faun.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Add NetBSD support.
+
+--- faun.c.orig	2025-01-04 16:35:20.000000000 +0000
++++ faun.c
+@@ -42,7 +42,7 @@
+ 
+ #ifdef ANDROID
+ #include "sys_aaudio.c"
+-#elif defined(__linux__)
++#elif defined(__linux__) || defined(__NetBSD__)
+ #include "sys_pulseaudio.c"
+ #elif defined(_WIN32)
+ #include "sys_wasapi.c"


Home | Main Index | Thread Index | Old Index