summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/fluidsynth/Makefile11
-rw-r--r--audio/fluidsynth/distinfo17
-rw-r--r--audio/fluidsynth/patches/patch-aa150
-rw-r--r--audio/fluidsynth/patches/patch-ab31
-rw-r--r--audio/fluidsynth/patches/patch-ac22
-rw-r--r--audio/fluidsynth/patches/patch-ad6
-rw-r--r--audio/fluidsynth/patches/patch-ae24
7 files changed, 65 insertions, 196 deletions
diff --git a/audio/fluidsynth/Makefile b/audio/fluidsynth/Makefile
index 59c1beca711..c7fa96af338 100644
--- a/audio/fluidsynth/Makefile
+++ b/audio/fluidsynth/Makefile
@@ -1,12 +1,11 @@
-# $NetBSD: Makefile,v 1.16 2012/01/11 17:05:51 hans Exp $
+# $NetBSD: Makefile,v 1.17 2012/01/28 13:15:32 wiz Exp $
-DISTNAME= fluidsynth-1.0.9
-PKGREVISION= 1
+DISTNAME= fluidsynth-1.1.5
CATEGORIES= audio
-MASTER_SITES= http://savannah.nongnu.org/download/fluid/
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fluidsynth/}
MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://fluidsynth.resonance.org/trac
+HOMEPAGE= http://www.fluidsynth.org/
COMMENT= Software synthesizer based on SoundFont2
LICENSE= gnu-lgpl-v2
@@ -14,6 +13,7 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
PKGCONFIG_OVERRIDE= fluidsynth.pc.in
PTHREAD_AUTO_VARS= yes
@@ -26,6 +26,7 @@ CPPFLAGS.SunOS+= -Du_int32_t=uint32_t -Du_int64_t=uint64_t
CPPFLAGS.SunOS+= -DSOUND_PCM_WRITE_CHANNELS=SNDCTL_DSP_CHANNELS
LIBS.SunOS+= -lsocket
+.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libgetopt/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
diff --git a/audio/fluidsynth/distinfo b/audio/fluidsynth/distinfo
index 3022a83075c..106a92e5203 100644
--- a/audio/fluidsynth/distinfo
+++ b/audio/fluidsynth/distinfo
@@ -1,10 +1,9 @@
-$NetBSD: distinfo,v 1.8 2009/05/13 22:08:21 wiz Exp $
+$NetBSD: distinfo,v 1.9 2012/01/28 13:15:32 wiz Exp $
-SHA1 (fluidsynth-1.0.9.tar.gz) = fed8dcd8a816981e1e30ac8818a45949eb4f59c0
-RMD160 (fluidsynth-1.0.9.tar.gz) = 077ecb13000ee58ebc0cfcde65323a7a1128f1e2
-Size (fluidsynth-1.0.9.tar.gz) = 927002 bytes
-SHA1 (patch-aa) = 5a45b13669c928a10f6bddc0bfdd351a7cd863fc
-SHA1 (patch-ab) = 5bd951cdbc23fc69a5bd6cd09418505ee8447235
-SHA1 (patch-ac) = 8b4b9b5bad17d06b77f725d50fa0b98867103228
-SHA1 (patch-ad) = 01c32d97c8ff02ba34e0bf903206c74b5b69d92c
-SHA1 (patch-ae) = 666286cb52c8cedeb1de5c863f9d9f9e81ef2e86
+SHA1 (fluidsynth-1.1.5.tar.gz) = 2f98696ca0a6757684f0a881bf92b3149536fdf2
+RMD160 (fluidsynth-1.1.5.tar.gz) = f95f5a7091cede2d0991bab7fa8089e79925544f
+Size (fluidsynth-1.1.5.tar.gz) = 932960 bytes
+SHA1 (patch-aa) = 1819b1e969b4b98dc7677cdfbff624be3f3ec666
+SHA1 (patch-ac) = 81ca2243404a4fd1a3f93da82116c276db7fb42c
+SHA1 (patch-ad) = edb221360d033804d04c15560a80e9d08e8406bc
+SHA1 (patch-ae) = a536d0d16e7b4a138e69b0b0d91f2926e0675e45
diff --git a/audio/fluidsynth/patches/patch-aa b/audio/fluidsynth/patches/patch-aa
index 701b8797bee..c9be99e42ae 100644
--- a/audio/fluidsynth/patches/patch-aa
+++ b/audio/fluidsynth/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.2 2007/12/16 15:18:29 adam Exp $
+$NetBSD: patch-aa,v 1.3 2012/01/28 13:15:32 wiz Exp $
---- src/fluid_oss.c.orig 2007-09-19 08:10:57.000000000 +0200
-+++ src/fluid_oss.c
-@@ -43,6 +43,12 @@
+--- src/drivers/fluid_oss.c.orig 2011-09-04 07:38:58.000000000 +0000
++++ src/drivers/fluid_oss.c
+@@ -42,6 +42,12 @@
#include <errno.h>
#include <sys/poll.h>
@@ -14,8 +14,8 @@ $NetBSD: patch-aa,v 1.2 2007/12/16 15:18:29 adam Exp $
+
#define BUFFER_LENGTH 512
- /* SCHED_FIFO priorities for OSS threads (see pthread_attr_setschedparam) */
-@@ -103,7 +109,7 @@ static void* fluid_oss_midi_run(void* d)
+ // Build issue on some systems (OSS 4.0)?
+@@ -101,7 +107,7 @@ static void fluid_oss_midi_run(void* d);
void
fluid_oss_audio_driver_settings(fluid_settings_t* settings)
{
@@ -24,91 +24,25 @@ $NetBSD: patch-aa,v 1.2 2007/12/16 15:18:29 adam Exp $
}
/*
-@@ -122,8 +128,10 @@ new_fluid_oss_audio_driver(fluid_setting
- int format;
- pthread_attr_t attr;
- int err;
-+#if !defined(__NetBSD__)
- int sched = SCHED_FIFO;
- struct sched_param priority;
-+#endif
-
- dev = FLUID_NEW(fluid_oss_audio_driver_t);
- if (dev == NULL) {
-@@ -168,7 +176,7 @@ new_fluid_oss_audio_driver(fluid_setting
- }
-
- if (!fluid_settings_getstr(settings, "audio.oss.device", &devname)) {
-- devname = "/dev/dsp";
-+ devname = DEVOSSAUDIO;
- }
-
- if (stat(devname, &devstat) == -1) {
-@@ -229,6 +237,13 @@ new_fluid_oss_audio_driver(fluid_setting
- goto error_recovery;
- }
-
-+#ifdef __NetBSD__
-+ err = pthread_create(&dev->thread, &attr, fluid_oss_audio_run, (void*) dev);
-+ if (err) {
-+ FLUID_LOG(FLUID_ERR, "Couldn't create audio thread");
-+ goto error_recovery;
-+ }
-+#else
- /* the pthread_create man page explains that
- pthread_attr_setschedpolicy returns an error if the user is not
- permitted the set SCHED_FIFO. it seems however that no error is
-@@ -264,6 +279,7 @@ new_fluid_oss_audio_driver(fluid_setting
- }
- break;
+@@ -164,7 +170,7 @@ new_fluid_oss_audio_driver(fluid_setting
}
-+#endif /* __NetBSD__ */
- return (fluid_audio_driver_t*) dev;
+ if (!fluid_settings_dupstr(settings, "audio.oss.device", &devname) || !devname) { /* ++ alloc device name */
+- devname = FLUID_STRDUP ("/dev/dsp");
++ devname = FLUID_STRDUP (DEVOSSAUDIO);
-@@ -285,8 +301,10 @@ new_fluid_oss_audio_driver2(fluid_settin
- int format;
- pthread_attr_t attr;
- int err;
-+#if !defined(__NetBSD__)
- int sched = SCHED_FIFO;
- struct sched_param priority;
-+#endif
+ if (devname == NULL) {
+ FLUID_LOG(FLUID_ERR, "Out of memory");
+@@ -278,7 +284,7 @@ new_fluid_oss_audio_driver2(fluid_settin
- dev = FLUID_NEW(fluid_oss_audio_driver_t);
- if (dev == NULL) {
-@@ -311,7 +329,7 @@ new_fluid_oss_audio_driver2(fluid_settin
+ if (!fluid_settings_dupstr(settings, "audio.oss.device", &devname) || !devname) {
+- devname = FLUID_STRDUP ("/dev/dsp");
++ devname = FLUID_STRDUP (DEVOSSAUDIO);
- if (!fluid_settings_getstr(settings, "audio.oss.device", &devname)) {
-- devname = "/dev/dsp";
-+ devname = DEVOSSAUDIO;
- }
- if (stat(devname, &devstat) == -1) {
- FLUID_LOG(FLUID_ERR, "Device <%s> does not exists", devname);
-@@ -380,6 +398,13 @@ new_fluid_oss_audio_driver2(fluid_settin
- goto error_recovery;
- }
-
-+#ifdef __NetBSD__
-+ err = pthread_create(&dev->thread, &attr, fluid_oss_audio_run2, (void*) dev);
-+ if (err) {
-+ FLUID_LOG(FLUID_ERR, "Couldn't create audio2 thread");
-+ goto error_recovery;
-+ }
-+#else
- /* the pthread_create man page explains that
- pthread_attr_setschedpolicy returns an error if the user is not
- permitted the set SCHED_FIFO. it seems however that no error is
-@@ -415,6 +440,7 @@ new_fluid_oss_audio_driver2(fluid_settin
- }
- break;
- }
-+#endif /* __NetBSD__ */
-
- return (fluid_audio_driver_t*) dev;
-
-@@ -642,7 +668,7 @@ fluid_oss_audio_run2(void* d)
+ if (!devname)
+ {
+@@ -503,7 +509,7 @@ fluid_oss_audio_run2(void* d)
void fluid_oss_midi_driver_settings(fluid_settings_t* settings)
{
@@ -117,46 +51,12 @@ $NetBSD: patch-aa,v 1.2 2007/12/16 15:18:29 adam Exp $
}
/*
-@@ -655,8 +681,10 @@ new_fluid_oss_midi_driver(fluid_settings
- int err;
- fluid_oss_midi_driver_t* dev;
- pthread_attr_t attr;
-+#if !defined __NetBSD__
- int sched = SCHED_FIFO;
- struct sched_param priority;
-+#endif
- char* device;
+@@ -546,7 +552,7 @@ new_fluid_oss_midi_driver(fluid_settings
+ fluid_settings_dupstr(settings, "midi.oss.device", &device); /* ++ alloc device name */
- /* not much use doing anything */
-@@ -687,7 +715,7 @@ new_fluid_oss_midi_driver(fluid_settings
- /* get the device name. if none is specified, use the default device. */
- fluid_settings_getstr(settings, "midi.oss.device", &device);
if (device == NULL) {
-- device = "/dev/midi";
-+ device = DEVOSSMIDI;
- }
-
- /* open the default hardware device. only use midi in. */
-@@ -704,6 +732,14 @@ new_fluid_oss_midi_driver(fluid_settings
- FLUID_LOG(FLUID_ERR, "Couldn't initialize midi thread attributes");
- goto error_recovery;
- }
-+
-+#ifdef __NetBSD__
-+ err = pthread_create(&dev->thread, &attr, fluid_oss_midi_run, (void*) dev);
-+ if (err) {
-+ FLUID_LOG(FLUID_ERR, "Couldn't create midi thread");
-+ goto error_recovery;
-+ }
-+#else
- /* use fifo scheduling. if it fails, use default scheduling. */
- while (1) {
- err = pthread_attr_setschedpolicy(&attr, sched);
-@@ -735,6 +771,7 @@ new_fluid_oss_midi_driver(fluid_settings
- }
- break;
- }
-+#endif /* __NetBSD__ */
- return (fluid_midi_driver_t*) dev;
+- device = FLUID_STRDUP ("/dev/midi");
++ device = FLUID_STRDUP (DEVOSSMIDI);
- error_recovery:
+ if (!device)
+ {
diff --git a/audio/fluidsynth/patches/patch-ab b/audio/fluidsynth/patches/patch-ab
deleted file mode 100644
index 4d6f7a357ae..00000000000
--- a/audio/fluidsynth/patches/patch-ab
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD: patch-ab,v 1.2 2007/12/16 15:18:29 adam Exp $
-
---- src/fluid_sys.c.orig 2007-11-11 20:47:30.000000000 +0100
-+++ src/fluid_sys.c
-@@ -709,8 +709,10 @@ new_fluid_timer(int msec, fluid_timer_ca
- {
- pthread_attr_t *attr = NULL;
- pthread_attr_t rt_attr;
-+#if !defined(__NetBSD__)
- int sched = SCHED_FIFO;
- struct sched_param priority;
-+#endif
- int err;
-
- fluid_timer_t* timer = FLUID_NEW(fluid_timer_t);
-@@ -726,6 +728,7 @@ new_fluid_timer(int msec, fluid_timer_ca
- timer->auto_destroy = auto_destroy;
-
- err = pthread_attr_init(&rt_attr);
-+#if !defined(__NetBSD__)
- if (err == 0) {
- err = pthread_attr_setschedpolicy(&rt_attr, SCHED_FIFO);
- if (err == 0) {
-@@ -736,6 +739,7 @@ new_fluid_timer(int msec, fluid_timer_ca
- }
- }
- }
-+#endif
-
- if (new_thread) {
- err = pthread_create(&timer->thread, attr, fluid_timer_start, (void*) timer);
diff --git a/audio/fluidsynth/patches/patch-ac b/audio/fluidsynth/patches/patch-ac
index 3246a66faaf..d7599ff3a47 100644
--- a/audio/fluidsynth/patches/patch-ac
+++ b/audio/fluidsynth/patches/patch-ac
@@ -1,9 +1,9 @@
-$NetBSD: patch-ac,v 1.5 2007/12/16 15:18:29 adam Exp $
+$NetBSD: patch-ac,v 1.6 2012/01/28 13:15:32 wiz Exp $
---- configure.orig 2007-11-17 22:32:16.000000000 +0100
+--- configure.orig 2011-09-04 07:38:58.000000000 +0000
+++ configure
-@@ -20727,7 +20727,7 @@ esac
-
+@@ -11587,7 +11587,7 @@ else
+ fi
- if test "$mingw32_support" == "yes"; then
@@ -11,12 +11,12 @@ $NetBSD: patch-ac,v 1.5 2007/12/16 15:18:29 adam Exp $
MINGW32_SUPPORT_TRUE=
MINGW32_SUPPORT_FALSE='#'
else
-@@ -20899,7 +20899,7 @@ cat >>confdefs.h <<\_ACEOF
- _ACEOF
+@@ -11723,7 +11723,7 @@ if test "$GCC" = yes; then
+ $as_echo "#define DEBUG 1" >>confdefs.h
- else
-- CFLAGS="${CFLAGS} ${FCCFLAGS} -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Wno-unused -Winline"
-+ CFLAGS="${CFLAGS} ${FCCFLAGS} -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Wno-unused -Winline"
+ else
+- CFLAGS="${CFLAGS} ${FCCFLAGS} -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Winline -Wno-unused-parameter -Wno-cast-qual"
++ CFLAGS="${CFLAGS} ${FCCFLAGS} -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Winline -Wno-unused-parameter -Wno-cast-qual"
+
+ $as_echo "#define DEBUG 0" >>confdefs.h
- cat >>confdefs.h <<\_ACEOF
- #define DEBUG 0
diff --git a/audio/fluidsynth/patches/patch-ad b/audio/fluidsynth/patches/patch-ad
index e050e5f9d8b..bf994d033a5 100644
--- a/audio/fluidsynth/patches/patch-ad
+++ b/audio/fluidsynth/patches/patch-ad
@@ -1,7 +1,7 @@
-$NetBSD: patch-ad,v 1.3 2009/05/13 22:08:21 wiz Exp $
+$NetBSD: patch-ad,v 1.4 2012/01/28 13:15:32 wiz Exp $
---- src/fluid_sys.h.orig 2009-02-04 07:29:24.000000000 +0000
-+++ src/fluid_sys.h
+--- src/utils/fluid_sys.h.orig 2009-02-04 07:29:24.000000000 +0000
++++ src/utils/fluid_sys.h
@@ -284,7 +284,7 @@ extern fluid_profile_data_t fluid_profil
sample data.
*/
diff --git a/audio/fluidsynth/patches/patch-ae b/audio/fluidsynth/patches/patch-ae
index 050cf27d5c0..0b7d77b514d 100644
--- a/audio/fluidsynth/patches/patch-ae
+++ b/audio/fluidsynth/patches/patch-ae
@@ -1,19 +1,19 @@
-$NetBSD: patch-ae,v 1.4 2009/05/13 22:08:21 wiz Exp $
+$NetBSD: patch-ae,v 1.5 2012/01/28 13:15:32 wiz Exp $
---- src/fluidsynth.c.orig 2009-02-04 07:45:02.000000000 +0000
+--- src/fluidsynth.c.orig 2011-09-04 07:38:58.000000000 +0000
+++ src/fluidsynth.c
-@@ -212,9 +212,9 @@ int main(int argc, char** argv)
- int audio_channels = 0;
+@@ -293,9 +293,9 @@ int main(int argc, char** argv)
int with_server = 0;
int dump = 0;
+ int fast_render = 0;
- int connect_lash = 1;
- char *optchars = "a:C:c:df:G:g:hijK:L:lm:no:p:R:r:sVvz:";
+ char *optchars = "a:C:c:dE:f:F:G:g:hijK:L:lm:nO:o:p:R:r:sT:Vvz:";
#ifdef LASH_ENABLED
+ int connect_lash = 1;
int enabled_lash = 0; /* set to TRUE if lash gets enabled */
fluid_lash_args_t *lash_args;
-@@ -237,7 +237,9 @@ int main(int argc, char** argv)
+@@ -323,7 +323,9 @@ int main(int argc, char** argv)
{"audio-groups", 1, 0, 'G'},
{"chorus", 1, 0, 'C'},
{"connect-jack-outputs", 0, 0, 'j'},
@@ -21,9 +21,9 @@ $NetBSD: patch-ae,v 1.4 2009/05/13 22:08:21 wiz Exp $
{"disable-lash", 0, 0, 'l'},
+#endif
{"dump", 0, 0, 'd'},
+ {"fast-render", 1, 0, 'F'},
{"gain", 1, 0, 'g'},
- {"help", 0, 0, 'h'},
-@@ -344,9 +346,11 @@ int main(int argc, char** argv)
+@@ -458,9 +460,11 @@ int main(int argc, char** argv)
audio_channels = atoi(optarg);
fluid_settings_setint(settings, "synth.audio-channels", audio_channels);
break;
@@ -33,9 +33,9 @@ $NetBSD: patch-ae,v 1.4 2009/05/13 22:08:21 wiz Exp $
break;
+#endif
case 'm':
- fluid_settings_setstr(settings, "midi.driver", optarg);
- break;
-@@ -421,6 +425,7 @@ int main(int argc, char** argv)
+ if (FLUID_STRCMP (optarg, "help") == 0)
+ {
+@@ -572,6 +576,7 @@ int main(int argc, char** argv)
#endif
#ifdef LASH_ENABLED
@@ -43,7 +43,7 @@ $NetBSD: patch-ae,v 1.4 2009/05/13 22:08:21 wiz Exp $
/* connect to the lash server */
if (connect_lash)
{
-@@ -428,6 +433,7 @@ int main(int argc, char** argv)
+@@ -579,6 +584,7 @@ int main(int argc, char** argv)
fluid_settings_setint (settings, "lash.enable", enabled_lash ? 1 : 0);
}
#endif