浏览代码

Add tvision build dependency for starcry

master
rayburgemeestre 3 年前
父节点
当前提交
edcbb10895
共有 1 个文件被更改,包括 31 次插入0 次删除
  1. +31
    -0
      tvision/Makefile

+ 31
- 0
tvision/Makefile 查看文件

SHELL:=/bin/bash

ubuntu2004:
# check out revision that is master at the time of writing
git clone https://github.com/magiblot/tvision || true
pushd tvision && \
git checkout 638f963fe4f6c84854f60f1e9c5772bf6603e4b2 && \
popd && \
bash ../ubuntu2004.sh make impl
make package-ubuntu2004

impl:
pushd tvision && \
cmake . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$$PWD/../tvision_out && \
cmake --build ./build && \
pushd build && \
make install

package-ubuntu2004:
rm -rf out
mkdir -p out/opt/cppse/build/tvision
cp -prv tvision_out/* out/opt/cppse/build/tvision/
rm -rf cppse_tvision_*_amd64.deb
docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n cppse-tvision --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "tvision - build dependency" --url "https://github.com/magiblot/tvision" --deb-generate-changes -C /src/out

clean:
sudo rm -rf tvision*
sudo rm -rf out

shell:
FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash

正在加载...
取消
保存