Add a project for building povray from source on an ubuntu focal base. Using this to pull insights from povray_wasm project that has been languishing without resolution.
This commit is contained in:
parent
77db4bd085
commit
b9269d13a0
|
@ -0,0 +1,2 @@
|
|||
povray
|
||||
bin
|
|
@ -0,0 +1,34 @@
|
|||
FROM ubuntu:focal
|
||||
|
||||
RUN apt update
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
git \
|
||||
bash \
|
||||
build-essential \
|
||||
coreutils \
|
||||
libboost-all-dev \
|
||||
libboost-date-time-dev \
|
||||
libz-dev \
|
||||
libpng-dev \
|
||||
libjpeg-dev \
|
||||
libtiff-dev \
|
||||
libopenexr-dev \
|
||||
libsdl-dev \
|
||||
libilmbase-dev \
|
||||
autoconf \
|
||||
pkg-config \
|
||||
automake \
|
||||
make
|
||||
|
||||
WORKDIR /usr/src/
|
||||
|
||||
ENV POVRAY_VERSION=3.7-stable
|
||||
|
||||
RUN cd /usr/src/ && git clone --depth 1 --branch $POVRAY_VERSION https://github.com/POV-Ray/povray povray
|
||||
|
||||
WORKDIR /usr/src/povray
|
||||
|
||||
COPY ./compile_povray.sh /usr/src/povray/compile_povray.sh
|
||||
|
||||
RUN bash compile_povray.sh
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo docker build . -t povray_ubuntu_gcc
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo docker run \
|
||||
--cpus=2 \
|
||||
-v $PWD:/usr/src \
|
||||
povray_ubuntu_gcc \
|
||||
sh -c "${1}"
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo docker run \
|
||||
--cpus=2 \
|
||||
-v $PWD/compile_povray.sh:/usr/src/povray/compile_povray.sh \
|
||||
povray_ubuntu_gcc \
|
||||
sh -c 'sh compile_povray.sh'
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
EMAIL="hi@mmcwilliams.com"
|
||||
NAME="Matt McWilliams"
|
||||
|
||||
cd unix/
|
||||
./prebuild.sh
|
||||
cd ../
|
||||
./configure COMPILED_BY="$NAME <$EMAIL>"
|
||||
make
|
||||
make install
|
Loading…
Reference in New Issue