build 761 B

12345678910111213141516171819
  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.bz2
  7. cd /var/tmp/build/[% project %]-[% c('version') %]
  8. # Even if we are not shipping libgmpxx anymore we still need --enable-xcc
  9. # during compile time.
  10. ./configure --disable-static --enable-shared --enable-cxx \
  11. [% c("var/configure_opt") %] [% c("var/configure_opt_gmp") %] --prefix=$distdir
  12. make -j[% c("buildconf/num_procs") %]
  13. make install
  14. cd /var/tmp/dist
  15. [% c('tar', {
  16. tar_src => [ project ],
  17. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  18. }) %]