From 63868710304a011d38151236d67e01845fb5c958 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 2 Feb 2006 15:04:04 +0000 Subject: [PATCH] * Build a Musepack plugin for BMP so that I can finally play that Nixon in China rip again :-) svn path=/nixpkgs/trunk/; revision=4676 --- .../audio/bmp-plugins/musepack/builder.sh | 6 ++++++ .../audio/bmp-plugins/musepack/default.nix | 11 +++++++++++ pkgs/development/libraries/libmpcdec/default.nix | 9 +++++++++ pkgs/development/libraries/taglib/default.nix | 10 ++++++++++ pkgs/system/all-packages-generic.nix | 13 +++++++++++++ pkgs/system/populate-cache.nix | 2 ++ 6 files changed, 51 insertions(+) create mode 100644 pkgs/applications/audio/bmp-plugins/musepack/builder.sh create mode 100644 pkgs/applications/audio/bmp-plugins/musepack/default.nix create mode 100644 pkgs/development/libraries/libmpcdec/default.nix create mode 100644 pkgs/development/libraries/taglib/default.nix diff --git a/pkgs/applications/audio/bmp-plugins/musepack/builder.sh b/pkgs/applications/audio/bmp-plugins/musepack/builder.sh new file mode 100644 index 000000000000..4b78abf73ac1 --- /dev/null +++ b/pkgs/applications/audio/bmp-plugins/musepack/builder.sh @@ -0,0 +1,6 @@ +source $stdenv/setup + +ensureDir "$out/lib/bmp/Input" +installFlags="install libdir=$out/lib/bmp/Input" + +genericBuild diff --git a/pkgs/applications/audio/bmp-plugins/musepack/default.nix b/pkgs/applications/audio/bmp-plugins/musepack/default.nix new file mode 100644 index 000000000000..0a23df9f6831 --- /dev/null +++ b/pkgs/applications/audio/bmp-plugins/musepack/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl, pkgconfig, bmp, glib, gtk, libmpcdec, taglib}: + +stdenv.mkDerivation { + name = "bmp-plugin-musepack-1.2"; + builder = ./builder.sh; + src = fetchurl { + url = http://files2.musepack.net/linux/plugins/bmp-musepack-1.2.tar.bz2; + md5 = "5fe0c9d341ca37d05c780a478f829a5f"; + }; + buildInputs = [pkgconfig bmp glib gtk libmpcdec taglib]; +} diff --git a/pkgs/development/libraries/libmpcdec/default.nix b/pkgs/development/libraries/libmpcdec/default.nix new file mode 100644 index 000000000000..f0742d23229a --- /dev/null +++ b/pkgs/development/libraries/libmpcdec/default.nix @@ -0,0 +1,9 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "libmpcdec-1.2.2"; + src = fetchurl { + url = http://files2.musepack.net/source/libmpcdec-1.2.2.tar.bz2; + md5 = "f14e07285b9b102a806649074c1d779b"; + }; +} diff --git a/pkgs/development/libraries/taglib/default.nix b/pkgs/development/libraries/taglib/default.nix new file mode 100644 index 000000000000..c065b4ce3b04 --- /dev/null +++ b/pkgs/development/libraries/taglib/default.nix @@ -0,0 +1,10 @@ +{stdenv, fetchurl, zlib}: + +stdenv.mkDerivation { + name = "taglib-1.4"; + src = fetchurl { + url = http://developer.kde.org/~wheeler/files/src/taglib-1.4.tar.gz; + md5 = "dcd50ddb2544faeae77f194804559404"; + }; + buildInputs = [zlib]; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 396f1b1bd0ce..dca0734f2c7f 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -1477,6 +1477,14 @@ rec { inherit fetchurl stdenv; }; + taglib = import ../development/libraries/taglib { + inherit fetchurl stdenv zlib; + }; + + libmpcdec = import ../development/libraries/libmpcdec { + inherit fetchurl stdenv; + }; + ### SERVERS @@ -1897,6 +1905,11 @@ rec { inherit (gtkLibs) glib gtk; }; + bmp_plugin_musepack = import ../applications/audio/bmp-plugins/musepack { + inherit fetchurl stdenv pkgconfig bmp libmpcdec taglib; + inherit (gtkLibs) glib gtk; + }; + MPlayer = (import ../applications/video/MPlayer) { inherit fetchurl stdenv freetype x11 zlib libtheora libcaca; inherit (xlibs) libXv libXinerama; diff --git a/pkgs/system/populate-cache.nix b/pkgs/system/populate-cache.nix index ef6890480e47..155b0d8d157d 100644 --- a/pkgs/system/populate-cache.nix +++ b/pkgs/system/populate-cache.nix @@ -16,6 +16,8 @@ let { bisonnew bittorrent blackdown + bmp + bmp_plugin_musepack bsdiff bzip2 callgrind