| SHELL:=/bin/bash | |||||
| caf: | |||||
| git clone https://github.com/rayburgemeestre/actor-framework | |||||
| pushd actor-framework && git checkout lib | |||||
| bash ../ubuntu1804.sh make impl | |||||
| make package | |||||
| impl: | |||||
| update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-7 40 | |||||
| update-alternatives --install /usr/bin/cc cc /usr/bin/clang-7 40 | |||||
| update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-7 40 | |||||
| update-alternatives --install /usr/bin/clang clang /usr/bin/clang-7 40 | |||||
| update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-7 40 | |||||
| pushd actor-framework && \ | |||||
| ./configure --prefix=$$PWD/caf_out --with-clang=$$(which c++) --build-static-only \ | |||||
| --no-examples \ | |||||
| --no-unit-tests \ | |||||
| --no-benchmarks \ | |||||
| --no-tools \ | |||||
| --no-python && \ | |||||
| CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \ | |||||
| make install | |||||
| package: | |||||
| rm -rf out | |||||
| mkdir -p out/opt/cppse/build/caf | |||||
| cp -prv actor-framework/caf_out/* out/opt/cppse/build/caf/ | |||||
| rm -rf caf_1.0_amd64.deb | |||||
| 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 | |||||
| clean: | |||||
| rm -rf actor-framework | |||||
| rm -rf out | |||||
| shell: | |||||
| FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash |