Skip to content

Commit

Permalink
Update builds scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Oct 7, 2023
1 parent a4798ea commit 936db1b
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 7 deletions.
15 changes: 11 additions & 4 deletions src/scripts/Dockerfile.vfxplatform
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# VFX Reference Platform
# VFX Reference Platform for Friction
FROM centos:centos7.9.2009

RUN yum -y update
RUN yum -y install centos-release-scl
RUN yum -y group install "Development Tools"
RUN yum -y install pulseaudio-libs-devel wget git yasm python3 fontconfig-devel zlib-devel autoconf automake xz devtoolset-7 llvm-toolset-7.0 tree curl libICE-devel libSM-devel libX11-devel libXau-devel libXdamage-devel libXext-devel libXfixes-devel libXi-devel libXxf86vm-devel libdrm-devel libxcb-devel mesa-libGL-devel xorg-x11-proto-devel
RUN yum -y install epel-release
RUN yum -y install fakeroot dpkg dpkg-dev rpmdevtools
RUN ln -sf /usr/bin/python3 /usr/bin/python
RUN rm -f /usr/lib64/pkgconfig/libpng.pc
RUN rm -f /usr/lib64/pkgconfig/libpng15.pc
RUN rm -f /usr/include/png.h
RUN rm -f /usr/include/pngconf.h
RUN rm -f /usr/include/pnglibconf.h
RUN echo "source scl_source enable devtoolset-7" >> /root/.bashrc

# WIP
# COPY build_vfx.sh /
# CMD [ "bash", "./build_vfx.sh" ]
# COPY build_vfxplatform*.sh /
# COPY vfxplatform.spec /
# CMD [ "bash", "./build_vfxplatform.sh" ]
2 changes: 1 addition & 1 deletion src/scripts/build_vfxplatform_friction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ cmake -GNinja \
FRICTION_VERSION=`cat version.txt`
cmake --build .

FRICTION_INSTALL_DIR=friction-${FRICTION_VERSION}-Linux-x86_64-X11
FRICTION_INSTALL_DIR=friction-${FRICTION_VERSION}
mkdir -p ${CWD}/${FRICTION_INSTALL_DIR}/opt/friction/{bin,lib,share} || true
mkdir -p ${CWD}/${FRICTION_INSTALL_DIR}/opt/friction/plugins/{audio,generic,imageformats,platforminputcontexts,platforms,xcbglintegrations} || true
DESTDIR=${CWD}/${FRICTION_INSTALL_DIR} cmake --build . --target install
6 changes: 4 additions & 2 deletions src/scripts/build_vfxplatform_package_tar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set -e -x

CWD=`pwd`
SDK=${SDK:-"/opt/friction"}
FRICTION_PKG=${FRICTION_PKG:-friction-0.9.5-Linux-x86_64-X11}
FRICTION_PKG=${FRICTION_PKG:-friction-0.9.5}

if [ ! -d "${CWD}/${FRICTION_PKG}" ]; then
echo "Missing Friction build"
Expand Down Expand Up @@ -97,9 +97,11 @@ scalable

mkdir -p ${CWD}/${FRICTION_PKG}/usr/bin
mkdir -p ${CWD}/${FRICTION_PKG}/usr/share/mime/packages
mkdir -p ${CWD}/${FRICTION_PKG}/usr/share/applications

(cd ${CWD}/${FRICTION_PKG}/usr/bin; ln -sf ../../opt/friction/bin/friction .)
(cd ${CWD}/${FRICTION_PKG}/usr/share/mime/packages ; ln -sf ../../../../opt/friction/share/mime/packages/friction.xml .)
(cd ${CWD}/${FRICTION_PKG}/usr/share/applications; ln -sf ../../../opt/friction/share/applications/friction.desktop .)

for icon in ${HICOLOR}; do
ICON_SUFFIX=png
Expand All @@ -114,6 +116,6 @@ for icon in ${HICOLOR}; do
done

cd ${CWD}
tar cvvf ${FRICTION_PKG}.tar ${FRICTION_PKG}
tar cvf ${FRICTION_PKG}.tar ${FRICTION_PKG}

echo "PKG TAR DONE"
35 changes: 35 additions & 0 deletions src/scripts/vfxplatform.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Name: friction
Version: __FRICTION_VERSION__
Release: 1
Summary: Friction Motion Graphics
Group: System Environment/Base
License: GPL3
Source0: friction-%{version}.tar

AutoReq: no
%global debug_package %{nil}

%description
Friction is an open-source, vector-based application designed for creating web animations and videos.

%prep
%setup -q #unpack tarball

%build

%install

cp -rfa opt %{buildroot}/
cp -rfa usr %{buildroot}/
rm -rf %{buildroot}/opt/friction/share/doc

%files
%defattr(-,root,root,-)
/opt/friction
/usr/bin/friction
/usr/share/applications/friction.desktop
/usr/share/mime/packages/friction.xml
/usr/share/icons/hicolor

%changelog

0 comments on commit 936db1b

Please sign in to comment.