added beast Sound Engine

svn path=/nixpkgs/trunk/; revision=12647

+232
+36
pkgs/applications/audio/beast/default.nix
··· 1 + args: with args; 2 + args.stdenv.mkDerivation { 3 + name = "beast-0.7.1"; 4 + 5 + src = args.fetchurl { 6 + url = ftp://beast.gtk.org/pub/beast/v0.7/beast-0.7.1.tar.bz2; 7 + sha256 = "0jyl1i1918rsn4296w07fsf6wx3clvad522m3bzgf8ms7gxivg5l"; 8 + }; 9 + 10 + buildInputs =[zlib guile libart_lgpl pkgconfig intltool gtk glib 11 + libogg libvorbis libgnomecanvas gettext 12 + ]; 13 + 14 + inherit bash perl; 15 + 16 + patchPhase = '' 17 + unset patchPhase; patchPhase 18 + sed 's=-DG_DISABLE_DEPRECATED==g' -i `find -type f` # the patches didn't remove all occurences 19 + sed 's=/bin/bash=/$bash/bin/bash=g' -i `find -type f` 20 + sed 's=/usr/bin/perl=/$perl/bin/bash=g' -i `find -type f` 21 + ''; 22 + 23 + patches = [ 24 + (fetchurl { 25 + url = mirror://gentoo/distfiles/beast-0.7.1-guile-1.8.diff.bz2; 26 + sha256 = "dc5194deff4b0a0eec368a69090db682d0c3113044ce2c2ed017ddfec9d3814e"; 27 + }) 28 + ./patch.patch # patches taken from gentoo 29 + ]; 30 + 31 + meta = { 32 + description = "BEAST - the Bedevilled Sound Engine"; 33 + homepage = http://beast.gtk.org; 34 + license = ["GPL-2" "LGPL-2.1"]; 35 + }; 36 + }
+187
pkgs/applications/audio/beast/patch.patch
··· 1 + Index: beast-0.7.1/shell/Makefile.in 2 + =================================================================== 3 + --- beast-0.7.1.orig/shell/Makefile.in 4 + +++ beast-0.7.1/shell/Makefile.in 5 + @@ -859,10 +859,7 @@ check-before: check-installation 6 + check-installation: 7 + @for p in $(bin_PROGRAMS) ; do \ 8 + pp="$(DESTDIR)$(bindir)/$$p" ; \ 9 + - echo "TEST: test -x \"$$pp\"" ; \ 10 + - test -x "$$pp" || \ 11 + - { echo "Failed to verify installation of executable: $$pp"; \ 12 + - exit 1 ; } \ 13 + + echo "TEST: test -x \"$$pp\" Test disabled" ; \ 14 + done 15 + # Tell versions [3.59,3.63) of GNU make to not export all variables. 16 + # Otherwise a system limit (for SysV at least) may be exceeded. 17 + Index: beast-0.7.1/shell/Makefile.am 18 + =================================================================== 19 + --- beast-0.7.1.orig/shell/Makefile.am 20 + +++ beast-0.7.1/shell/Makefile.am 21 + @@ -859,10 +859,7 @@ check-before: check-installation 22 + check-installation: 23 + @for p in $(bin_PROGRAMS) ; do \ 24 + pp="$(DESTDIR)$(bindir)/$$p" ; \ 25 + - echo "TEST: test -x \"$$pp\"" ; \ 26 + - test -x "$$pp" || \ 27 + - { echo "Failed to verify installation of executable: $$pp"; \ 28 + - exit 1 ; } \ 29 + + echo "TEST: test -x \"$$pp\" Test disabled" ; \ 30 + done 31 + # Tell versions [3.59,3.63) of GNU make to not export all variables. 32 + # Otherwise a system limit (for SysV at least) may be exceeded. 33 + Index: beast-0.7.1/birnet/birnettests.h 34 + =================================================================== 35 + --- beast-0.7.1.orig/birnet/birnettests.h 36 + +++ beast-0.7.1/birnet/birnettests.h 37 + @@ -27,6 +27,7 @@ 38 + 39 + #include <glib.h> 40 + #include <string.h> 41 + +#include <signal.h> 42 + 43 + BIRNET_EXTERN_C_BEGIN(); 44 + 45 + Index: beast-0.7.1/tools/bseloopfuncs.c 46 + =================================================================== 47 + --- beast-0.7.1.orig/tools/bseloopfuncs.c 48 + +++ beast-0.7.1/tools/bseloopfuncs.c 49 + @@ -21,6 +21,7 @@ 50 + #include <string.h> 51 + #include <stdio.h> 52 + #include <math.h> 53 + +#include <signal.h> 54 + 55 + typedef struct { 56 + gdouble score; 57 + --- beast-0.7.1.orig/bse/Makefile.am 2008-06-01 13:12:28.116708321 +0200 58 + +++ beast-0.7.1/bse/Makefile.am 2008-06-01 13:12:40.000000000 +0200 59 + @@ -10,7 +10,7 @@ 60 + # need -I$(top_builddir) for <sfi/sficonfig.h> 61 + # need -I$(srcdir) for "bseserver.h" in .genprc.c 62 + # need -I. (builddir) for "bsecore.genidl.hh" in bsecore.cc 63 + -INCLUDES += -I$(top_srcdir) -I$(top_builddir) -I$(srcdir) -I. $(BSE_CFLAGS) -DG_DISABLE_DEPRECATED -DG_DISABLE_CONST_RETURNS 64 + +INCLUDES += -I$(top_srcdir) -I$(top_builddir) -I$(srcdir) -I. $(BSE_CFLAGS) -DG_DISABLE_CONST_RETURNS 65 + DEFS += $(strip \ 66 + $(patsubst %, -DG_LOG_DOMAIN=\"BSE\" -DBSE_COMPILATION, \ 67 + $(filter $(<F), $(bse_sources) $(bse_sources))) \ 68 + --- beast-0.7.1.orig/bse/zintern/Makefile.am 2008-06-01 13:14:25.880028999 +0200 69 + +++ beast-0.7.1/bse/zintern/Makefile.am 2008-06-01 13:14:38.000000000 +0200 70 + @@ -4,7 +4,7 @@ 71 + ## GNU Lesser General Public License version 2 or any later version. 72 + include $(top_srcdir)/Makefile.decl 73 + 74 + -INCLUDES += -I$(top_srcdir) -I$(top_builddir) $(BSE_CFLAGS) -DG_DISABLE_DEPRECATED -DG_DISABLE_CONST_RETURNS 75 + +INCLUDES += -I$(top_srcdir) -I$(top_builddir) $(BSE_CFLAGS) -DG_DISABLE_CONST_RETURNS 76 + 77 + ZFILE_DEFS = $(strip \ 78 + wave-mono $(srcdir)/wave-mono.bse \ 79 + --- a/configure.in 2008-06-01 15:19:46.000000000 +0200 80 + +++ b/configure.in 2008-06-01 15:27:45.000000000 +0200 81 + @@ -159,39 +159,33 @@ 82 + dnl # Define package requirements. 83 + dnl # 84 + dnl ## include acintltool.m4 to provide IT_PROG_INTLTOOL 85 + -builtin(include, acintltool.m4)dnl 86 + -AC_DEFUN([AC_I18N_REQUIREMENTS], 87 + -[ 88 + - ALL_LINGUAS=`cat "$srcdir/po/LINGUAS" | grep -v '^#' | xargs echo -n ` 89 + - AC_SUBST(ALL_LINGUAS) 90 + - AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/po/LINGUAS']) 91 + - 92 + - dnl # versioned BEAST gettext domain (po/) 93 + - BST_GETTEXT_DOMAIN=beast-v$BIN_VERSION # version without -rcZ 94 + - AC_SUBST(BST_GETTEXT_DOMAIN) 95 + - AC_DEFINE_UNQUOTED(BST_GETTEXT_DOMAIN, "$BST_GETTEXT_DOMAIN", [Versioned BEAST gettext domain]) 96 + - GETTEXT_PACKAGE=$BST_GETTEXT_DOMAIN 97 + - AC_SUBST(GETTEXT_PACKAGE) 98 + - 99 + - dnl # locale directory for all domains 100 + - dnl # (AM_GLIB_DEFINE_LOCALEDIR() could do this if it would do AC_SUBST()) 101 + - saved_prefix="$prefix" 102 + - saved_exec_prefix="$exec_prefix" 103 + - test "x$prefix" = xNONE && prefix=$ac_default_prefix 104 + - test "x$exec_prefix" = xNONE && exec_prefix=$prefix 105 + - if test "x$CATOBJEXT" = "x.mo" ; then 106 + - beastlocaledir=`eval echo "${libdir}/locale"` 107 + - else 108 + - beastlocaledir=`eval echo "${datadir}/locale"` 109 + - fi 110 + - exec_prefix="$saved_exec_prefix" 111 + - prefix="$saved_prefix" 112 + - AC_SUBST(beastlocaledir) 113 + - 114 + - dnl # do gettext checks and prepare for intltool 115 + - AM_GLIB_GNU_GETTEXT 116 + - IT_PROG_INTLTOOL 117 + -]) 118 + +IT_PROG_INTLTOOL([0.35.0]) 119 + + 120 + +dnl # versioned BEAST gettext domain (po/) 121 + +BST_GETTEXT_DOMAIN=beast-v$BIN_VERSION # version without -rcZ 122 + +AC_SUBST(BST_GETTEXT_DOMAIN) 123 + +AC_DEFINE_UNQUOTED(BST_GETTEXT_DOMAIN, "$BST_GETTEXT_DOMAIN", [Versioned BEAST gettext domain]) 124 + +GETTEXT_PACKAGE=$BST_GETTEXT_DOMAIN 125 + +AC_SUBST(GETTEXT_PACKAGE) 126 + + 127 + +dnl # locale directory for all domains 128 + +dnl # (AM_GLIB_DEFINE_LOCALEDIR() could do this if it would do AC_SUBST()) 129 + +saved_prefix="$prefix" 130 + +saved_exec_prefix="$exec_prefix" 131 + +test "x$prefix" = xNONE && prefix=$ac_default_prefix 132 + +test "x$exec_prefix" = xNONE && exec_prefix=$prefix 133 + +if test "x$CATOBJEXT" = "x.mo" ; then 134 + + beastlocaledir=`eval echo "${libdir}/locale"` 135 + +else 136 + + beastlocaledir=`eval echo "${datadir}/locale"` 137 + +fi 138 + +exec_prefix="$saved_exec_prefix" 139 + +prefix="$saved_prefix" 140 + +AC_SUBST(beastlocaledir) 141 + + 142 + +dnl # do gettext checks and prepare for intltool 143 + +AM_GLIB_GNU_GETTEXT 144 + + 145 + AC_DEFUN([AC_SFI_REQUIREMENTS], 146 + [ 147 + dnl # check for GLib libs, libbirnet already provides gthread-2.0 and glib-2.0 148 + @@ -570,7 +564,6 @@ 149 + AC_BIRNET_REQUIREMENTS 150 + 151 + # Check requirement sets 152 + -AC_I18N_REQUIREMENTS 153 + AC_SFI_REQUIREMENTS 154 + AC_BSE_REQUIREMENTS 155 + AC_BSESCM_REQUIREMENTS 156 + --- a/po/POTFILES.in 2008-06-22 15:12:10.000000000 +0200 157 + +++ b/po/POTFILES.in 2008-06-22 15:13:28.000000000 +0200 158 + @@ -131,3 +131,29 @@ 159 + plugins/davxtalstrings.c 160 + plugins/freeverb/bsefreeverb.c 161 + tools/bsewavetool.cc 162 + + 163 + +beast-gtk/bstgentypes.c 164 + +birnet/birnetcpu.cc 165 + +birnet/birnetutils.hh 166 + +bse/bsebus.genprc.c 167 + +bse/bsebusmodule.genidl.hh 168 + +bse/bsecontainer.genprc.c 169 + +bse/bsecore.genidl.hh 170 + +bse/bseieee754.h 171 + +bse/bseladspamodule.c 172 + +bse/bseparasite.genprc.c 173 + +bse/bsesong.genprc.c 174 + +bse/bsesource.genprc.c 175 + +bse/bsetrack.genprc.c 176 + +plugins/artscompressor.genidl.hh 177 + +plugins/bseamplifier.genidl.hh 178 + +plugins/bsebalance.genidl.hh 179 + +plugins/bsecontribsampleandhold.genidl.hh 180 + +plugins/bsenoise.genidl.hh 181 + +plugins/bsequantizer.genidl.hh 182 + +plugins/bsesummation.genidl.hh 183 + +plugins/davbassfilter.genidl.hh 184 + +plugins/davchorus.genidl.hh 185 + +plugins/standardguspatchenvelope.genidl.hh 186 + +plugins/standardsaturator.genidl.hh 187 + +tests/latency/bselatencytest.genidl.hh
+9
pkgs/top-level/all-packages.nix
··· 5727 5727 inherit bazaar; 5728 5728 }; 5729 5729 5730 + beast = import ../applications/audio/beast { 5731 + # stdenv = overrideGCC stdenv gcc34; 5732 + inherit stdenv fetchurl zlib guile pkgconfig intltool libogg libvorbis python libxml2 bash perl gettext; 5733 + inherit (bleedingEdgeRepos) sourceByName; 5734 + inherit (gtkLibs) gtk glib; 5735 + inherit (gnome) libgnomecanvas libart_lgpl; 5736 + inherit automake autoconf; 5737 + }; 5738 + 5730 5739 bitlbee = import ../applications/networking/instant-messengers/bitlbee { 5731 5740 inherit fetchurl stdenv gnutls pkgconfig; 5732 5741 inherit (gtkLibs) glib;