hydrogen: 0.9.5.1 -> 0.9.6
This commit is contained in:
parent
cdb3e6fa2f
commit
933bca648f
|
@ -1,35 +1,19 @@
|
||||||
{ stdenv, fetchurl, alsaLib, boost, glib, jack2, ladspaPlugins
|
{ stdenv, fetchurl, alsaLib, boost, cmake, glib, jack2, libarchive
|
||||||
, libarchive, liblrdf , libsndfile, pkgconfig, qt4, scons, subversion }:
|
, liblrdf, libsndfile, pkgconfig, qt4 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.9.5.1";
|
version = "0.9.6";
|
||||||
name = "hydrogen-${version}";
|
name = "hydrogen-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/hydrogen/hydrogen-${version}.tar.gz";
|
url = "https://github.com/hydrogen-music/hydrogen/archive/${version}.tar.gz";
|
||||||
sha256 = "1fvyp6gfzcqcc90dmaqbm11p272zczz5pfz1z4lj33nfr7z0bqgb";
|
sha256 = "1z7j8aq158mp41iv78j0w6fyx98y1y51z592b4x5hkvicabgck5w";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
alsaLib boost glib jack2 ladspaPlugins libarchive liblrdf
|
alsaLib boost cmake glib jack2 libarchive liblrdf libsndfile pkgconfig qt4
|
||||||
libsndfile pkgconfig qt4 scons subversion
|
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [ ./scons-env.patch ];
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
sed -e 's#/usr/lib/ladspa#${ladspaPlugins}/lib/ladspa#' -i libs/hydrogen/src/preferences.cpp
|
|
||||||
sed '/\/usr/d' -i libs/hydrogen/src/preferences.cpp
|
|
||||||
sed "s#pkg_ver.rstrip().split('.')#pkg_ver.rstrip().split('.')[:3]#" -i Sconstruct
|
|
||||||
'';
|
|
||||||
|
|
||||||
# why doesn't scons find librdf?
|
|
||||||
buildPhase = ''
|
|
||||||
scons prefix=$out libarchive=1 lrdf=0 install
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ":";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Advanced drum machine";
|
description = "Advanced drum machine";
|
||||||
homepage = http://www.hydrogen-music.org;
|
homepage = http://www.hydrogen-music.org;
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
--- hydrogen-0.9.5/Sconstruct 2011-03-15 13:22:35.000000000 +0100
|
|
||||||
+++ hydrogen-0.9.5/Sconstruct 2011-04-17 16:06:54.000000000 +0200
|
|
||||||
@@ -178,7 +178,7 @@
|
|
||||||
|
|
||||||
includes.append( "libs/hydrogen/include" )
|
|
||||||
|
|
||||||
- env = Environment( options = opts )
|
|
||||||
+ env = Environment( options = opts, ENV = os.environ )
|
|
||||||
|
|
||||||
|
|
||||||
#location of qt4.py
|
|
||||||
@@ -298,7 +298,6 @@
|
|
||||||
|
|
||||||
for N in glob.glob('./data/i18n/hydrogen.*'):
|
|
||||||
env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data/i18n', source=N))
|
|
||||||
- env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data', source="./data/img"))
|
|
||||||
|
|
||||||
#add every img in ./data/img to the install list.
|
|
||||||
os.path.walk("./data/img/",install_images,env)
|
|
||||||
@@ -379,7 +379,7 @@
|
|
||||||
|
|
||||||
includes, a , b = get_platform_flags( opts )
|
|
||||||
|
|
||||||
-env = Environment(options = opts, CPPPATH = includes)
|
|
||||||
+env = Environment(options = opts, ENV = os.environ)
|
|
||||||
|
|
||||||
|
|
||||||
Help(opts.GenerateHelpText(env))
|
|
Loading…
Reference in New Issue