Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

38 lines
1.3KB

  1. SHELL:=/bin/bash
  2. caf:
  3. git clone https://github.com/rayburgemeestre/actor-framework
  4. pushd actor-framework && git checkout lib
  5. bash ../ubuntu1804.sh make impl
  6. make package
  7. impl:
  8. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-7 40
  9. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-7 40
  10. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-7 40
  11. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-7 40
  12. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-7 40
  13. pushd actor-framework && \
  14. ./configure --prefix=$$PWD/caf_out --with-clang=$$(which c++) --build-static-only \
  15. --no-examples \
  16. --no-unit-tests \
  17. --no-benchmarks \
  18. --no-tools \
  19. --no-python && \
  20. CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
  21. make install
  22. package:
  23. rm -rf out
  24. mkdir -p out/opt/cppse/build/caf
  25. cp -prv actor-framework/caf_out/* out/opt/cppse/build/caf/
  26. rm -rf caf_1.0_amd64.deb
  27. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -s dir -t deb -n caf --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "caf - build dependency" --url "https://github.com/liballeg/caf.git" --deb-generate-changes -C /src/out
  28. clean:
  29. rm -rf actor-framework
  30. rm -rf out
  31. shell:
  32. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash