Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

50 lines
1.7KB

  1. SHELL:=/bin/bash
  2. caf:
  3. git clone https://github.com/actor-framework/actor-framework
  4. pushd actor-framework && git checkout 0.17.3
  5. bash ../ubuntu1804.sh make impl
  6. make package
  7. impl:
  8. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-10 40
  9. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-10 40
  10. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 40
  11. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 40
  12. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-10 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-tools \
  18. --no-python && \
  19. pushd build && \
  20. mkdir -p build && \
  21. cmake \
  22. -DCMAKE_INSTALL_PREFIX=$$PWD/caf_out \
  23. -DCAF_BUILD_STATIC=yes \
  24. -DCAF_BUILD_STATIC_ONLY=yes \
  25. -DCAF_NO_EXAMPLES=yes \
  26. -DCAF_NO_UNIT_TESTS=yes \
  27. .. && \
  28. make -j $$(nproc) && \
  29. make install
  30. #-DCAF_NO_AUTO_LIBCPP=yes \
  31. #GLIBCXX_USE_CXX11_ABI=1 CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
  32. #make install
  33. #CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
  34. package:
  35. rm -rf out
  36. mkdir -p out/opt/cppse/build/caf
  37. cp -prv actor-framework/build/caf_out/* out/opt/cppse/build/caf/
  38. rm -rf caf_*_amd64.deb
  39. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 1.1 -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
  40. clean:
  41. rm -rf actor-framework
  42. rm -rf out
  43. shell:
  44. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash