From 5479dfea93039b4918e1f89b1a2bd2cb8bf26fd6 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Mon, 18 Aug 2008 10:50:16 +0000 Subject: [PATCH] added beast Sound Engine svn path=/nixpkgs/trunk/; revision=12647 --- pkgs/applications/audio/beast/default.nix | 36 +++++ pkgs/applications/audio/beast/patch.patch | 187 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 9 ++ 3 files changed, 232 insertions(+) create mode 100644 pkgs/applications/audio/beast/default.nix create mode 100644 pkgs/applications/audio/beast/patch.patch diff --git a/pkgs/applications/audio/beast/default.nix b/pkgs/applications/audio/beast/default.nix new file mode 100644 index 00000000000..e8205440d5a --- /dev/null +++ b/pkgs/applications/audio/beast/default.nix @@ -0,0 +1,36 @@ +args: with args; +args.stdenv.mkDerivation { + name = "beast-0.7.1"; + + src = args.fetchurl { + url = ftp://beast.gtk.org/pub/beast/v0.7/beast-0.7.1.tar.bz2; + sha256 = "0jyl1i1918rsn4296w07fsf6wx3clvad522m3bzgf8ms7gxivg5l"; + }; + + buildInputs =[zlib guile libart_lgpl pkgconfig intltool gtk glib + libogg libvorbis libgnomecanvas gettext + ]; + + inherit bash perl; + + patchPhase = '' + unset patchPhase; patchPhase + sed 's=-DG_DISABLE_DEPRECATED==g' -i `find -type f` # the patches didn't remove all occurences + sed 's=/bin/bash=/$bash/bin/bash=g' -i `find -type f` + sed 's=/usr/bin/perl=/$perl/bin/bash=g' -i `find -type f` + ''; + + patches = [ + (fetchurl { + url = mirror://gentoo/distfiles/beast-0.7.1-guile-1.8.diff.bz2; + sha256 = "dc5194deff4b0a0eec368a69090db682d0c3113044ce2c2ed017ddfec9d3814e"; + }) + ./patch.patch # patches taken from gentoo + ]; + + meta = { + description = "BEAST - the Bedevilled Sound Engine"; + homepage = http://beast.gtk.org; + license = ["GPL-2" "LGPL-2.1"]; + }; +} diff --git a/pkgs/applications/audio/beast/patch.patch b/pkgs/applications/audio/beast/patch.patch new file mode 100644 index 00000000000..9d9f82cf4b4 --- /dev/null +++ b/pkgs/applications/audio/beast/patch.patch @@ -0,0 +1,187 @@ +Index: beast-0.7.1/shell/Makefile.in +=================================================================== +--- beast-0.7.1.orig/shell/Makefile.in ++++ beast-0.7.1/shell/Makefile.in +@@ -859,10 +859,7 @@ check-before: check-installation + check-installation: + @for p in $(bin_PROGRAMS) ; do \ + pp="$(DESTDIR)$(bindir)/$$p" ; \ +- echo "TEST: test -x \"$$pp\"" ; \ +- test -x "$$pp" || \ +- { echo "Failed to verify installation of executable: $$pp"; \ +- exit 1 ; } \ ++ echo "TEST: test -x \"$$pp\" Test disabled" ; \ + done + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. +Index: beast-0.7.1/shell/Makefile.am +=================================================================== +--- beast-0.7.1.orig/shell/Makefile.am ++++ beast-0.7.1/shell/Makefile.am +@@ -859,10 +859,7 @@ check-before: check-installation + check-installation: + @for p in $(bin_PROGRAMS) ; do \ + pp="$(DESTDIR)$(bindir)/$$p" ; \ +- echo "TEST: test -x \"$$pp\"" ; \ +- test -x "$$pp" || \ +- { echo "Failed to verify installation of executable: $$pp"; \ +- exit 1 ; } \ ++ echo "TEST: test -x \"$$pp\" Test disabled" ; \ + done + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. +Index: beast-0.7.1/birnet/birnettests.h +=================================================================== +--- beast-0.7.1.orig/birnet/birnettests.h ++++ beast-0.7.1/birnet/birnettests.h +@@ -27,6 +27,7 @@ + + #include + #include ++#include + + BIRNET_EXTERN_C_BEGIN(); + +Index: beast-0.7.1/tools/bseloopfuncs.c +=================================================================== +--- beast-0.7.1.orig/tools/bseloopfuncs.c ++++ beast-0.7.1/tools/bseloopfuncs.c +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + + typedef struct { + gdouble score; +--- beast-0.7.1.orig/bse/Makefile.am 2008-06-01 13:12:28.116708321 +0200 ++++ beast-0.7.1/bse/Makefile.am 2008-06-01 13:12:40.000000000 +0200 +@@ -10,7 +10,7 @@ + # need -I$(top_builddir) for + # need -I$(srcdir) for "bseserver.h" in .genprc.c + # need -I. (builddir) for "bsecore.genidl.hh" in bsecore.cc +-INCLUDES += -I$(top_srcdir) -I$(top_builddir) -I$(srcdir) -I. $(BSE_CFLAGS) -DG_DISABLE_DEPRECATED -DG_DISABLE_CONST_RETURNS ++INCLUDES += -I$(top_srcdir) -I$(top_builddir) -I$(srcdir) -I. $(BSE_CFLAGS) -DG_DISABLE_CONST_RETURNS + DEFS += $(strip \ + $(patsubst %, -DG_LOG_DOMAIN=\"BSE\" -DBSE_COMPILATION, \ + $(filter $(