updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / ramen / PKGBUILD
bloba6771b59ea061f243512e6b4756401fd55c05d0c
1 # Maintainer: orbisvicis <''.join(chr(ord(c)-1) for c in "pscjtwjdjtAhnbjm/dpn")>
2 pkgname=ramen
3 pkgver="0.6.2b"
4 pkgrel=1
5 epoch=
6 pkgdesc="A powerful node based video compositor."
7 arch=("i686" "x86_64")
8 url="http://www.ramenfx.org/"
9 license=('CDDL')
10 groups=()
11 depends=("eigen" "boost-libs" "qt" "openexr" "jasper" "libpng" "libtiff" "intel-tbb" "python2" "freetype2")
12 makedepends=("cmake" "boost")
13 checkdepends=()
14 optdepends=()
15 provides=()
16 conflicts=()
17 replaces=()
18 backup=()
19 options=()
20 install=
21 changelog=
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")
25 noextract=()
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() {
36   cd "${srcdir}"
37   if [[ -d "${_openimageio_gitname}" ]]; then
38     msg "Updating local GIT repository..."
39     cd "${_openimageio_gitname}"
40     git clean -dfx
41     git reset --hard
42     git pull origin
43   else
44     msg "Cloning GIT repository..."
45     git clone "${_openimageio_gitroot}" "${_openimageio_gitname}"
46     cd "${_openimageio_gitname}"
47   fi
48   git checkout "RB-0.8"
49   msg "Done."
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..."
58   make \
59     dist_dir="dist" \
60     BUILDSTATIC=1
63 get_cortex() {
64   cd "${srcdir}"
65   if [[ -d "${_cortex_svnmod}" ]]; then
66     msg "Updating local SVN repository..."
67     cd "${_cortex_svnmod}"
68     svn cleanup
69     svn revert -R
70     svn up
71   else
72     msg "Checking Out SVN repository..."
73     svn co "${_cortex_svntrunk}" "${_cortex_svnmod}"
74     cd "${_cortex_svnmod}"
75   fi
76   msg "Done."
79 build_ramen() {
80   cd "${srcdir}/vfx"
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
85   mkdir build; cd build
87   EIGEN_INCLUDE_DIR=$(pkg-config --cflags eigen2)
88   EIGEN_INCLUDE_DIR="${EIGEN_INCLUDE_DIR#-I}"
89   cmake \
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" \
95   ..
96   make
99 build() {
100   build_openimageio_static
101   get_cortex
102   build_ramen
105 package() {
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: