blob: 5178b40fe87f9f4fb05dca8b4354c80998c9f07f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
# Contributor : N30N <archlinux@alunamation.com>
# Contributor : Wenzel Jakob <wenzel@mitsuba-renderer.org>
_pkgname="collada-dom"
pkgname="${_pkgname}-mitsuba"
pkgver=2.4.0
pkgrel=2
pkgdesc="An API that provides a C++ object representation of a COLLADA XML instance document (required for mitsuba renderer)."
url="http://collada-dom.sourceforge.net/"
license=("MIT")
arch=("i686" "x86_64")
depends=("libxml2" "boost" "pcre" "minizip")
#makedepends=("boost")
source=("http://downloads.sourceforge.net/${_pkgname}/collada-dom-${pkgver}.tgz"
"0001-fix-return-type-thanks-to-22.patch"
"fix-minizip-include-path.patch"
)
md5sums=('20399de4206eab850c32e65c04e907cb'
'ebfba4cccb6a0862de2df286603a0c80'
'a907fc4cdade0b368f7bd2e25f1846c4')
prepare() {
cd ${_pkgname}-${pkgver}
patch -Np1 -i ../0001-fix-return-type-thanks-to-22.patch
patch -Np1 -i ../fix-minizip-include-path.patch
}
build() {
cd ${_pkgname}-${pkgver}/dom
sed -i.bak "s/domMinorVersion := 2/domMinorVersion := 4/g" Makefile
rm -Rf external-libs
make project=dom libOpts="-lpcre -lpcrecpp -Lbuild/linux-1.4 -lxml2 -I/usr/include/minizip -lminizip -Wl,-soname -Wl,libcollada14dom.so.2.4" ccFlags="-DDOM_INCLUDE_LIBXML -DCOLLADA_DOM_SUPPORT141 -fPIC -DDOM_INCLUDE_LIBXML -O3"
}
package() {
cd ${_pkgname}-${pkgver}/dom
install -d ${pkgdir}/usr/lib ${pkgdir}/usr/include
make prefix=${pkgdir}/usr project=dom install
mv ${pkgdir}/usr/include/colladadom ${pkgdir}/usr/include/collada-dom-mitsuba
install -D -m644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim: set noet ff=unix:
|