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:
Matt McWilliams 2022-07-22 14:11:29 -04:00
parent 77db4bd085
commit b9269d13a0
6 changed files with 64 additions and 0 deletions

2
povray_ubuntu_gcc/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
povray
bin

View File

@ -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

View File

@ -0,0 +1,3 @@
#!/bin/bash
sudo docker build . -t povray_ubuntu_gcc

7
povray_ubuntu_gcc/cmd.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
sudo docker run \
--cpus=2 \
-v $PWD:/usr/src \
povray_ubuntu_gcc \
sh -c "${1}"

View File

@ -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'

View File

@ -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