From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-sound/hydrogen/files: hydrogen-0.9.5-use_lrdf_pkgconfig.patch |
Date: | Fri, 29 Jul 2011 09:15:40 |
Message-Id: | 20110729091529.597E620051@flycatcher.gentoo.org |
1 | ssuominen 11/07/29 09:15:29 |
2 | |
3 | Added: hydrogen-0.9.5-use_lrdf_pkgconfig.patch |
4 | Log: |
5 | Fix building with liblrdf-0.4.0-r20 |
6 | |
7 | (Portage version: 2.2.0_alpha47/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-sound/hydrogen/files/hydrogen-0.9.5-use_lrdf_pkgconfig.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/hydrogen/files/hydrogen-0.9.5-use_lrdf_pkgconfig.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/hydrogen/files/hydrogen-0.9.5-use_lrdf_pkgconfig.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: hydrogen-0.9.5-use_lrdf_pkgconfig.patch |
16 | =================================================================== |
17 | conf.CheckCHeader lrdf.h check fails because of missing -I/usr/include/raptor2, use pkg-config instead |
18 | |
19 | --- Sconstruct |
20 | +++ Sconstruct |
21 | @@ -268,7 +268,8 @@ |
22 | env.Append( LIBPATH = 'C:\Program Files\GnuWin32\lib' ) |
23 | env.Append( LIBS = [ "pthread" ] ) |
24 | |
25 | - if str(env['lrdf']) == "1": env.Append( LIBS = ["lrdf"] ) |
26 | + if str(env['lrdf']) == "1": |
27 | + env.ParseConfig('pkg-config --cflags --libs lrdf') |
28 | if str(env['jack']) == "1": env.Append( LIBS = ["jack"]) |
29 | if str(env['alsa']) == "1": env.Append( LIBS = ["asound"]) |
30 | if str(env['libarchive']) == "1": env.Append( LIBS = ["archive"]) |
31 | @@ -449,7 +450,7 @@ |
32 | Exit(1) |
33 | |
34 | #lrdf: categorizing of ladspa effects |
35 | -if str(env['lrdf']) == "1" and not conf.CheckCHeader('lrdf.h'): |
36 | +if str(env['lrdf']) == "1" and not conf.CheckPKG('lrdf >= 0.4.0'): |
37 | print 'lrdf must be installed!' |
38 | Exit(1) |