build 874 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  4. distdir=/var/tmp/dist/[% project %]
  5. mkdir -p /var/tmp/build
  6. tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
  7. cd /var/tmp/build/[% project %]-[% c('version') %]
  8. [% IF c("var/osx") -%]
  9. patch -p1 < $rootdir/autotools-openssl-mac.patch
  10. [% END -%]
  11. ./autogen.sh
  12. ./configure --disable-static [% c("var/configure_opt") %] --prefix=$distdir
  13. [% IF c("var/osx") -%]
  14. export LD_PRELOAD=[% c("var/faketime_path") %]
  15. export FAKETIME="[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]"
  16. [% END -%]
  17. make -j[% c("buildconf/num_procs") %]
  18. make install
  19. cd /var/tmp/dist
  20. [% c('tar', {
  21. tar_src => [ project ],
  22. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  23. }) %]