# HG changeset patch # User Jan Nieuwenhuizen # Date 1248206126 -7200 # Node ID e4c2715777db198b232c88e8857ab1f15daabe2c # Parent 0069380ed85bccbffdad418fcf217757473d7616 Denemo: build darwin-x86::libsamplerate, libsndfile. diff -r 0069380ed85b -r e4c2715777db gub/specs/libsamplerate.py --- a/gub/specs/libsamplerate.py Tue Jul 21 14:56:07 2009 +0200 +++ b/gub/specs/libsamplerate.py Tue Jul 21 21:55:26 2009 +0200 @@ -5,11 +5,14 @@ def _get_build_dependencies (self): return ['tools::automake', 'tools::pkg-config',] - class Libsamplerate__darwin__x86 (Libsamplerate): + # FIXME: PROMOTEME to build.py/target.py [or for darwin_x86 only?] def patch (self): Libsamplerate.patch (self) # somehow retriggers autoconf?!? # for i in ('configure.ac', 'configure'): for i in ['configure']: - self.file_sub ([('-fpascal-strings ', ''),], '%(srcdir)s/' + i) + self.file_sub ([('-fpascal-strings ', ''), + ('-I(/Developer/Headers/FlatCarbon)', + r'-I%(system_root)s\1'), + ], '%(srcdir)s/' + i) diff -r 0069380ed85b -r e4c2715777db gub/specs/libsndfile.py --- a/gub/specs/libsndfile.py Tue Jul 21 14:56:07 2009 +0200 +++ b/gub/specs/libsndfile.py Tue Jul 21 21:55:26 2009 +0200 @@ -4,3 +4,15 @@ source = 'http://www.mega-nerd.com/libsndfile/libsndfile-1.0.20.tar.gz' def _get_build_dependencies (self): return ['tools::automake', 'tools::pkg-config', 'libtool'] + +class Libsndfile__darwin__x86 (Libsndfile): + # FIXME: PROMOTEME to build.py/target.py [or for darwin_x86 only?] + def patch (self): + Libsndfile.patch (self) + # somehow retriggers autoconf?!? +# for i in ('configure.ac', 'configure'): + for i in ['configure']: + self.file_sub ([('-fpascal-strings ', ''), + ('-I(/Developer/Headers/FlatCarbon)', + r'-I%(system_root)s\1'), + ], '%(srcdir)s/' + i)