You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 satır
1.4KB

  1. SHELL:=/bin/bash
  2. benchmarklib:
  3. git clone https://bitbucket.org/rayburgemeestre/benchmarklib
  4. pushd benchmarklib && git checkout master
  5. bash ../ubuntu1804.sh make impl
  6. make package
  7. impl:
  8. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-9 40
  9. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-9 40
  10. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-9 40
  11. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 40
  12. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-9 40
  13. # TODO install boost from apt repo
  14. # if [[ -f CMakeCache.txt ]]; then rm CMakeCache.txt; fi
  15. dpkg -i boost/pkg/*.deb
  16. pushd benchmarklib && \
  17. CXX=$$(which c++) cmake -DSTATIC=1 -DBOOST_ROOT=/opt/cppse/build/boost -DCMAKE_INSTALL_PREFIX=$$PWD/benchmarklib_out . && \
  18. make -j $$(nproc) && \
  19. make install
  20. package:
  21. rm -rf out
  22. mkdir -p out/opt/cppse/build/benchmarklib
  23. cp -prv ./benchmarklib/benchmarklib_out/* out/opt/cppse/build/benchmarklib/
  24. rm -rf benchmarklib_1.0_amd64.deb
  25. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -s dir -t deb -n benchmarklib --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "benchmarklib - build dependency" --url "https://bitbucket.org/rayburgemeestre/benchmarklib" --deb-generate-changes -C /src/out
  26. clean:
  27. rm -rf benchmarklib
  28. rm -rf out
  29. shell:
  30. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash