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.

51 satır
1.7KB

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