diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-24 09:55:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-24 09:55:26 +0100 |
| commit | d9773e457718204a376a21423920819fd71b3d1f (patch) | |
| tree | 87a7d27579adcbdd4bb774687a00faee6ca6d35c /cscript | |
| parent | 41e23ec653a771f76f8c2c8addb8724e7026f55a (diff) | |
Try to fix strangeness with {buildroot} on Centos 5.
Diffstat (limited to 'cscript')
| -rw-r--r-- | cscript | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -203,7 +203,14 @@ def make_spec(filename, version, target): print('%build', file=f) print('cd dcpomatic-%s' % version, file=f) print('export PKG_CONFIG_PATH=%s/lib/pkgconfig:%s/lib64/pkgconfig:/usr/local/lib/pkgconfig' % (target.directory, target.directory), file=f) - print('CXXFLAGS="-I%s/include" LDFLAGS="-L%s/lib" ./waf configure --prefix=%%{buildroot}/usr --install-prefix=/usr %s' % (target.directory, target.directory, configure_options(target)), file=f) + + if target.distro == 'centos' and target.version == '5': + prefix = './usr' + else: + prefix = '%%{buildroot}/usr' + + print('CXXFLAGS="-I%s/include" LDFLAGS="-L%s/lib" ./waf configure --prefix=%s --install-prefix=/usr %s' % + (target.directory, target.directory, prefix, configure_options(target)), file=f) print('./waf', file=f) print('%install', file=f) print('cd dcpomatic-%s' % version, file=f) |
