瀏覽代碼

Add fmt

master
Ray Burgemeestre 4 年之前
父節點
當前提交
a92f0f3255
共有 3 個文件被更改,包括 54 次插入0 次删除
  1. +18
    -0
      Makefile
  2. +2
    -0
      apt-publisher/Makefile
  3. +34
    -0
      fmt/Makefile

+ 18
- 0
Makefile 查看文件

@@ -19,3 +19,21 @@ ubuntu2004publish:

shell:
docker run -it -v $$PWD:$$PWD --workdir $$PWD rayburgemeestre/build-ubuntu:18.04 /bin/bash

clean:
make -C allegro5 clean
#make -C apt-publisher clean
make -C benchmarklib clean
make -C boost clean
make -C caf clean
make -C crtmpserver clean
make -C fastpfor clean
make -C ffmpeg clean
make -C mesa clean
make -C png++ clean
make -C seasocks clean
make -C sfml clean
make -C v8pp clean
make -C fmt clean



+ 2
- 0
apt-publisher/Makefile 查看文件

@@ -24,6 +24,7 @@ prepare-packages-ubuntu1804:
benchmarklib/pkg/*.deb \
fastpfor/pkg/*.deb \
seasocks/pkg/*.deb \
fmt/pkg/*.deb \
pngpp/pkg/*.deb \
\
msxsaver/pkg/*.deb \
@@ -40,6 +41,7 @@ prepare-packages-ubuntu2004:
boost/pkg/*.deb \
fastpfor/pkg/*.deb \
seasocks/pkg/*.deb \
fmt/pkg/*.deb \
pngpp/pkg/*.deb \
msxsaver/pkg/*.deb \
packages/

+ 34
- 0
fmt/Makefile 查看文件

@@ -0,0 +1,34 @@
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

Loading…
取消
儲存