5 pkgdesc="Mercurial version of Coin"
7 url="http://www.coin3d.org/"
10 optdepends=('openal' 'fontconfig' 'zlib' 'freetype2' 'bzip2' 'spidermonkey')
11 makedepends=('make' 'gcc' 'doxygen' 'mercurial')
12 provides=('coin=3.1.2' 'coin-doc=3.1.2')
14 replaces=('coin-mercurial')
17 cd "${srcdir}" || return 1
18 (cd default && hg update) || hg clone http://hg.sim.no/Coin/default || return 1
20 mkdir -p build || return 1
23 ../default/configure --prefix=/usr \
24 --mandir=/usr/share/man \
25 --enable-optimization \
27 --enable-javascript-api \
34 --disable-maintainer-mode \
35 --disable-dependency-tracking \
39 make DESTDIR="${pkgdir}" install || return 1
42 rm -rf "${pkgdir}/usr/lib/libCoin.la"
45 mv "${pkgdir}/usr/share/man/man3/${_FILE}.3" "${pkgdir}/usr/share/man/man3/coin-${_FILE}.3"
48 install -d -m 755 "${pkgdir}/usr/share/doc/${pkgname}" || return 1
49 cp -rf "${pkgdir}/usr/share/Coin/html" "${pkgdir}/usr/share/doc/${pkgname}" || return 1
50 rm -rf "${pkgdir}/usr/share/Coin/html" || return 1