|
|
|
|
|
|
|
|
|
|
|
SHELL:=/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
ubuntu2004: |
|
|
|
|
|
git clone https://github.com/rayburgemeestre/fmt --branch 7.1.3 |
|
|
|
|
|
bash ../ubuntu2004.sh make impl |
|
|
|
|
|
make package-ubuntu2004 |
|
|
|
|
|
bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions |
|
|
|
|
|
|
|
|
|
|
|
impl: |
|
|
|
|
|
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-10 40 |
|
|
|
|
|
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-10 40 |
|
|
|
|
|
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 40 |
|
|
|
|
|
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 40 |
|
|
|
|
|
update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-10 40 |
|
|
|
|
|
apt-get update && apt-get install libz-dev -y && \ |
|
|
|
|
|
pushd fmt && \ |
|
|
|
|
|
mkdir build && pushd build && \ |
|
|
|
|
|
CXX=$$(which c++) cmake -DCMAKE_INSTALL_PREFIX=$$PWD/fmt_out .. && \ |
|
|
|
|
|
make -j $$(nproc) && \ |
|
|
|
|
|
make install |
|
|
|
|
|
|
|
|
|
|
|
package-ubuntu2004: |
|
|
|
|
|
rm -rf out |
|
|
|
|
|
mkdir -p out/opt/cppse/build/fmt |
|
|
|
|
|
cp -prv fmt/build/fmt_out/* out/opt/cppse/build/fmt/ |
|
|
|
|
|
rm -rf fmt_*_amd64.deb |
|
|
|
|
|
docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n fmt --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "fmt - build dependency" --url "https://github.com/mattgodbolt/fmt" --deb-generate-changes -C /src/out |
|
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
|
|
rm -rf fmt |
|
|
|
|
|
rm -rf out |
|
|
|
|
|
|
|
|
|
|
|
shell: |
|
|
|
|
|
FLAGS="-i --privileged" bash ../ubuntu2004.sh /bin/bash |