mitsuba/data/linux/arch/collada-dom/PKGBUILD

41 lines
1.3 KiB
Bash
Raw Normal View History

2011-08-20 11:12:45 +08:00
# Contributer: N30N <archlinux@alunamation.com>
# Contributer: Wenzel Jakob <wenzel@mitsuba-renderer.org>
pkgname="collada-dom"
2013-11-11 23:15:31 +08:00
pkgver=2.4.0
2011-08-20 11:12:45 +08:00
pkgrel=1
pkgdesc="An API that provides a C++ object representation of a COLLADA XML instance document."
url="http://collada-dom.sourceforge.net/"
license=("MIT")
arch=("i686" "x86_64")
2013-11-11 23:15:31 +08:00
depends=("libxml2" "boost" "pcre")
2011-08-20 11:12:45 +08:00
# makedepends=()
2013-11-11 23:15:31 +08:00
source=("http://downloads.sourceforge.net/${pkgname}/collada-dom-${pkgver}.tgz")
md5sums=("20399de4206eab850c32e65c04e907cb")
2011-08-20 11:12:45 +08:00
build() {
cd ${pkgname}-${pkgver}/dom
2013-11-11 23:15:31 +08:00
sed -i.bak "s/domMinorVersion := 2/domMinorVersion := 4/g" Makefile
cd external-libs
rm -Rf minizip
mv minizip-1.1 minizip
ln -s . minizip/src
ln -s . minizip/include
cd ..
make project=minizip libOpts="-Wl,-soname -Wl,libminizip.so.1.2.3" ccFlags="-fPIC"
make project=dom libOpts="-Wl,-soname -Wl,libcollada14dom.so.2.4" ccFlags="-DCOLLADA_DOM_SUPPORT141 -fPIC"
2011-08-20 11:12:45 +08:00
}
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
install -m755 build/linux-1.4/libminizip.so* ${pkgdir}/usr/lib
install -D -m644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim: set noet ff=unix: