build 706 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir=/var/tmp/dist/[% project %]
  4. mkdir -p /var/tmp/dist
  5. tar -C /var/tmp/dist -xf [% c('input_files_by_name/llvm') %]
  6. export PATH="/var/tmp/dist/llvm/bin:$PATH"
  7. mkdir -p /var/tmp/build
  8. tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
  9. cd /var/tmp/build/[% project %]-[% c('version') %]/cctools
  10. export CC=clang
  11. export CXX=clang++
  12. ./autogen.sh
  13. ./configure --prefix=$distdir --target=x86_64-apple-darwin11 --with-llvm-config=llvm-config
  14. export LDFLAGS=-lpthread
  15. make -j[% c("buildconf/num_procs") %] install
  16. cd /var/tmp/dist
  17. [% c('tar', {
  18. tar_src => [ project ],
  19. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  20. }) %]