pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/fluidsynth fluidsynth: Optionally support more a...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f7409b252888
branches: trunk
changeset: 341237:f7409b252888
user: nia <nia%pkgsrc.org@localhost>
date: Wed Oct 16 19:25:44 2019 +0000
description:
fluidsynth: Optionally support more audio backends.
diffstat:
audio/fluidsynth/Makefile | 3 +-
audio/fluidsynth/distinfo | 4 +-
audio/fluidsynth/options.mk | 35 ++++++++++++++++
audio/fluidsynth/patches/patch-CMakeLists.txt | 19 ++++++++
audio/fluidsynth/patches/patch-src_drivers_fluid__alsa.c | 21 +++++++++
5 files changed, 80 insertions(+), 2 deletions(-)
diffs (117 lines):
diff -r d9c76ccfc67c -r f7409b252888 audio/fluidsynth/Makefile
--- a/audio/fluidsynth/Makefile Wed Oct 16 16:50:51 2019 +0000
+++ b/audio/fluidsynth/Makefile Wed Oct 16 19:25:44 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2019/10/14 15:20:18 adam Exp $
+# $NetBSD: Makefile,v 1.29 2019/10/16 19:25:44 nia Exp $
DISTNAME= fluidsynth-2.0.7
CATEGORIES= audio
@@ -39,6 +39,7 @@
. endif
.endif
+.include "options.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../devel/libgetopt/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
diff -r d9c76ccfc67c -r f7409b252888 audio/fluidsynth/distinfo
--- a/audio/fluidsynth/distinfo Wed Oct 16 16:50:51 2019 +0000
+++ b/audio/fluidsynth/distinfo Wed Oct 16 19:25:44 2019 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.15 2019/10/06 17:29:33 nia Exp $
+$NetBSD: distinfo,v 1.16 2019/10/16 19:25:44 nia Exp $
SHA1 (fluidsynth-2.0.7.tar.gz) = fd92957fbb915598361cb16249f190ce0f01416c
RMD160 (fluidsynth-2.0.7.tar.gz) = 3f71d90e4f46609cd3eae32ae7916be098b7b161
SHA512 (fluidsynth-2.0.7.tar.gz) = c939c77277767541b90ae8bc24687cd9cd11b375264e6b5017658f5fd9c5637a3ce09bc4ad837a349e4a63883fe5ecbe80e65dd91d2cbf71072bcbcfc068614e
Size (fluidsynth-2.0.7.tar.gz) = 1315250 bytes
+SHA1 (patch-CMakeLists.txt) = 79804b84964e9557180c0f86e36d465fac7126fe
+SHA1 (patch-src_drivers_fluid__alsa.c) = a482764f0bbc15b5cf04e6920374b2f4811760aa
diff -r d9c76ccfc67c -r f7409b252888 audio/fluidsynth/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fluidsynth/options.mk Wed Oct 16 19:25:44 2019 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: options.mk,v 1.1 2019/10/16 19:25:44 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.fluidsynth
+PKG_SUPPORTED_OPTIONS= alsa jack portaudio pulseaudio
+PKG_SUGGESTED_OPTIONS.Linux= alsa
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Malsa)
+CMAKE_ARGS+= -Denable-alsa=ON
+.include "../../audio/alsa-lib/buildlink3.mk"
+.else
+CMAKE_ARGS+= -Denable-alsa=OFF
+.endif
+
+.if !empty(PKG_OPTIONS:Mjack)
+CMAKE_ARGS+= -Denable-jack=ON
+.include "../../audio/jack/buildlink3.mk"
+.else
+CMAKE_ARGS+= -Denable-jack=OFF
+.endif
+
+.if !empty(PKG_OPTIONS:Mportaudio)
+CMAKE_ARGS+= -Denable-portaudio=ON
+.include "../../audio/portaudio-devel/buildlink3.mk"
+.else
+CMAKE_ARGS+= -Denable-portaudio=OFF
+.endif
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+CMAKE_ARGS+= -Denable-pulseaudio=ON
+.include "../../audio/pulseaudio/buildlink3.mk"
+.else
+CMAKE_ARGS+= -Denable-pulseaudio=OFF
+.endif
diff -r d9c76ccfc67c -r f7409b252888 audio/fluidsynth/patches/patch-CMakeLists.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fluidsynth/patches/patch-CMakeLists.txt Wed Oct 16 19:25:44 2019 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2019/10/16 19:25:44 nia Exp $
+
+Allow building ALSA support on more systems.
+
+--- CMakeLists.txt.orig 2019-09-27 14:53:27.000000000 +0000
++++ CMakeLists.txt
+@@ -75,10 +75,10 @@ option ( enable-readline "compile readli
+ option ( enable-threads "enable multi-threading support (such as parallel voice synthesis)" on )
+
+ # Platform specific options
+-if ( CMAKE_SYSTEM MATCHES "Linux|FreeBSD|DragonFly" )
++if ( TRUE )
+ option ( enable-lash "compile LASH support (if it is available)" on )
+ option ( enable-alsa "compile ALSA support (if it is available)" on )
+-endif ( CMAKE_SYSTEM MATCHES "Linux|FreeBSD|DragonFly" )
++endif ( TRUE )
+
+ if ( CMAKE_SYSTEM MATCHES "Linux" )
+ option ( enable-systemd "compile systemd support (if it is available)" on )
diff -r d9c76ccfc67c -r f7409b252888 audio/fluidsynth/patches/patch-src_drivers_fluid__alsa.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fluidsynth/patches/patch-src_drivers_fluid__alsa.c Wed Oct 16 19:25:44 2019 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_drivers_fluid__alsa.c,v 1.1 2019/10/16 19:25:44 nia Exp $
+
+Support building on non-Linux.
+
+--- src/drivers/fluid_alsa.c.orig 2019-09-27 14:53:27.000000000 +0000
++++ src/drivers/fluid_alsa.c
+@@ -43,6 +43,14 @@
+
+ #define BUFFER_LENGTH 512
+
++#ifndef ESTRPIPE
++#define ESTRPIPE EPIPE
++#endif
++
++#ifndef EBADFD
++#define EBADFD EBADF
++#endif
++
+ /** fluid_alsa_audio_driver_t
+ *
+ * This structure should not be accessed directly. Use audio port
Home |
Main Index |
Thread Index |
Old Index