build 835 B

123456789101112131415161718192021
  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. ./autogen.sh
  9. ./configure [% c("var/configure_opt") %] --disable-libevent-regress --disable-samples --disable-openssl --prefix=$distdir
  10. [% IF c("var/osx") -%]
  11. export LD_PRELOAD=[% c("var/faketime_path") %]
  12. export FAKETIME="[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]"
  13. [% END -%]
  14. make -j[% c("buildconf/num_procs") %]
  15. make install
  16. cd /var/tmp/dist
  17. [% c('tar', {
  18. tar_src => [ project ],
  19. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  20. }) %]