Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bockover <abockover@novell.com>2009-12-20 22:27:12 +0300
committerAaron Bockover <abockover@novell.com>2009-12-20 22:27:12 +0300
commit2aa433f305e4abe2520017907824f21a8cc95949 (patch)
tree61c82ec5badc86e18178d4f517a94041a341d76c /packages
parent7eac08cb41552b3d24d93fd72acbb55e9d77f5e5 (diff)
[build] rework the profile/package loading, fix uglies
The build profile is now accessible from packages, each profile has a name and a host property, so conditional things can be done on packages. An example of this in flac.
Diffstat (limited to 'packages')
-rw-r--r--packages/flac.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/flac.py b/packages/flac.py
index 15caf07..f63312b 100644
--- a/packages/flac.py
+++ b/packages/flac.py
@@ -1,3 +1,10 @@
+configure_flags = [
+ '--disable-cpplibs'
+]
+
+if profile['name'] == 'osx':
+ configure_flags.append ('--disable-asm-optimizations')
+
package = {
'name': 'flac',
'version': '1.2.1',
@@ -5,9 +12,7 @@ package = {
'http://downloads.xiph.org/releases/%{name}/%{name}-%{version}.tar.gz'
],
'build': [
- '%{__configure}' \
- ' --disable-asm-optimizations' \
- ' --disable-cpplibs',
+ '%{__configure}' + ' '.join (configure_flags),
'%{__make}'
]
}