1 # Maintainer: orbisvicis <''.join(chr(ord(c)-1) for c in "pscjtwjdjtAhnbjm/dpn")>
6 pkgdesc="A powerful node based video compositor."
8 url="http://www.ramenfx.org/"
11 depends=("eigen" "boost-libs" "qt" "openexr" "jasper" "libpng" "libtiff" "intel-tbb" "python2" "freetype2")
12 makedepends=("cmake" "boost")
22 source=("https://github.com/downloads/Eibriel/Ramen/vfx-code-0.6.2bB.tar.gz"
23 "openimageio.gcc4.6.boost.filesystem3.patch"
24 "ramen.Boost-1.46.ASL-GCC.CMake-StaticOpenImageIO-Hack.patch")
26 sha1sums=('911c834000d97e27888f7660224de111436bcbe4'
27 '3ba2e497862f6b4436f467b7e5565b4b2d9c64bd'
28 '7a0a1e127a8c14eae55a0d3e85148f94ecf3fd2e')
30 _openimageio_gitroot="git://github.com/OpenImageIO/oiio.git"
31 _openimageio_gitname="oiio"
32 _cortex_svntrunk="http://cortex-vfx.googlecode.com/svn/trunk/"
33 _cortex_svnmod="cortex-vfx"
35 build_openimageio_static() {
37 if [[ -d "${_openimageio_gitname}" ]]; then
38 msg "Updating local GIT repository..."
39 cd "${_openimageio_gitname}"
44 msg "Cloning GIT repository..."
45 git clone "${_openimageio_gitroot}" "${_openimageio_gitname}"
46 cd "${_openimageio_gitname}"
51 # Remove the unnecessary 'Insecure RPATH' of ${dist_dir}/lib.
52 sed '/set (CMAKE_INSTALL_RPATH "${LIBDIR}")/d' -i "src/CMakeLists.txt"
54 # patch for Boost Filesystem V3 and GCC 4.6
55 patch -i "${srcdir}/openimageio.gcc4.6.boost.filesystem3.patch" -p1
57 msg "Starting make..."
65 if [[ -d "${_cortex_svnmod}" ]]; then
66 msg "Updating local SVN repository..."
67 cd "${_cortex_svnmod}"
72 msg "Checking Out SVN repository..."
73 svn co "${_cortex_svntrunk}" "${_cortex_svnmod}"
74 cd "${_cortex_svnmod}"
81 patch -i "${srcdir}/ramen.Boost-1.46.ASL-GCC.CMake-StaticOpenImageIO-Hack.patch" -p1
83 cd "${srcdir}/vfx/${pkgname}"
84 [[ -d build ]] && rm -rf build
87 EIGEN_INCLUDE_DIR=$(pkg-config --cflags eigen2)
88 EIGEN_INCLUDE_DIR="${EIGEN_INCLUDE_DIR#-I}"
90 -DCMAKE_BUILD_TYPE=Release \
91 -DEIGEN_INCLUDE_DIR="${EIGEN_INCLUDE_DIR}" \
92 -DIECORE_INCLUDE_DIRS="${srcdir}/${_cortex_svnmod}/include" \
93 -DOPENIMAGEIO_INCLUDE_DIRS="${srcdir}/${_openimageio_gitname}/dist/include" \
94 -DOPENIMAGEIO_LIBRARIES="${srcdir}/${_openimageio_gitname}/dist/lib/libOpenImageIO.a" \
100 build_openimageio_static
106 cd "${srcdir}/vfx/${pkgname}"
107 install -d "${pkgdir}/usr/bin"
108 install -m755 "build/${pkgname}/${pkgname}" "${pkgdir}/usr/bin"
111 # vim:set ts=2 sw=2 et: