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.

39 lines
1.4KB

  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++-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. 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" make -j $$(nproc) && \
  21. make install
  22. #CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
  23. package:
  24. rm -rf out
  25. mkdir -p out/opt/cppse/build/caf
  26. cp -prv actor-framework/caf_out/* out/opt/cppse/build/caf/
  27. rm -rf caf_1.0_amd64.deb
  28. 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
  29. clean:
  30. rm -rf actor-framework
  31. rm -rf out
  32. shell:
  33. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash